PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::SquareMatrix< T, 3 > Class Template Reference

#include <Matrix3x3.h>

Inheritance diagram for dyno::SquareMatrix< T, 3 >:
Collaboration diagram for dyno::SquareMatrix< T, 3 >:

Public Types

typedef T VarType
 

Public Member Functions

DYN_FUNC SquareMatrix ()
 
DYN_FUNC SquareMatrix (T)
 
DYN_FUNC SquareMatrix (T x00, T x01, T x02, T x10, T x11, T x12, T x20, T x21, T x22)
 
DYN_FUNC SquareMatrix (const Vector< T, 3 > &row1, const Vector< T, 3 > &row2, const Vector< T, 3 > &row3)
 
DYN_FUNC SquareMatrix (const SquareMatrix< T, 3 > &)
 
DYN_FUNC ~SquareMatrix ()
 
DYN_FUNC Toperator() (unsigned int i, unsigned int j)
 
DYN_FUNC const Toperator() (unsigned int i, unsigned int j) const
 
DYN_FUNC const Vector< T, 3 > row (unsigned int i) const
 
DYN_FUNC const Vector< T, 3 > col (unsigned int i) const
 
DYN_FUNC void setRow (unsigned int i, const Vector< T, 3 > &vec)
 
DYN_FUNC void setCol (unsigned int j, const Vector< T, 3 > &vec)
 
DYN_FUNC const SquareMatrix< T, 3 > operator+ (const SquareMatrix< T, 3 > &) const
 
DYN_FUNC SquareMatrix< T, 3 > & operator+= (const SquareMatrix< T, 3 > &)
 
DYN_FUNC const SquareMatrix< T, 3 > operator- (const SquareMatrix< T, 3 > &) const
 
DYN_FUNC SquareMatrix< T, 3 > & operator-= (const SquareMatrix< T, 3 > &)
 
DYN_FUNC const SquareMatrix< T, 3 > operator* (const SquareMatrix< T, 3 > &) const
 
DYN_FUNC SquareMatrix< T, 3 > & operator*= (const SquareMatrix< T, 3 > &)
 
DYN_FUNC const SquareMatrix< T, 3 > operator/ (const SquareMatrix< T, 3 > &) const
 
DYN_FUNC SquareMatrix< T, 3 > & operator/= (const SquareMatrix< T, 3 > &)
 
DYN_FUNC SquareMatrix< T, 3 > & operator= (const SquareMatrix< T, 3 > &)
 
DYN_FUNC bool operator== (const SquareMatrix< T, 3 > &) const
 
DYN_FUNC bool operator!= (const SquareMatrix< T, 3 > &) const
 
DYN_FUNC const SquareMatrix< T, 3 > operator* (const T &) const
 
DYN_FUNC SquareMatrix< T, 3 > & operator*= (const T &)
 
DYN_FUNC const SquareMatrix< T, 3 > operator/ (const T &) const
 
DYN_FUNC SquareMatrix< T, 3 > & operator/= (const T &)
 
DYN_FUNC const Vector< T, 3 > operator* (const Vector< T, 3 > &) const
 
DYN_FUNC const SquareMatrix< T, 3 > operator- (void) const
 
DYN_FUNC const SquareMatrix< T, 3 > transpose () const
 
DYN_FUNC const SquareMatrix< T, 3 > inverse () const
 
DYN_FUNC T determinant () const
 
DYN_FUNC T trace () const
 
DYN_FUNC T doubleContraction (const SquareMatrix< T, 3 > &) const
 
DYN_FUNC T frobeniusNorm () const
 
DYN_FUNC T oneNorm () const
 
DYN_FUNC T infNorm () const
 
DYN_FUNC TgetDataPtr ()
 
 SquareMatrix ()
 
 ~SquareMatrix ()
 
virtual unsigned int rows () const
 
virtual unsigned int cols () const
 
- Public Member Functions inherited from dyno::MatrixBase
 MatrixBase ()
 
virtual ~MatrixBase ()
 

Static Public Member Functions

static DYN_FUNC unsigned int rows ()
 
static DYN_FUNC unsigned int cols ()
 
static DYN_FUNC const SquareMatrix< T, 3 > identityMatrix ()
 
static DYN_FUNC const SquareMatrix< T, 3 > diagonalMatrix (const Vector< T, 3 > vec)
 

Protected Attributes

Vector< T, 3 > data_ [3]
 

Detailed Description

template<typename T>
class dyno::SquareMatrix< T, 3 >

Definition at line 15 of file Matrix3x3.h.

Member Typedef Documentation

◆ VarType

template<typename T>
typedef T dyno::SquareMatrix< T, 3 >::VarType

Definition at line 18 of file Matrix3x3.h.

Constructor & Destructor Documentation

◆ SquareMatrix() [1/6]

template<typename T>
DYN_FUNC dyno::SquareMatrix< T, 3 >::SquareMatrix ( )

