Skip to main content
POST
/
quantlib
/
numerical
/
linalg
/
matmul
Matrix Multiplication
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/numerical/linalg/matmul \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "A": [
    [
      1,
      2
    ],
    [
      3,
      4
    ],
    [
      5,
      6
    ]
  ],
  "B": [
    [
      7,
      8,
      9
    ],
    [
      10,
      11,
      12
    ]
  ]
}
'
{
  "success": true,
  "data": {
    "result": [
      [
        27,
        30,
        33
      ],
      [
        61,
        68,
        75
      ],
      [
        95,
        106,
        117
      ]
    ]
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register

Body

application/json
A
number[][]
required

First matrix (m × n)

Example:
[[1, 2], [3, 4], [5, 6]]
B
number[][]
required

Second matrix (n × p)

Example:
[[7, 8, 9], [10, 11, 12]]

Response

Successful Response

success
boolean
Example:

true

data
object