# Sindri Matrix Operations

> Sindri Matrix Operations is a paid API for AI agents from ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-02).

Performs matrix multiplication, transposition, determinant calculation, and inversion for matrices up to 20×20 using LU decomposition with near-singularity protection.

## Facts

- Endpoint: POST https://ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/matrixOperations?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sindri-matrix-operations-c353d117
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PAD8TtO7i41RHSOeoB99i

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability sindri-matrix-operations-c353d117 -d '<json body>'
```

Example prompt: Multiply these two matrices for me: matrixA is [[1,2],[3,4]] and matrixB is [[5,6],[7,8]].

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sindri-matrix-operations-c353d117/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws](https://www.zero.xyz/host/ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/llms.txt)
