mmgs
eigenv.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MMG5_EPSD   1.e-30
 
#define MMG5_EPS   1.e-06
 

Functions

int MMG5_eigenv (int symmat, double *mat, double lambda[3], double v[3][3])
 Find eigenvalues and vectors of a 3x3 matrix. More...
 
int MMG5_eigen2 (double *mm, double *lambda, double vp[2][2])
 Find eigenvalues and vectors of a 2x2 matrix. More...
 
int MMG5_eigensym (double m[3], double lambda[2], double vp[2][2])
 

Macro Definition Documentation

◆ MMG5_EPS

#define MMG5_EPS   1.e-06

◆ MMG5_EPSD

#define MMG5_EPSD   1.e-30

Function Documentation

◆ MMG5_eigen2()

int MMG5_eigen2 ( double *  mm,
double *  lambda,
double  vp[2][2] 
)

Find eigenvalues and vectors of a 2x2 matrix.

Parameters
mmpointer toward the matrix.
lambdapointer toward the output eigenvalues.
vpeigenvectors.
Returns
1.
Warning
not used for now

◆ MMG5_eigensym()

int MMG5_eigensym ( double  m[3],
double  lambda[2],
double  vp[2][2] 
)
inline
Parameters
mterms of symetric matrix $2x2$.
lambdaeigenvalues of m.
vpeigenvectors of m.
Returns
order of the eigenvalues.

Compute eigenelements of a symetric matrix m. Eigenvectors are orthogonal.

◆ MMG5_eigenv()

int MMG5_eigenv ( int  symmat,
double *  mat,
double  lambda[3],
double  v[3][3] 
)

Find eigenvalues and vectors of a 3x3 matrix.

Parameters
symmat0 if matrix is not symetric, 1 otherwise.
matpointer toward the matrix.
lambdaeigenvalues.
veigenvectors.
Returns
order of eigenvalues (1,2,3) or 0 if failed.
Remarks
the i^{th} eigenvector is stored in v[i][.].
Here is the call graph for this function: