AAxisLoom
Product

Product features · Rectangular matrix transposition

01

Transpose a rectangular matrix into newly allocated rows.

01

Connection

Base URL, credentials and a reachable server.

02

Selection

A model available through the configured endpoint.

03

Capabilities

Context limits and tool support are determined by the model and server.

Rectangular matrix transposition

● ● ●AxisLoom●
A concrete starting point · Rectangular matrix transposition ×
def transpose(rows):
    rows = [list(row) for row in rows]
    if not rows:
        return []
    width = len(rows[0])
    if any(len(row) != width for row in rows):
        raise ValueError("matrix.ragged")
    return [[row[column] for row in rows] for column in range(width)]
✳Transpose a rectangular matrix into newly allocated rows.
✓ ChangesReview before applying ↗
Illustrative workspace
AI coding workspace

Your next change starts here.

Get the Windows app ↗