libroadrunner C API
Functions
Linear algebra functions

Linear algebra utility functions. More...

Functions

C_DECL_SPEC RRDoubleMatrixPtr rrcCallConv getEigenvaluesMatrix (const RRDoubleMatrixPtr mat)
 Compute the eigenvalues of a double matrix. More...
 
C_DECL_SPEC RRComplexVectorPtr rrcCallConv getEigenvaluesVector (const RRDoubleMatrixPtr mat)
 Compute the eigenvalues of a double matrix. More...
 

Detailed Description

Linear algebra utility functions.

Function Documentation

◆ getEigenvaluesMatrix()

C_DECL_SPEC RRDoubleMatrixPtr rrcCallConv getEigenvaluesMatrix ( const RRDoubleMatrixPtr  mat)

Compute the eigenvalues of a double matrix.

Parameters
[in]matPointer to a to double matrix
Returns
Returns NULL if it fails, otherwise returns a matrix of eigenvalues. The first column will contain the real values and the second column the imaginary values

◆ getEigenvaluesVector()

C_DECL_SPEC RRComplexVectorPtr rrcCallConv getEigenvaluesVector ( const RRDoubleMatrixPtr  mat)

Compute the eigenvalues of a double matrix.

Parameters
[in]matHandle to input matrix
Returns
Returns null if it fails, otherwise returns a complex vector of eigenvalues.