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

#include <Matrix2x2.h>

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

Public Types

typedef T VarType
 

Public Member Functions

DYN_FUNC SquareMatrix ()
 
DYN_FUNC SquareMatrix (T)
 
DYN_FUNC SquareMatrix (T x00, T x01, T x10, T x11)
 
DYN_FUNC SquareMatrix (const Vector< T, 2 > &row1, const Vector< T, 2 > &row2)
 
DYN_FUNC SquareMatrix (const SquareMatrix< T, 2 > &)
 
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, 2 > row (unsigned int i) const
 
DYN_FUNC const Vector< T, 2 > col (unsigned int i) const
 
DYN_FUNC void setRow (unsigned int i, const Vector< T, 2 > &vec)
 
DYN_FUNC void setCol (unsigned int j, const Vector< T, 2 > &vec)
 
DYN_FUNC const SquareMatrix< T, 2 > operator+ (const SquareMatrix< T, 2 > &) const
 
DYN_FUNC SquareMatrix< T, 2 > & operator+= (const SquareMatrix< T, 2 > &)
 
DYN_FUNC const SquareMatrix< T, 2 > operator- (const SquareMatrix< T, 2 > &) const
 
DYN_FUNC SquareMatrix< T, 2 > & operator-= (const SquareMatrix< T, 2 > &)
 
DYN_FUNC const SquareMatrix< T, 2 > operator* (const SquareMatrix< T, 2 > &) const
 
DYN_FUNC SquareMatrix< T, 2 > & operator*= (const SquareMatrix< T, 2 > &)
 
DYN_FUNC const SquareMatrix< T, 2 > operator/ (const SquareMatrix< T, 2 > &) const
 
DYN_FUNC SquareMatrix< T, 2 > & operator/= (const SquareMatrix< T, 2 > &)
 
DYN_FUNC SquareMatrix< T, 2 > & operator= (const SquareMatrix< T, 2 > &)
 
DYN_FUNC bool operator== (const SquareMatrix< T, 2 > &) const
 
DYN_FUNC bool operator!= (const SquareMatrix< T, 2 > &) const
 
DYN_FUNC const SquareMatrix< T, 2 > operator* (const T &) const
 
DYN_FUNC SquareMatrix< T, 2 > & operator*= (const T &)
 
DYN_FUNC const SquareMatrix< T, 2 > operator/ (const T &) const
 
DYN_FUNC SquareMatrix< T, 2 > & operator/= (const T &)
 
DYN_FUNC const Vector< T, 2 > operator* (const Vector< T, 2 > &) const
 
DYN_FUNC const SquareMatrix< T, 2 > operator- (void) const
 
DYN_FUNC const SquareMatrix< T, 2 > transpose () const
 
DYN_FUNC const SquareMatrix< T, 2 > inverse () const
 
DYN_FUNC T determinant () const
 
DYN_FUNC T trace () const
 
DYN_FUNC T doubleContraction (const SquareMatrix< T, 2 > &) 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, 2 > identityMatrix ()
 

Protected Attributes

glm::tmat2x2< Tdata_
 

Detailed Description

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

Definition at line 10 of file Matrix2x2.h.

Member Typedef Documentation

◆ VarType

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

Definition at line 13 of file Matrix2x2.h.

Constructor & Destructor Documentation

◆ SquareMatrix() [1/6]

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

Definition at line 9 of file Matrix2x2.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, 2 >::SquareMatrix ( T value)
explicit

Definition at line 15 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ SquareMatrix() [3/6]

template<typename T>
DYN_FUNC dyno::SquareMatrix< T, 2 >::SquareMatrix ( T x00,
T x01,
T x10,
T x11 )

Definition at line 21 of file Matrix2x2.inl.

◆ SquareMatrix() [4/6]

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

Definition at line 27 of file Matrix2x2.inl.

◆ SquareMatrix() [5/6]

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

Definition at line 33 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ ~SquareMatrix() [1/2]

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

Definition at line 39 of file Matrix2x2.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, 2 > dyno::SquareMatrix< T, 2 >::col ( unsigned int i) const

Definition at line 64 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ cols() [1/2]

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

Definition at line 24 of file Matrix2x2.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, 2 >::determinant ( ) const

Definition at line 222 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ doubleContraction()

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

Definition at line 234 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ frobeniusNorm()

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

Definition at line 244 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ getDataPtr()

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

Definition at line 70 of file Matrix2x2.h.

◆ identityMatrix()

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

Definition at line 278 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ infNorm()

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

Definition at line 266 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ inverse()

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

Definition at line 213 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ oneNorm()

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

Definition at line 254 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ operator!=()

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

Definition at line 125 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ operator()() [1/2]

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

Definition at line 45 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ operator()() [2/2]

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

Definition at line 51 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ operator*() [1/3]

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

Definition at line 154 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ operator*() [2/3]

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

Definition at line 131 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ operator*() [3/3]

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

Definition at line 144 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ operator*=() [1/2]

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

Definition at line 160 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ operator*=() [2/2]

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

Definition at line 137 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ operator+()

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

Definition at line 85 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 91 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ operator-() [1/2]

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

Definition at line 98 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ operator-() [2/2]

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

Definition at line 197 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ operator-=()

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

Definition at line 104 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ operator/() [1/2]

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

Definition at line 167 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ operator/() [2/2]

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

Definition at line 180 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ operator/=() [1/2]

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

Definition at line 173 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ operator/=() [2/2]

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

Definition at line 186 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ operator=()

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

Definition at line 112 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ operator==()

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

Definition at line 119 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ row()

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

Definition at line 57 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ rows() [1/2]

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

Definition at line 23 of file Matrix2x2.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, 2 >::setCol ( unsigned int j,
const Vector< T, 2 > & vec )

Definition at line 78 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ setRow()

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

Definition at line 71 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ trace()

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

Definition at line 228 of file Matrix2x2.inl.

Here is the call graph for this function:

◆ transpose()

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

Definition at line 205 of file Matrix2x2.inl.

Here is the call graph for this function:

Member Data Documentation

◆ data_

template<typename T>
glm::tmat2x2<T> dyno::SquareMatrix< T, 2 >::data_
protected

Definition at line 73 of file Matrix2x2.h.


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