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

Functions

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

Detailed Description

Function for finding the Cholesky decomposition of a matrix.

Note
D - shared3p protection domain
Supported types - float32 / float64
The Cholesky decomposition can only be applied to positive-definite Hermitian matrices.
Parameters
x- matrix
Returns
returns matrix L such that x = L L^T
Leakage
None

Function Documentation

◆ cholesky() [1/2]

D float32 cholesky ( D float32[[2]]  x)

◆ cholesky() [2/2]

D float64 cholesky ( D float64[[2]]  x)