MeshLib Java Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib.SymMatrix2d:

Public Member Functions

 SymMatrix2d (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 SymMatrix2d ()
 SymMatrix2d (meshlib.SymMatrix2d _other)
meshlib.SymMatrix2d assignFromAnother (meshlib.SymMatrix2d _other)
double trace ()
double normSq ()
double det ()
meshlib.SymMatrix2d inverse ()
meshlib.SymMatrix2d inverse (double det)
meshlib.SymMatrix2d add_assign (meshlib.SymMatrix2d b)
meshlib.SymMatrix2d sub_assign (meshlib.SymMatrix2d b)
meshlib.SymMatrix2d mul_assign (double b)
meshlib.SymMatrix2d div_assign (double b)
meshlib.Vector2d eigens (meshlib.Matrix2d eigenvectors)
meshlib.Vector2d eigenvector (double eigenvalue)
meshlib.Vector2d maxEigenvector ()
meshlib.SymMatrix2d pseudoinverse (java.lang.Double tol, meshlib.int_output rank, meshlib.Vector2d space)
double xx ()
void setXx (double value)
double xy ()
void setXy (double value)
double yy ()
void setYy (double value)
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Static Public Member Functions

static meshlib.SymMatrix2d identity ()
static meshlib.SymMatrix2d diagonal (double diagVal)

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

symmetric 2x2 matrix Generated from class MR::SymMatrix2d.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ SymMatrix2d() [1/3]

meshlib.SymMatrix2d.SymMatrix2d ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ SymMatrix2d() [2/3]

meshlib.SymMatrix2d.SymMatrix2d ( )

Constructs an empty (default-constructed) instance.

Calls MR_SymMatrix2d_DefaultConstruct().

◆ SymMatrix2d() [3/3]

meshlib.SymMatrix2d.SymMatrix2d ( meshlib.SymMatrix2d _other)

Generated from constructor MR::SymMatrix2d::SymMatrix2d. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_SymMatrix2d_ConstructFromAnother().

Member Function Documentation

◆ add_assign()

meshlib.SymMatrix2d meshlib.SymMatrix2d.add_assign ( meshlib.SymMatrix2d b)

Generated from method MR::SymMatrix2d::operator+=. The reference to this object might be preserved in the return value.

Calls MR_SymMatrix2d_add_assign().

◆ assignFromAnother()

meshlib.SymMatrix2d meshlib.SymMatrix2d.assignFromAnother ( meshlib.SymMatrix2d _other)

Generated from method MR::SymMatrix2d::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_SymMatrix2d_AssignFromAnother().

◆ det()

double meshlib.SymMatrix2d.det ( )

computes determinant of the matrix Generated from method MR::SymMatrix2d::det.

Calls MR_SymMatrix2d_det().

◆ diagonal()

meshlib.SymMatrix2d meshlib.SymMatrix2d.diagonal ( double diagVal)
static

Generated from method MR::SymMatrix2d::diagonal.

Calls MR_SymMatrix2d_diagonal().

◆ div_assign()

meshlib.SymMatrix2d meshlib.SymMatrix2d.div_assign ( double b)

Generated from method MR::SymMatrix2d::operator/=. The reference to this object might be preserved in the return value.

Calls MR_SymMatrix2d_div_assign().

◆ eigens()

meshlib.Vector2d meshlib.SymMatrix2d.eigens ( meshlib.Matrix2d eigenvectors)

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 Generated from method MR::SymMatrix2d::eigens.

Calls MR_SymMatrix2d_eigens().

◆ eigenvector()

meshlib.Vector2d meshlib.SymMatrix2d.eigenvector ( double eigenvalue)

computes not-unit eigenvector corresponding to a not-repeating eigenvalue Generated from method MR::SymMatrix2d::eigenvector.

Calls MR_SymMatrix2d_eigenvector().

◆ identity()

meshlib.SymMatrix2d meshlib.SymMatrix2d.identity ( )
static

Generated from method MR::SymMatrix2d::identity.

Calls MR_SymMatrix2d_identity().

◆ inverse() [1/2]

meshlib.SymMatrix2d meshlib.SymMatrix2d.inverse ( )

computes inverse matrix Generated from method MR::SymMatrix2d::inverse.

Calls MR_SymMatrix2d_inverse_0().

◆ inverse() [2/2]

meshlib.SymMatrix2d meshlib.SymMatrix2d.inverse ( double det)

computes inverse matrix given determinant of this Generated from method MR::SymMatrix2d::inverse.

Calls MR_SymMatrix2d_inverse_1().

◆ maxEigenvector()

meshlib.Vector2d meshlib.SymMatrix2d.maxEigenvector ( )

computes not-unit eigenvector corresponding to maximum eigenvalue Generated from method MR::SymMatrix2d::maxEigenvector.

Calls MR_SymMatrix2d_maxEigenvector().

◆ mul_assign()

meshlib.SymMatrix2d meshlib.SymMatrix2d.mul_assign ( double b)

Generated from method MR::SymMatrix2d::operator*=. The reference to this object might be preserved in the return value.

Calls MR_SymMatrix2d_mul_assign().

◆ normSq()

double meshlib.SymMatrix2d.normSq ( )

computes the squared norm of the matrix, which is equal to the sum of 4 squared elements Generated from method MR::SymMatrix2d::normSq.

Calls MR_SymMatrix2d_normSq().

◆ pseudoinverse()

meshlib.SymMatrix2d meshlib.SymMatrix2d.pseudoinverse ( java.lang.Double tol,
meshlib.int_output rank,
meshlib.Vector2d space )

for not-degenerate matrix returns just inverse matrix, otherwise returns degenerate matrix, which performs inversion on not-kernel subspace;

Parameters
tolrelative epsilon-tolerance for too small number detection
rankoptional output for this matrix rank according to given tolerance
spacerank=1: unit direction of solution line, rank=2: zero vector Generated from method MR::SymMatrix2d::pseudoinverse.

Calls MR_SymMatrix2d_pseudoinverse().

◆ setXx()

void meshlib.SymMatrix2d.setXx ( double value)

zero matrix by default Modifies a member variable of class MR::SymMatrix2d named xx.

Calls MR_SymMatrix2d_Set_xx().

◆ setXy()

void meshlib.SymMatrix2d.setXy ( double value)

zero matrix by default Modifies a member variable of class MR::SymMatrix2d named xy.

Calls MR_SymMatrix2d_Set_xy().

◆ setYy()

void meshlib.SymMatrix2d.setYy ( double value)

zero matrix by default Modifies a member variable of class MR::SymMatrix2d named yy.

Calls MR_SymMatrix2d_Set_yy().

◆ sub_assign()

meshlib.SymMatrix2d meshlib.SymMatrix2d.sub_assign ( meshlib.SymMatrix2d b)

Generated from method MR::SymMatrix2d::operator-=. The reference to this object might be preserved in the return value.

Calls MR_SymMatrix2d_sub_assign().

◆ trace()

double meshlib.SymMatrix2d.trace ( )

computes trace of the matrix Generated from method MR::SymMatrix2d::trace.

Calls MR_SymMatrix2d_trace().

◆ xx()

double meshlib.SymMatrix2d.xx ( )

zero matrix by default Returns a pointer to a member variable of class MR::SymMatrix2d named xx. The reference to this object might be preserved as the return value.

Calls MR_SymMatrix2d_Get_xx().

◆ xy()

double meshlib.SymMatrix2d.xy ( )

zero matrix by default Returns a pointer to a member variable of class MR::SymMatrix2d named xy. The reference to this object might be preserved as the return value.

Calls MR_SymMatrix2d_Get_xy().

◆ yy()

double meshlib.SymMatrix2d.yy ( )

zero matrix by default Returns a pointer to a member variable of class MR::SymMatrix2d named yy. The reference to this object might be preserved as the return value.

Calls MR_SymMatrix2d_Get_yy().


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