INGOR
Loading...
Searching...
No Matches
Enumerations | Functions
ytMatrix

Enumerations

enum  ytMatrix_Transpose
 This specifies transposing of a matrix in BLAS routines. Use ytMatrix_L_Transpose for LAPACK routines.
 
enum  ytMatrix_L_Transpose { ytMatrix_L_NO_TRANS , ytMatrix_L_TRANS }
 This specifies transposing of a matrix in LAPACK routines. Use ytMatrix_Transpose for BLAS routines. More...
 

Functions

double ytMatrix_trace (const int n, const int m, double *X)
 Returns the trace of the given matrix.
 
int ytMatrix_dsytrf_work_size (int n)
 Returns the optimal working memory size for dsytrf routine.
 
void ytMatrix_print (FILE *fp, const double *X, int m, int n, int N)
 Prints the matrix.
 
void ytMatrix_printTrans (FILE *fp, const double *X, int m, int n, int N)
 Prints the transposed or row-major matrix.
 

Detailed Description

Enumeration Type Documentation

◆ ytMatrix_L_Transpose

This specifies transposing of a matrix in LAPACK routines. Use ytMatrix_Transpose for BLAS routines.

Enumerator
ytMatrix_L_NO_TRANS 

No transpose.

ytMatrix_L_TRANS 

Transpose.

Function Documentation

◆ ytMatrix_dsytrf_work_size()

int ytMatrix_dsytrf_work_size ( int  n)

Returns the optimal working memory size for dsytrf routine.

Returns
optimal working memory size used by SGN_Matrix_dsytrf(), or 0 if the native LAPACK routine does not need it.

◆ ytMatrix_print()

void ytMatrix_print ( FILE *  fp,
const double *  X,
int  m,
int  n,
int  N 
)

Prints the matrix.

Parameters
fp
X
m
n
N

◆ ytMatrix_printTrans()

void ytMatrix_printTrans ( FILE *  fp,
const double *  X,
int  m,
int  n,
int  N 
)

Prints the transposed or row-major matrix.

Parameters
fp
X
m
n
N

◆ ytMatrix_trace()

double ytMatrix_trace ( const int  n,
const int  m,
double *  X 
)

Returns the trace of the given matrix.

The trace of a matrix is the sum of diagonal elements of the matrix.