{"uid":"cap_PAD8TtO7i41RHSOeoB99i","slug":"sindri-matrix-operations-c353d117","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://ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/matrixOperations?utm_source=zero.xyz","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_EjIxFEyhAtgVa74yTUHKT","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 multiplication, transposition, determinant calculation, and inversion for matrices up to 20×20 using LU decomposition with near-singularity protection.","exampleAgentPrompt":"Multiply these two matrices for me: matrixA is [[1,2],[3,4]] and matrixB is [[5,6],[7,8]].","exampleUseCases":[{"title":"Solve a system of linear equations","prompt":"I need to invert this 3x3 matrix to solve my linear system: [[2,1,0],[1,3,1],[0,1,2]]. Can you get the inverse?"},{"title":"Verify matrix multiplication result","prompt":"Can you multiply matrixA = [[1,0,0],[0,1,0],[0,0,1]] by matrixB = [[4,7],[2,6],[3,8]] and give me the result?"},{"title":"Check if a matrix is singular","prompt":"Can you compute the determinant of this 4x4 matrix: [[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,16]]? I want to know if it's invertible."}],"resultDescription":"Returns the result of the requested matrix operation: a 2D array for multiply, transpose, or invert, or a scalar number for determinant. If the matrix is singular or near-singular (detected via LU decomposition), returns an error indicating the matrix cannot be inverted or its determinant cannot be reliably computed.","failureModes":["Matrix is exactly singular — LU decomposition detects this and returns an error","Matrix is near-singular — numerical guard triggers and prevents unreliable inversion","matrixB not provided for multiply operation — validation error","Matrix dimensions exceed 20x20 — rejected by size limit","Non-rectangular or jagged array input — may cause computation error","Mismatched dimensions for multiplication (cols of A ≠ rows of B) — returns dimension mismatch error"],"whenToPreferThis":"Choose this endpoint when you need reliable, numerically guarded matrix operations (multiply, transpose, determinant, inversion) for matrices up to 20×20 without setting up a local linear algebra library. Especially useful when near-singularity protection matters, as the LU decomposition guard prevents silent numerical failures that raw implementations might miss.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T18:46:43.409Z","isFirstParty":false,"canonicalSlug":"sindri-matrix-operations-c353d117"}