Definition at line 9 of file Matrix3x3.inl.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SquareMatrix() [2/6]

template<typename T>
DYN_FUNC dyno::SquareMatrix< T, 3 >::SquareMatrix ( T value)
explicit

Definition at line 15 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ SquareMatrix() [3/6]

template<typename T>
DYN_FUNC dyno::SquareMatrix< T, 3 >::SquareMatrix ( T x00,
T x01,
T x02,
T x10,
T x11,
T x12,
T x20,
T x21,
T x22 )

Definition at line 21 of file Matrix3x3.inl.

◆ SquareMatrix() [4/6]

template<typename T>
DYN_FUNC dyno::SquareMatrix< T, 3 >::SquareMatrix ( const Vector< T, 3 > & row1,
const Vector< T, 3 > & row2,
const Vector< T, 3 > & row3 )

Definition at line 29 of file Matrix3x3.inl.

◆ SquareMatrix() [5/6]

template<typename T>
DYN_FUNC dyno::SquareMatrix< T, 3 >::SquareMatrix ( const SquareMatrix< T, 3 > & mat)

Definition at line 37 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ ~SquareMatrix() [1/2]

template<typename T>
DYN_FUNC dyno::SquareMatrix< T, 3 >::~SquareMatrix ( )

Definition at line 45 of file Matrix3x3.inl.

◆ SquareMatrix() [6/6]

dyno::SquareMatrix< T, Dim >::SquareMatrix ( )
inline

Definition at line 10 of file SquareMatrix.h.

◆ ~SquareMatrix() [2/2]

dyno::SquareMatrix< T, Dim >::~SquareMatrix ( )
inline

Definition at line 11 of file SquareMatrix.h.

Member Function Documentation

◆ col()

template<typename T>
DYN_FUNC const Vector< T, 3 > dyno::SquareMatrix< T, 3 >::col ( unsigned int i) const

Definition at line 70 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ cols() [1/2]

template<typename T>
static DYN_FUNC unsigned int dyno::SquareMatrix< T, 3 >::cols ( )
inlinestatic

Definition at line 29 of file Matrix3x3.h.

◆ cols() [2/2]

virtual unsigned int dyno::SquareMatrix< T, Dim >::cols ( ) const
virtual

Implements dyno::MatrixBase.

◆ determinant()

template<typename T>
DYN_FUNC T dyno::SquareMatrix< T, 3 >::determinant ( ) const

Definition at line 275 of file Matrix3x3.inl.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ diagonalMatrix()

template<typename T>
DYN_FUNC const SquareMatrix< T, 3 > dyno::SquareMatrix< T, 3 >::diagonalMatrix ( const Vector< T, 3 > vec)
static

Definition at line 348 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ doubleContraction()

template<typename T>
DYN_FUNC T dyno::SquareMatrix< T, 3 >::doubleContraction ( const SquareMatrix< T, 3 > & mat2) const

Definition at line 289 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ frobeniusNorm()

template<typename T>
DYN_FUNC T dyno::SquareMatrix< T, 3 >::frobeniusNorm ( ) const

Definition at line 299 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ getDataPtr()

template<typename T>
DYN_FUNC T * dyno::SquareMatrix< T, 3 >::getDataPtr ( )
inline

Definition at line 76 of file Matrix3x3.h.

◆ identityMatrix()

template<typename T>
DYN_FUNC const SquareMatrix< T, 3 > dyno::SquareMatrix< T, 3 >::identityMatrix ( )
static

Definition at line 340 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ infNorm()

template<typename T>
DYN_FUNC T dyno::SquareMatrix< T, 3 >::infNorm ( ) const

Definition at line 325 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ inverse()

template<typename T>
DYN_FUNC const SquareMatrix< T, 3 > dyno::SquareMatrix< T, 3 >::inverse ( ) const

Definition at line 256 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ oneNorm()

template<typename T>
DYN_FUNC T dyno::SquareMatrix< T, 3 >::oneNorm ( ) const

Definition at line 310 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ operator!=()

template<typename T>
DYN_FUNC bool dyno::SquareMatrix< T, 3 >::operator!= ( const SquareMatrix< T, 3 > & mat2) const

Definition at line 138 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ operator()() [1/2]

template<typename T>
DYN_FUNC T & dyno::SquareMatrix< T, 3 >::operator() ( unsigned int i,
unsigned int j )

Definition at line 51 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ operator()() [2/2]

template<typename T>
DYN_FUNC const T & dyno::SquareMatrix< T, 3 >::operator() ( unsigned int i,
unsigned int j ) const

Definition at line 57 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ operator*() [1/3]

template<typename T>
DYN_FUNC const SquareMatrix< T, 3 > dyno::SquareMatrix< T, 3 >::operator* ( const SquareMatrix< T, 3 > & mat2) const

Definition at line 169 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ operator*() [2/3]

