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

#include <Matrix4x4.h>

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

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 x03, T x10, T x11, T x12, T x13, T x20, T x21, T x22, T x23, T x30, T x31, T x32, T x33)
 
DYN_FUNC SquareMatrix (const Vector< T, 4 > &row1, const Vector< T, 4 > &row2, const Vector< T, 4 > &row3, const Vector< T, 4 > &row4)
 
DYN_FUNC SquareMatrix (const SquareMatrix< T, 4 > &)
 
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, 4 > row (unsigned int i) const
 
DYN_FUNC const Vector< T, 4 > col (unsigned int i) const
 
DYN_FUNC void setRow (unsigned int i, const Vector< T, 4 > &vec)
 
DYN_FUNC void setCol (unsigned int j, const Vector< T, 4 > &vec)
 
DYN_FUNC const SquareMatrix< T, 4 > operator+ (const SquareMatrix< T, 4 > &) const
 
DYN_FUNC SquareMatrix< T, 4 > & operator+= (const SquareMatrix< T, 4 > &)
 
DYN_FUNC const SquareMatrix< T, 4 > operator- (const SquareMatrix< T, 4 > &) const
 
DYN_FUNC SquareMatrix< T, 4 > & operator-= (const SquareMatrix< T, 4 > &)
 
DYN_FUNC const SquareMatrix< T, 4 > operator* (const SquareMatrix< T, 4 > &) const
 
DYN_FUNC SquareMatrix< T, 4 > & operator*= (const SquareMatrix< T, 4 > &)
 
DYN_FUNC const SquareMatrix< T, 4 > operator/ (const SquareMatrix< T, 4 > &) const
 
DYN_FUNC SquareMatrix< T, 4 > & operator/= (const SquareMatrix< T, 4 > &)
 
DYN_FUNC SquareMatrix< T, 4 > & operator= (const SquareMatrix< T, 4 > &)
 
DYN_FUNC bool operator== (const SquareMatrix< T, 4 > &) const
 
DYN_FUNC bool operator!= (const SquareMatrix< T, 4 > &) const
 
DYN_FUNC const SquareMatrix< T, 4 > operator* (const T &) const
 
DYN_FUNC SquareMatrix< T, 4 > & operator*= (const T &)
 
DYN_FUNC const SquareMatrix< T, 4 > operator/ (const T &) const
 
DYN_FUNC SquareMatrix< T, 4 > & operator/= (const T &)
 
DYN_FUNC const Vector< T, 4 > operator* (const Vector< T, 4 > &) const
 
DYN_FUNC const SquareMatrix< T, 4 > operator- (void) const
 
DYN_FUNC const SquareMatrix< T, 4 > transpose () const
 
DYN_FUNC const SquareMatrix< T, 4 > inverse () const
 
DYN_FUNC T determinant () const
 
DYN_FUNC T trace () const
 
DYN_FUNC T doubleContraction (const SquareMatrix< T, 4 > &) 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, 4 > identityMatrix ()
 

Protected Attributes

glm::tmat4x4< Tdata_
 

Detailed Description

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

Definition at line 13 of file Matrix4x4.h.

Member Typedef Documentation

◆ VarType

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

Definition at line 16 of file Matrix4x4.h.

Constructor & Destructor Documentation

◆ SquareMatrix() [1/6]

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

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

Definition at line 15 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ SquareMatrix() [3/6]

template<typename T>
DYN_FUNC dyno::SquareMatrix< T, 4 >::SquareMatrix ( T x00,
T x01,
T x02,
T x03,
T x10,
T x11,
T x12,
T x13,
T x20,
T x21,
T x22,
T x23,
T x30,
T x31,
T x32,
T x33 )

Definition at line 24 of file Matrix4x4.inl.

◆ SquareMatrix() [4/6]

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

Definition at line 33 of file Matrix4x4.inl.

◆ SquareMatrix() [5/6]

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

Definition at line 42 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ ~SquareMatrix() [1/2]

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

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

Definition at line 76 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ cols() [1/2]

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

Definition at line 30 of file Matrix4x4.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, 4 >::determinant ( ) const

Definition at line 235 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ doubleContraction()

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

Definition at line 247 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ frobeniusNorm()

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

Definition at line 257 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ getDataPtr()

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

Definition at line 76 of file Matrix4x4.h.

◆ identityMatrix()

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

Definition at line 303 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ infNorm()

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

Definition at line 285 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ inverse()

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

Definition at line 226 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ oneNorm()

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

Definition at line 267 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ operator!=()

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

Definition at line 142 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ operator()() [1/2]

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

Definition at line 57 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ operator()() [2/2]

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

Definition at line 63 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ operator*() [1/3]

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

Definition at line 171 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ operator*() [2/3]

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

Definition at line 148 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ operator*() [3/3]

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

Definition at line 161 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ operator*=() [1/2]

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

Definition at line 177 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ operator*=() [2/2]

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

Definition at line 154 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ operator+()

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

Definition at line 101 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 107 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ operator-() [1/2]

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

Definition at line 114 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ operator-() [2/2]

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

Definition at line 210 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ operator-=()

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

Definition at line 120 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ operator/() [1/2]

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

Definition at line 184 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ operator/() [2/2]

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

Definition at line 197 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ operator/=() [1/2]

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

Definition at line 190 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ operator/=() [2/2]

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

Definition at line 203 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ operator=()

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

Definition at line 128 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ operator==()

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

Definition at line 136 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ row()

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

Definition at line 69 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ rows() [1/2]

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

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

Definition at line 92 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ setRow()

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

Definition at line 83 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ trace()

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

Definition at line 241 of file Matrix4x4.inl.

Here is the call graph for this function:

◆ transpose()

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

Definition at line 218 of file Matrix4x4.inl.

Here is the call graph for this function:

Member Data Documentation

◆ data_

template<typename T>
glm::tmat4x4<T> dyno::SquareMatrix< T, 4 >::data_
protected

Definition at line 79 of file Matrix4x4.h.


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