Skip to main content
POST
/
quantlib
/
numerical
/
linalg
/
decompose
Matrix Decomposition
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/numerical/linalg/decompose \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "A": [
    [
      4,
      12,
      -16
    ],
    [
      12,
      37,
      -43
    ],
    [
      -16,
      -43,
      98
    ]
  ],
  "method": "cholesky"
}
'
{
  "success": true,
  "data": {
    "L": [
      [
        2,
        0,
        0
      ],
      [
        6,
        1,
        0
      ],
      [
        -8,
        5,
        3
      ]
    ]
  }
}

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

Input matrix (requirements depend on method: LU/QR/SVD work on any, Cholesky requires positive definite symmetric)

Example:
[[4, 12, -16], [12, 37, -43], [-16, -43, 98]]
method
enum<string>
default:lu

Decomposition method

Available options:
lu,
cholesky,
qr,
svd
Example:

"cholesky"

Response

Successful Response

success
boolean
Example:

true

data
object

Decomposition result (structure depends on method)