Biorbd Release_1.13.0
Loading...
Searching...
No Matches
BIORBD_NAMESPACE::utils::Matrix3d Class Reference

A wrapper for the Eigen::MatrixXd. More...

#include <Matrix3d.h>

Inheritance diagram for BIORBD_NAMESPACE::utils::Matrix3d:
BIORBD_NAMESPACE::utils::Rotation

Public Member Functions

 Matrix3d ()
 Construct matrix.
 Matrix3d (const Matrix3d &other)
 Construct a new Matrix3d from other.
 Matrix3d (const Scalar &v00, const Scalar &v01, const Scalar &v02, const Scalar &v10, const Scalar &v11, const Scalar &v12, const Scalar &v20, const Scalar &v21, const Scalar &v22)
 Rotation Construct a generic 3d matrix by elements.
utils::Scalar normOne () const
 Return the 1-norm of the matrix.
utils::Scalar normInf () const
 Return the inf-norm of the matrix.
utils::Matrix3d orthoNormalize () const
 Produce an orthonormal matrix from the current matrix.

Static Public Member Functions

static utils::Matrix3d fromEulerSequence (const utils::String &seq)
 Creates a base 3d matrix from a euler sequence of exactly 3 elements.

Detailed Description

A wrapper for the Eigen::MatrixXd.

Definition at line 19 of file Matrix3d.h.

Constructor & Destructor Documentation

◆ Matrix3d() [1/3]

utils::Matrix3d::Matrix3d ( )

Construct matrix.

Definition at line 9 of file Matrix3d.cpp.

◆ Matrix3d() [2/3]

utils::Matrix3d::Matrix3d ( const Matrix3d & other)

Construct a new Matrix3d from other.

Parameters
otherThe other matrix

Definition at line 11 of file Matrix3d.cpp.

◆ Matrix3d() [3/3]

utils::Matrix3d::Matrix3d ( const Scalar & v00,
const Scalar & v01,
const Scalar & v02,
const Scalar & v10,
const Scalar & v11,
const Scalar & v12,
const Scalar & v20,
const Scalar & v21,
const Scalar & v22 )

Rotation Construct a generic 3d matrix by elements.

Parameters
v00Row 0, Col 0
v01Row 0, Col 1
v02Row 0, Col 2
v10Row 1, Col 0
v11Row 1, Col 1
v12Row 1, Col 2
v20Row 2, Col 0
v21Row 2, Col 1
v22Row 2, Col 2

Definition at line 14 of file Matrix3d.cpp.

Member Function Documentation

◆ fromEulerSequence()

utils::Matrix3d utils::Matrix3d::fromEulerSequence ( const utils::String & seq)
static

Creates a base 3d matrix from a euler sequence of exactly 3 elements.

Parameters
seqThe euler sequence
Returns
The base matrix

Definition at line 67 of file Matrix3d.cpp.

◆ normInf()

utils::Scalar utils::Matrix3d::normInf ( ) const

Return the inf-norm of the matrix.

Returns
The inf-norm of the matrix

Definition at line 46 of file Matrix3d.cpp.

◆ normOne()

utils::Scalar utils::Matrix3d::normOne ( ) const

Return the 1-norm of the matrix.

Returns
The 1-norm of the matrix

Definition at line 36 of file Matrix3d.cpp.

◆ orthoNormalize()

utils::Matrix3d utils::Matrix3d::orthoNormalize ( ) const

Produce an orthonormal matrix from the current matrix.

Returns
The othonormal matrix

Code adapted from https://github.com/brainexcerpts/3x3_polar_decomposition/blob/master/src/polar_decomposition_3x3.inl

Definition at line 56 of file Matrix3d.cpp.


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