MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.SymMatrix2d Class Reference

Public Member Functions

SymMatrix2d __iadd__ (self, SymMatrix2d b)
 
SymMatrix2d __imatmul__ (self, float b)
 
None __init__ (self)
 
None __init__ (self, SymMatrix2d arg0)
 
SymMatrix2d __isub__ (self, SymMatrix2d b)
 
SymMatrix2d __itruediv__ (self, float b)
 
float det (self)
 
Vector2d eigens (self, Matrix2d eigenvectors=None)
 
Vector2d eigenvector (self, float eigenvalue)
 
SymMatrix2d inverse (self)
 
SymMatrix2d inverse (self, float det)
 
Vector2d maxEigenvector (self)
 
float normSq (self)
 
SymMatrix2d pseudoinverse (self, float tol=2.220446049250313e-16, int_output rank=None, Vector2d space=None)
 
float trace (self)
 
float xx (self)
 
None xx (self, float arg1)
 
float xy (self)
 
None xy (self, float arg1)
 
float yy (self)
 
None yy (self, float arg1)
 

Static Public Member Functions

SymMatrix2d diagonal (float diagVal)
 
SymMatrix2d identity ()
 

Detailed Description

Generated from:  MR::SymMatrix2d
Aliases:  SymMatrix2_double, Vector2_double_SymMatrixType, QuadraticForm_Vector2d_SM, SymMatrix2_double

symmetric 2x2 matrix
\\ingroup MatrixGroup

Constructor & Destructor Documentation

◆ __init__() [1/2]

None meshlib.mrmeshpy.SymMatrix2d.__init__ ( self)

◆ __init__() [2/2]

None meshlib.mrmeshpy.SymMatrix2d.__init__ ( self,
SymMatrix2d arg0 )
Implicit copy constructor.

Member Function Documentation

◆ __iadd__()

SymMatrix2d meshlib.mrmeshpy.SymMatrix2d.__iadd__ ( self,
SymMatrix2d b )

◆ __imatmul__()

SymMatrix2d meshlib.mrmeshpy.SymMatrix2d.__imatmul__ ( self,
float b )

◆ __isub__()

SymMatrix2d meshlib.mrmeshpy.SymMatrix2d.__isub__ ( self,
SymMatrix2d b )

◆ __itruediv__()

SymMatrix2d meshlib.mrmeshpy.SymMatrix2d.__itruediv__ ( self,
float b )

◆ det()

float meshlib.mrmeshpy.SymMatrix2d.det ( self)
computes determinant of the matrix

◆ diagonal()

SymMatrix2d meshlib.mrmeshpy.SymMatrix2d.diagonal ( float diagVal)
static

◆ eigens()

Vector2d meshlib.mrmeshpy.SymMatrix2d.eigens ( self,
Matrix2d eigenvectors = None )
returns eigenvalues of the matrix in ascending order (diagonal matrix L), and
optionally returns corresponding unit eigenvectors in the rows of orthogonal matrix V,
M*V^T = V^T*L; M = V^T*L*V

◆ eigenvector()

Vector2d meshlib.mrmeshpy.SymMatrix2d.eigenvector ( self,
float eigenvalue )
computes not-unit eigenvector corresponding to a not-repeating eigenvalue

◆ identity()

SymMatrix2d meshlib.mrmeshpy.SymMatrix2d.identity ( )
static

◆ inverse() [1/2]

SymMatrix2d meshlib.mrmeshpy.SymMatrix2d.inverse ( self)
computes inverse matrix

◆ inverse() [2/2]

SymMatrix2d meshlib.mrmeshpy.SymMatrix2d.inverse ( self,
float det )
computes inverse matrix given determinant of this

◆ maxEigenvector()

Vector2d meshlib.mrmeshpy.SymMatrix2d.maxEigenvector ( self)
computes not-unit eigenvector corresponding to maximum eigenvalue

◆ normSq()

float meshlib.mrmeshpy.SymMatrix2d.normSq ( self)
computes the squared norm of the matrix, which is equal to the sum of 4 squared elements

◆ pseudoinverse()

SymMatrix2d meshlib.mrmeshpy.SymMatrix2d.pseudoinverse ( self,
float tol = 2.220446049250313e-16,
int_output rank = None,
Vector2d space = None )
for not-degenerate matrix returns just inverse matrix, otherwise
returns degenerate matrix, which performs inversion on not-kernel subspace;
\\param tol relative epsilon-tolerance for too small number detection
\\param rank optional output for this matrix rank according to given tolerance
\\param space rank=1: unit direction of solution line, rank=2: zero vector

◆ trace()

float meshlib.mrmeshpy.SymMatrix2d.trace ( self)
computes trace of the matrix

◆ xx() [1/2]

float meshlib.mrmeshpy.SymMatrix2d.xx ( self)
zero matrix by default

◆ xx() [2/2]

None meshlib.mrmeshpy.SymMatrix2d.xx ( self,
float arg1 )

◆ xy() [1/2]

float meshlib.mrmeshpy.SymMatrix2d.xy ( self)
zero matrix by default

◆ xy() [2/2]

None meshlib.mrmeshpy.SymMatrix2d.xy ( self,
float arg1 )

◆ yy() [1/2]

float meshlib.mrmeshpy.SymMatrix2d.yy ( self)
zero matrix by default

◆ yy() [2/2]

None meshlib.mrmeshpy.SymMatrix2d.yy ( self,
float arg1 )

The documentation for this class was generated from the following file: