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

Public Member Functions

auto assign_from_another (_other:&meshlib::SymMatrix2d) -> &mut meshlib::SymMatrix2d
auto trace () const -> f64
auto norm_sq () const -> f64
auto det () const -> f64
auto inverse_0 () const -> meshlib::Owned< meshlib::SymMatrix2d >
auto inverse_1 (det:f64) const -> meshlib::Owned< meshlib::SymMatrix2d >
auto add_assign (b:&meshlib::SymMatrix2d) -> &mut meshlib::SymMatrix2d
auto sub_assign (b:&meshlib::SymMatrix2d) -> &mut meshlib::SymMatrix2d
auto mul_assign (b:f64) -> &mut meshlib::SymMatrix2d
auto div_assign (b:f64) -> &mut meshlib::SymMatrix2d
auto eigens (eigenvectors:Option<&mut meshlib::Matrix2d >) const -> meshlib::Vector2d
auto eigenvector (eigenvalue:f64) const -> meshlib::Vector2d
auto max_eigenvector () const -> meshlib::Vector2d
auto pseudoinverse (tol:Option< f64 >, rank:Option<&mut core::ffi::c_int >, space:Option<&mut meshlib::Vector2d >) const -> meshlib::Owned< meshlib::SymMatrix2d >
auto xx () const -> &f64
auto xx_mut () -> &mut f64
void set_xx (value:f64)
auto xy () const -> &f64
auto xy_mut () -> &mut f64
void set_xy (value:f64)
auto yy () const -> &f64
auto yy_mut () -> &mut f64
void set_yy (value:f64)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::SymMatrix2d >
static auto construct_from_another (_other:&meshlib::SymMatrix2d) -> meshlib::Owned< meshlib::SymMatrix2d >
static auto identity () -> meshlib::Owned< meshlib::SymMatrix2d >
static auto diagonal (diagVal:f64) -> meshlib::Owned< meshlib::SymMatrix2d >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

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

Generated from class MR::SymMatrix2d. Heap-allocated instances are held in Owned<SymMatrix2d>.

Member Function Documentation

◆ add_assign()

auto meshlib::SymMatrix2d::add_assign ( b:&meshlib::SymMatrix2d ) -> &mut meshlib::SymMatrix2d

Generated from method MR::SymMatrix2d::operator+=.

Calls MR_SymMatrix2d_add_assign(). The reference to this object might be preserved in the return value.

◆ assign_from_another()

auto meshlib::SymMatrix2d::assign_from_another ( _other:&meshlib::SymMatrix2d ) -> &mut meshlib::SymMatrix2d

Generated from method MR::SymMatrix2d::operator=.

Calls MR_SymMatrix2d_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ construct_from_another()

auto meshlib::SymMatrix2d::construct_from_another ( _other:&meshlib::SymMatrix2d ) -> meshlib::Owned< meshlib::SymMatrix2d >
static

Generated from constructor MR::SymMatrix2d::SymMatrix2d.

Calls MR_SymMatrix2d_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ det()

auto meshlib::SymMatrix2d::det ( ) const -> f64

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

Calls MR_SymMatrix2d_det().

◆ diagonal()

auto meshlib::SymMatrix2d::diagonal ( diagVal:f64 ) -> meshlib::Owned< meshlib::SymMatrix2d >
static

Generated from method MR::SymMatrix2d::diagonal.

Calls MR_SymMatrix2d_diagonal().

◆ div_assign()

auto meshlib::SymMatrix2d::div_assign ( b:f64 ) -> &mut meshlib::SymMatrix2d

Generated from method MR::SymMatrix2d::operator/=.

Calls MR_SymMatrix2d_div_assign(). The reference to this object might be preserved in the return value.

◆ eigens()

auto meshlib::SymMatrix2d::eigens ( eigenvectors:Option<&mut meshlib::Matrix2d > ) const -> meshlib::Vector2d

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()

auto meshlib::SymMatrix2d::eigenvector ( eigenvalue:f64 ) const -> meshlib::Vector2d

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

Calls MR_SymMatrix2d_eigenvector().

◆ identity()

auto meshlib::SymMatrix2d::identity ( ) -> meshlib::Owned< meshlib::SymMatrix2d >
static

Generated from method MR::SymMatrix2d::identity.

Calls MR_SymMatrix2d_identity().

