{"uid":"cap_rNjctAG4xAFD0_OH5pbNx","slug":"sindri-matrix-operations-e36d01e3","name":"Sindri Matrix Operations","description":"Matrix operations: multiply, transpose, determinant, and invert, for matrices up to 20x20. Uses the ml-matrix library's LU decomposition (LuDecomposition) for determinant and inversion, with a numerical near-singularity guard beyond the library's exact-singular check.","url":"https://x402.outpimp.com/matrixOperations","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"matrixA":{"type":"array","description":"A 2D array of numbers, up to 20x20."},"matrixB":{"type":"array","description":"A 2D array of numbers, required only for multiply."},"operation":{"enum":["multiply","transpose","determinant","invert"],"type":"string","description":"Operation to perform."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gr6iXljM_mcNajzRgeHFL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs matrix multiply, transpose, determinant, and inversion on matrices up to 20×20 using LU decomposition with near-singularity protection.","exampleAgentPrompt":"Can you multiply matrix A [[1,2],[3,4]] by matrix B [[5,6],[7,8]] using the matrix operations service?","exampleUseCases":[{"title":"Graphics transformation pipeline","prompt":"I need to multiply these two 4x4 transformation matrices together — matrixA is [[1,0,0,1],[0,1,0,2],[0,0,1,3],[0,0,0,1]] and matrixB is [[2,0,0,0],[0,2,0,0],[0,0,2,0],[0,0,0,1]]. Can you compute the result?"},{"title":"Checking matrix invertibility in data pipeline","prompt":"I have a 3x3 matrix [[6,1,1],[4,-2,5],[2,8,7]] and I need to know if it's invertible — can you compute its determinant for me?"},{"title":"Solving systems of equations setup","prompt":"Can you invert this 3x3 matrix [[2,1,0],[1,3,1],[0,1,2]] so I can use it to solve a system of linear equations?"}],"resultDescription":"Returns a JSON object containing the computed result: for 'multiply' a 2D array product matrix, for 'transpose' a 2D transposed array, for 'determinant' a scalar numeric value, and for 'invert' a 2D inverted matrix array. Near-singular matrices will return an error instead of a numerically unstable result.","failureModes":["Matrix is singular or near-singular — inversion/determinant will return an error instead of an unreliable result","matrixB not provided when operation is 'multiply'","Matrix dimensions exceed 20x20 — rejected","Matrix dimensions incompatible for multiplication (columns of A ≠ rows of B)","Malformed 2D array input (non-numeric values, ragged rows)"],"whenToPreferThis":"Choose this endpoint when you need reliable numerical linear algebra on matrices up to 20×20, particularly when near-singularity detection matters. It is well-suited for quick determinant checks, matrix inversion for solving linear systems, or chaining transformation matrices. Prefer alternatives if you need sparse matrix support, symbolic computation, eigenvalue decomposition, or matrices larger than 20×20.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:48:57.974Z","isFirstParty":false}