{"uid":"cap_-x2aYi5Ce3ogbp7qt6M0i","slug":"matrix-transpose-c13ed251","name":"Matrix Transpose","description":"Transpose a matrix, swapping rows and columns. A ragged/empty matrix is a clean 400.","url":"https://matrix.openverbs.com/v1/transpose","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["matrix"],"properties":{"matrix":{"type":"array","items":{"type":"array","items":{"type":"number"},"minItems":1},"minItems":1,"description":"Matrix (m×n)."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fWZTxNjxJIRc4gq7iU4ms","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Transposes an m×n matrix by swapping its rows and columns, returning the n×m result.","exampleAgentPrompt":"Transpose this matrix for me: [[1, 2, 3], [4, 5, 6]] — swap its rows and columns so the result is a 3×2 matrix.","exampleUseCases":[{"title":"Prepare matrix for multiplication","prompt":"I need to multiply two matrices but the inner dimensions don't match — can you transpose the second one first? It's [[1, 4], [2, 5], [3, 6]], flip it so the rows become columns."},{"title":"Convert row vector to column vector","prompt":"I have a row vector [[10, 20, 30, 40]] and I need it as a column vector — please transpose it so each value becomes its own row."},{"title":"Reformat dataset for analysis","prompt":"My dataset is stored as [[1,2,3],[4,5,6],[7,8,9],[10,11,12]] and I need the features as rows instead of columns — can you transpose it?"}],"resultDescription":"Returns the transposed n×m matrix as a 2D numeric array, with the original rows now as columns and original columns now as rows. A ragged or empty matrix input returns a 400 error with a descriptive message.","failureModes":["Ragged matrix (rows of unequal length) returns a 400 error","Empty matrix (zero rows or zero columns) returns a 400 error","Non-numeric values in matrix cells may cause a validation error","Malformed JSON body returns a 400 error","Missing required 'matrix' field returns a 400 error"],"whenToPreferThis":"Use this endpoint when you need a fast, reliable cloud-based matrix transpose without running local math libraries. Ideal for agents that need to reshape numerical data on-the-fly, prepare matrices for multiplication, or convert between row-major and column-major representations without setting up a compute environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:41:21.642Z","isFirstParty":false}