◆ inverse_0()

auto meshlib::SymMatrix2d::inverse_0 ( ) const -> meshlib::Owned< meshlib::SymMatrix2d >

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

Calls MR_SymMatrix2d_inverse_0().

◆ inverse_1()

auto meshlib::SymMatrix2d::inverse_1 ( det:f64 ) const -> meshlib::Owned< meshlib::SymMatrix2d >

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

Calls MR_SymMatrix2d_inverse_1().

◆ max_eigenvector()

auto meshlib::SymMatrix2d::max_eigenvector ( ) const -> meshlib::Vector2d

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

Calls MR_SymMatrix2d_maxEigenvector().

◆ mul_assign()

auto meshlib::SymMatrix2d::mul_assign ( b:f64 ) -> &mut meshlib::SymMatrix2d

Generated from method MR::SymMatrix2d::operator*=.

Calls MR_SymMatrix2d_mul_assign(). The reference to this object might be preserved in the return value.

◆ new()

auto meshlib::SymMatrix2d::new ( ) -> meshlib::Owned< meshlib::SymMatrix2d >
static

Constructs an empty (default-constructed) instance.

Calls MR_SymMatrix2d_DefaultConstruct().

◆ norm_sq()

auto meshlib::SymMatrix2d::norm_sq ( ) const -> f64

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()

auto meshlib::SymMatrix2d::pseudoinverse ( tol:Option< f64 > ,
rank:Option<&mut core::ffi::c_int > ,
space:Option<&mut meshlib::Vector2d >  ) const -> meshlib::Owned< meshlib::SymMatrix2d >

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().

◆ set_xx()

void meshlib::SymMatrix2d::set_xx ( value:f64 )

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

Calls MR_SymMatrix2d_Set_xx().

◆ set_xy()

void meshlib::SymMatrix2d::set_xy ( value:f64 )

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

Calls MR_SymMatrix2d_Set_xy().

◆ set_yy()

void meshlib::SymMatrix2d::set_yy ( value:f64 )

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

Calls MR_SymMatrix2d_Set_yy().

◆ sub_assign()

auto meshlib::SymMatrix2d::sub_assign ( b:&meshlib::SymMatrix2d ) -> &mut meshlib::SymMatrix2d

Generated from method MR::SymMatrix2d::operator-=.

Calls MR_SymMatrix2d_sub_assign(). The reference to this object might be preserved in the return value.

◆ trace()

auto meshlib::SymMatrix2d::trace ( ) const -> f64

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

Calls MR_SymMatrix2d_trace().

◆ xx()

auto meshlib::SymMatrix2d::xx ( ) const -> &f64

zero matrix by default Returns a pointer to a member variable of class MR::SymMatrix2d named xx.

Calls MR_SymMatrix2d_Get_xx(). The reference to this object might be preserved as the return value.

◆ xx_mut()

auto meshlib::SymMatrix2d::xx_mut ( ) -> &mut f64

zero matrix by default Returns a mutable pointer to a member variable of class MR::SymMatrix2d named xx.

Calls MR_SymMatrix2d_GetMutable_xx(). The reference to this object might be preserved as the return value.

◆ xy()

auto meshlib::SymMatrix2d::xy ( ) const -> &f64

zero matrix by default Returns a pointer to a member variable of class MR::SymMatrix2d named xy.

Calls MR_SymMatrix2d_Get_xy(). The reference to this object might be preserved as the return value.

◆ xy_mut()

auto meshlib::SymMatrix2d::xy_mut ( ) -> &mut f64

zero matrix by default Returns a mutable pointer to a member variable of class MR::SymMatrix2d named xy.

Calls MR_SymMatrix2d_GetMutable_xy(). The reference to this object might be preserved as the return value.

◆ yy()

auto meshlib::SymMatrix2d::yy ( ) const -> &f64

zero matrix by default Returns a pointer to a member variable of class MR::SymMatrix2d named yy.

Calls MR_SymMatrix2d_Get_yy(). The reference to this object might be preserved as the return value.

◆ yy_mut()

auto meshlib::SymMatrix2d::yy_mut ( ) -> &mut f64

zero matrix by default Returns a mutable pointer to a member variable of class MR::SymMatrix2d named yy.

Calls MR_SymMatrix2d_GetMutable_yy(). The reference to this object might be preserved as the return value.


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