template<typename T>
DYN_FUNC const SquareMatrix< T, 3 > dyno::SquareMatrix< T, 3 >::operator* ( const T & scale) const

Definition at line 144 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ operator*() [3/3]

template<typename T>
DYN_FUNC const Vector< T, 3 > dyno::SquareMatrix< T, 3 >::operator* ( const Vector< T, 3 > & vec) const

Definition at line 159 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ operator*=() [1/2]

template<typename T>
DYN_FUNC SquareMatrix< T, 3 > & dyno::SquareMatrix< T, 3 >::operator*= ( const SquareMatrix< T, 3 > & mat2)

Definition at line 175 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ operator*=() [2/2]

template<typename T>
DYN_FUNC SquareMatrix< T, 3 > & dyno::SquareMatrix< T, 3 >::operator*= ( const T & scale)

Definition at line 150 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ operator+()

template<typename T>
DYN_FUNC const SquareMatrix< T, 3 > dyno::SquareMatrix< T, 3 >::operator+ ( const SquareMatrix< T, 3 > & mat2) const

Definition at line 93 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ operator+=()

template<typename T>
DYN_FUNC SquareMatrix< T, 3 > & dyno::SquareMatrix< T, 3 >::operator+= ( const SquareMatrix< T, 3 > & mat2)

Definition at line 99 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ operator-() [1/2]

template<typename T>
DYN_FUNC const SquareMatrix< T, 3 > dyno::SquareMatrix< T, 3 >::operator- ( const SquareMatrix< T, 3 > & mat2) const

Definition at line 108 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ operator-() [2/2]

template<typename T>
DYN_FUNC const SquareMatrix< T, 3 > dyno::SquareMatrix< T, 3 >::operator- ( void ) const

Definition at line 227 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ operator-=()

template<typename T>
DYN_FUNC SquareMatrix< T, 3 > & dyno::SquareMatrix< T, 3 >::operator-= ( const SquareMatrix< T, 3 > & mat2)

Definition at line 114 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ operator/() [1/2]

template<typename T>
DYN_FUNC const SquareMatrix< T, 3 > dyno::SquareMatrix< T, 3 >::operator/ ( const SquareMatrix< T, 3 > & mat2) const

Definition at line 192 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ operator/() [2/2]

template<typename T>
DYN_FUNC const SquareMatrix< T, 3 > dyno::SquareMatrix< T, 3 >::operator/ ( const T & scale) const

Definition at line 207 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ operator/=() [1/2]

template<typename T>
DYN_FUNC SquareMatrix< T, 3 > & dyno::SquareMatrix< T, 3 >::operator/= ( const SquareMatrix< T, 3 > & mat2)

Definition at line 198 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ operator/=() [2/2]

template<typename T>
DYN_FUNC SquareMatrix< T, 3 > & dyno::SquareMatrix< T, 3 >::operator/= ( const T & scale)

Definition at line 218 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ operator=()

template<typename T>
DYN_FUNC SquareMatrix< T, 3 > & dyno::SquareMatrix< T, 3 >::operator= ( const SquareMatrix< T, 3 > & mat2)

Definition at line 123 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ operator==()

template<typename T>
DYN_FUNC bool dyno::SquareMatrix< T, 3 >::operator== ( const SquareMatrix< T, 3 > & mat2) const

Definition at line 132 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ row()

template<typename T>
DYN_FUNC const Vector< T, 3 > dyno::SquareMatrix< T, 3 >::row ( unsigned int i) const

Definition at line 63 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ rows() [1/2]

template<typename T>
static DYN_FUNC unsigned int dyno::SquareMatrix< T, 3 >::rows ( )
inlinestatic

Definition at line 28 of file Matrix3x3.h.

◆ rows() [2/2]

virtual unsigned int dyno::SquareMatrix< T, Dim >::rows ( ) const
virtual

Implements dyno::MatrixBase.

◆ setCol()

template<typename T>
DYN_FUNC void dyno::SquareMatrix< T, 3 >::setCol ( unsigned int j,
const Vector< T, 3 > & vec )

Definition at line 85 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ setRow()

template<typename T>
DYN_FUNC void dyno::SquareMatrix< T, 3 >::setRow ( unsigned int i,
const Vector< T, 3 > & vec )

Definition at line 77 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ trace()

template<typename T>
DYN_FUNC T dyno::SquareMatrix< T, 3 >::trace ( ) const

Definition at line 283 of file Matrix3x3.inl.

Here is the call graph for this function:

◆ transpose()

template<typename T>
DYN_FUNC const SquareMatrix< T, 3 > dyno::SquareMatrix< T, 3 >::transpose ( ) const

Definition at line 237 of file Matrix3x3.inl.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ data_

template<typename T>
Vector<T, 3> dyno::SquareMatrix< T, 3 >::data_[3]
protected

Definition at line 79 of file Matrix3x3.h.


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