Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
Macros | Functions
eigenv_private.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_eigenv3d (int symmat, double *mat, double lambda[3], double v[3][3])
 Find eigenvalues and vectors of a 3x3 matrix. More...
 
int MMG5_eigenv2d (int symmat, double *mat, double lambda[2], double v[2][2])
 Find eigenvalues and vectors of a 2x2 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

Definition at line 32 of file eigenv_private.h.

◆ MMG5_EPSD

#define MMG5_EPSD   1.e-30

Definition at line 31 of file eigenv_private.h.

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

Definition at line 858 of file eigenv.c.

Here is the caller graph for this function:

◆ 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.

Definition at line 973 of file eigenv.c.

Here is the caller graph for this function:

◆ MMG5_eigenv2d()

int MMG5_eigenv2d ( int  symmat,
double *  mat,
double  lambda[2],
double  vp[2][2] 
)

Find eigenvalues and vectors of a 2x2 matrix.

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

Definition at line 780 of file eigenv.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG5_eigenv3d()

int MMG5_eigenv3d ( 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][.].

rows of A-lambda[2]*I

rows of A-lambda[0]*I

Definition at line 385 of file eigenv.c.

Here is the call graph for this function:
Here is the caller graph for this function: