MeshLib Python Docs
Loading...
Searching...
No Matches
Inheritance diagram for mrmeshpy.ConstSymMatrix2d:

Public Member Functions

 __init__ (self, *args, **kwargs)
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='std::numeric_limits< double >::epsilon()', int_output rank=None, Vector2d space=None)
float trace (self)
float xx (self)
float xy (self)
float yy (self)

Static Public Member Functions

SymMatrix2d diagonal (float diagVal)
SymMatrix2d identity ()

Static Protected Attributes

typing _offsetof_xx = 0
typing _offsetof_xy = 8
typing _offsetof_yy = 16

Detailed Description

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

symmetric 2x2 matrix

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstSymMatrix2d.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstSymMatrix2d) -> None

2. __init__(self: meshlib.mrmeshpy.ConstSymMatrix2d, arg0: meshlib.mrmeshpy.ConstSymMatrix2d) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstSymMatrix2d, : meshlib.mrmeshpy.ConstSymMatrix2d) -> None

Member Function Documentation

◆ det()

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

◆ diagonal()

SymMatrix2d mrmeshpy.ConstSymMatrix2d.diagonal ( float diagVal)
static

◆ eigens()

Vector2d mrmeshpy.ConstSymMatrix2d.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 mrmeshpy.ConstSymMatrix2d.eigenvector ( self,
float eigenvalue )
computes not-unit eigenvector corresponding to a not-repeating eigenvalue

◆ identity()

SymMatrix2d mrmeshpy.ConstSymMatrix2d.identity ( )
static

◆ inverse() [1/2]

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

◆ inverse() [2/2]

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

◆ maxEigenvector()

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

◆ normSq()

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

◆ pseudoinverse()

SymMatrix2d mrmeshpy.ConstSymMatrix2d.pseudoinverse ( self,
float tol = 'std::numeric_limits<double>::epsilon()',
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 mrmeshpy.ConstSymMatrix2d.trace ( self)
computes trace of the matrix

◆ xx()

float mrmeshpy.ConstSymMatrix2d.xx ( self)
zero matrix by default

Reimplemented in mrmeshpy.SymMatrix2d, and mrmeshpy.SymMatrix2d.

◆ xy()

float mrmeshpy.ConstSymMatrix2d.xy ( self)
zero matrix by default

Reimplemented in mrmeshpy.SymMatrix2d, and mrmeshpy.SymMatrix2d.

◆ yy()

float mrmeshpy.ConstSymMatrix2d.yy ( self)
zero matrix by default

Reimplemented in mrmeshpy.SymMatrix2d, and mrmeshpy.SymMatrix2d.

Member Data Documentation

◆ _offsetof_xx

typing mrmeshpy.ConstSymMatrix2d._offsetof_xx = 0
staticprotected

◆ _offsetof_xy

typing mrmeshpy.ConstSymMatrix2d._offsetof_xy = 8
staticprotected

◆ _offsetof_yy

typing mrmeshpy.ConstSymMatrix2d._offsetof_yy = 16
staticprotected

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