Skip to main content
POST
/
quantlib
/
numerical
/
linalg
/
norm
Vector Norm (p-Norm)
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/numerical/linalg/norm \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "v": [
    3,
    4
  ],
  "p": 2
}
'
{
  "success": true,
  "data": {
    "norm": 5,
    "p": 2
  }
}

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
v
number[]
required

Input vector

Example:
[3, 4]
p
integer
default:2

Norm order (1=L1, 2=L2/Euclidean, etc.)

Example:

2

Response

Successful Response

success
boolean
Example:

true

data
object