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

Functions

float32 determinant (float32[[2]] mat)
 
float64 determinant (float64[[2]] mat)
 
template<domain D>
D float64 determinant (D float32[[2]] mat)
 
template<domain D>
D float64 determinant (D float64[[2]] mat)
 

Detailed Description

Function for finding the determinant of a matrix.

Note
Supported types - float32 / float64
Parameters
mat- a matrix of supported type
Returns
returns the determinant of the input matrix
Leakage
None

Function Documentation

◆ determinant() [1/4]

D float64 determinant ( D float32[[2]]  mat)
Note
D - all protection domains
naive determinant implementation

◆ determinant() [2/4]

D float64 determinant ( D float64[[2]]  mat)
Note
D - all protection domains
naive determinant implementation

◆ determinant() [3/4]

float32 determinant ( float32[[2]]  mat)

◆ determinant() [4/4]

float64 determinant ( float64[[2]]  mat)