Catalog/geometry-matrix-multiply

Geometry

Matrix multiplication API

Multiply two conformable matrices (A·B) with dimension validation. Answers 'what is the product of these two matrices?'.

Price$0.01per request
MethodPOST
Route/v1/geometry/matrix-multiply
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
matrixmultiplyproductlinear-algebratransform
API URLhttps://x402.hexl.dev/v1/geometry/matrix-multiply
Integration docs
Example request
{
  "a": [
    [
      1,
      2
    ],
    [
      3,
      4
    ]
  ],
  "b": [
    [
      5,
      6
    ],
    [
      7,
      8
    ]
  ]
}
Example response
{
  "product": [
    [
      19,
      22
    ],
    [
      43,
      50
    ]
  ],
  "rows": 2,
  "cols": 2
}
Input schema
{
  "type": "object",
  "required": [
    "a",
    "b"
  ],
  "properties": {
    "a": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "number"
        }
      },
      "examples": [
        [
          [
            1,
            2
          ],
          [
            3,
            4
          ]
        ]
      ]
    },
    "b": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "number"
        }
      },
      "examples": [
        [
          [
            5,
            6
          ],
          [
            7,
            8
          ]
        ]
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}