SecreC 2 language 2.9.0 (2026.10)
Language and standard library reference
Loading...
Searching...
No Matches
Functions
vecLength

Functions

float32 vecLength (float32 x)
 
float64 vecLength (float64 x)
 

Detailed Description

Function for finding the length of a vector.

Note
Only for public domain (at this point only public sqrt is in scope).
Supported types - float32 / float64

Function Documentation

◆ vecLength() [1/2]

float32 vecLength ( float32  x)
Parameters
x- vector of supported type
Returns
returns the length of the vector
Parameters
x- matrix of supported type
Returns
returns a vector with length of each row in the matrix

◆ vecLength() [2/2]

float64 vecLength ( float64  x)
Parameters
x- vector of supported type
Returns
returns the length of the vector
Parameters
x- matrix of supported type
Returns
returns a vector with length of each row in the matrix