SecreC 2 language  2.8.0 (2023.09)
Language and standard library reference
Functions

Functions

template<domain D :shared3p >
D float32 vecLength (D float32[[1]] x)
 
template<domain D :shared3p >
D float64 vecLength (D float64[[1]] x)
 
template<domain D :shared3p >
D float32 vecLength (D float32[[2]] x)
 
template<domain D :shared3p >
D float64 vecLength (D float64[[2]] x)
 

Detailed Description

Function for finding the length of a vector.

Note
D - shared3p protection domain
Supported types - float32 / float64
Leakage
None

Function Documentation

◆ vecLength() [1/4]

D float32 vecLength ( D float32[[1]]  x)
Parameters
x- vector of supported type
Returns
returns the length of the vector

◆ vecLength() [2/4]

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

◆ vecLength() [3/4]

D float64 vecLength ( D float64[[1]]  x)
Parameters
x- vector of supported type
Returns
returns the length of the vector

◆ vecLength() [4/4]

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