Skip to content
Fourohtwo

rechen.halowerk.com/v1/matrix-market-residual-check

Sparse linear-system checking returns the infinity norm of Ax minus b and the worst residual row. Use it when an agent needs a check on a proposed solution vector.

BaseAnswering
POSThttps://rechen.halowerk.com/v1/matrix-market-residual-check

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://rechen.halowerk.com/v1/matrix-market-residual-check", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"b":[1,2,3],"matrix":"%%MatrixMarket matrix coordinate real symmetric\n3 3 5\n1 1 2832268.51852\n2 1 1000000\n2 2 1067500000\n3 1 2083333.33333\n3 3 1535333333.33","x":[1,0,1]}),
});
console.log(await res.json());

Example input

{
  "b": [
    1,
    2,
    3
  ],
  "matrix": "%%MatrixMarket matrix coordinate real symmetric\n3 3 5\n1 1 2832268.51852\n2 1 1000000\n2 2 1067500000\n3 1 2083333.33333\n3 3 1535333333.33",
  "x": [
    1,
    0,
    1
  ]
}