Skip to content
Fourohtwo

rechen.halowerk.com/v1/matrix-market-vector-product

Sparse matrix multiplication returns the matrix-vector product from a Matrix Market coordinate file. Use it when an agent needs a numerical result with symmetric entries expanded.

BaseAnswering
POSThttps://rechen.halowerk.com/v1/matrix-market-vector-product

Uptime100% of 2 checks 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-vector-product", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"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

{
  "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
  ]
}