Mir 1.0
Mir application programming interface
Symmetrical Eigensystems

Data Structures

struct  mirml_nr_jtsm_t_
 Structure for Jacobi transformations of symmetric matrices. More...
 

Typedefs

typedef struct mirml_nr_jtsm_t_ mirml_nr_jtsm_t
 Structure for Jacobi transformations of symmetric matrices.
 

Functions

mirkl_error_tmirml_nr_jtsm_init (mirml_nr_jtsm_t **jtsm)
 Allocation and initialization of JTSM structure.
 
void mirml_nr_jtsm_free (mirml_nr_jtsm_t *jtsm)
 Deallocates JTSM structure and its content. More...
 
mirkl_error_tmirml_nr_jtsm_compute (mirml_matrix_t *inp, mirkl_size_t i0, mirkl_size_t j0, mirkl_size_t cn, mirml_nr_jtsm_t *jtsm)
 Computes all eigenvalues and eigenvectors of a real symmetric square matrix by Jacobi's method. More...
 

Detailed Description

Function Documentation

◆ mirml_nr_jtsm_compute()

mirkl_error_t * mirml_nr_jtsm_compute ( mirml_matrix_t inp,
mirkl_size_t  i0,
mirkl_size_t  j0,
mirkl_size_t  cn,
mirml_nr_jtsm_t jtsm 
)

Computes all eigenvalues and eigenvectors of a real symmetric square matrix by Jacobi's method.

Parameters
[in]inpInput real symmetric matrix.
[in]i0Starting row index, from which the input matrix should be processed.
[in]j0Starting column index, from which the input matrix should be processed.
[in]cnCustom number of rows and columns in input matrix to be processed. All rows and columns of input matrix starting from (i0,j0) will be processed if cn is 0.
[in]jtsmInitialized structure for Jacobi's method. Contains results on output.
Note
i0, j0 and cn are all zero in simplest case when the whole input matrix should be processed.
Eigenvalues and eigenvectors are sorted after computation.

◆ mirml_nr_jtsm_free()

void mirml_nr_jtsm_free ( mirml_nr_jtsm_t jtsm)

Deallocates JTSM structure and its content.

Note
The pointer jtsm after the call is not valid anymore.