liballofw
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
allofw::Matrix4_< T > Struct Template Reference

#include <matrix.h>

Public Types

typedef T number_t
 
typedef Vector4_< T > vector_t
 

Public Member Functions

number_tdata ()
 
const number_tdata () const
 
std::pair< int, int > shape () const
 
 Matrix4_ ()=default
 
template<typename T1 >
vector_t operator* (const vector_t &v) const
 
Matrix4_ operator+ (const Matrix4_ &m) const
 
Matrix4_ operator- (const Matrix4_ &m) const
 
Matrix4_ operator* (number_t s) const
 
Matrix4_ operator* (const Matrix4_ &m) const
 
number_t determinant () const
 
Matrix4_ inversion () const
 
Matrix4_ i () const
 
Matrix4_ transpose () const
 
Matrix4_ t () const
 
number_t max () const
 
number_t min () const
 
Matrix4_ abs () const
 

Static Public Member Functions

static Matrix4_ zero ()
 
static Matrix4_ eye ()
 
template<typename Generator >
static Matrix4_ random (Generator generator)
 
static Matrix4_ fromDiagonal (const vector_t &diag)
 
static Matrix4_ fromColumns (const vector_t &e1, const vector_t &e2, const vector_t &e3, const vector_t &e4)
 
static Matrix4_ fromRows (const vector_t &e1, const vector_t &e2, const vector_t &e3, const vector_t &e4)
 

Public Attributes

number_t a11
 
number_t a21
 
number_t a31
 
number_t a41
 
number_t a12
 
number_t a22
 
number_t a32
 
number_t a42
 
number_t a13
 
number_t a23
 
number_t a33
 
number_t a43
 
number_t a14
 
number_t a24
 
number_t a34
 
number_t a44
 

Static Public Attributes

static const size_t size = 16
 

Friends

number_t max (const Matrix4_ &m)
 
number_t min (const Matrix4_ &m)
 
Matrix4_ abs (const Matrix4_ &m)
 

Member Typedef Documentation

template<typename T >
typedef T allofw::Matrix4_< T >::number_t
template<typename T >
typedef Vector4_<T> allofw::Matrix4_< T >::vector_t

Constructor & Destructor Documentation

template<typename T >
allofw::Matrix4_< T >::Matrix4_ ( )
default

Member Function Documentation

template<typename T >
Matrix4_ allofw::Matrix4_< T >::abs ( ) const
inline
template<typename T >
number_t* allofw::Matrix4_< T >::data ( )
inline
template<typename T >
const number_t* allofw::Matrix4_< T >::data ( ) const
inline
template<typename T >
number_t allofw::Matrix4_< T >::determinant ( ) const
inline
template<typename T >
static Matrix4_ allofw::Matrix4_< T >::eye ( )
inlinestatic
template<typename T >
static Matrix4_ allofw::Matrix4_< T >::fromColumns ( const vector_t e1,
const vector_t e2,
const vector_t e3,
const vector_t e4 
)
inlinestatic
template<typename T >
static Matrix4_ allofw::Matrix4_< T >::fromDiagonal ( const vector_t diag)
inlinestatic
template<typename T >
static Matrix4_ allofw::Matrix4_< T >::fromRows ( const vector_t e1,
const vector_t e2,
const vector_t e3,
const vector_t e4 
)
inlinestatic
template<typename T >
Matrix4_ allofw::Matrix4_< T >::i ( ) const
inline
template<typename T >
Matrix4_ allofw::Matrix4_< T >::inversion ( ) const
inline
template<typename T >
number_t allofw::Matrix4_< T >::max ( ) const
inline
template<typename T >
number_t allofw::Matrix4_< T >::min ( ) const
inline
template<typename T >
template<typename T1 >
vector_t allofw::Matrix4_< T >::operator* ( const vector_t v) const
inline
template<typename T >
Matrix4_ allofw::Matrix4_< T >::operator* ( number_t  s) const
inline
template<typename T >
Matrix4_ allofw::Matrix4_< T >::operator* ( const Matrix4_< T > &  m) const
inline
template<typename T >
Matrix4_ allofw::Matrix4_< T >::operator+ ( const Matrix4_< T > &  m) const
inline
template<typename T >
Matrix4_ allofw::Matrix4_< T >::operator- ( const Matrix4_< T > &  m) const
inline
template<typename T >
template<typename Generator >
static Matrix4_ allofw::Matrix4_< T >::random ( Generator  generator)
inlinestatic
template<typename T >
std::pair<int, int> allofw::Matrix4_< T >::shape ( ) const
inline
template<typename T >
Matrix4_ allofw::Matrix4_< T >::t ( ) const
inline
template<typename T >
Matrix4_ allofw::Matrix4_< T >::transpose ( ) const
inline
template<typename T >
static Matrix4_ allofw::Matrix4_< T >::zero ( )
inlinestatic

Friends And Related Function Documentation

template<typename T >
Matrix4_ abs ( const Matrix4_< T > &  m)
friend
template<typename T >
number_t max ( const Matrix4_< T > &  m)
friend
template<typename T >
number_t min ( const Matrix4_< T > &  m)
friend

Member Data Documentation

template<typename T >
number_t allofw::Matrix4_< T >::a11
template<typename T >
number_t allofw::Matrix4_< T >::a12
template<typename T >
number_t allofw::Matrix4_< T >::a13
template<typename T >
number_t allofw::Matrix4_< T >::a14
template<typename T >
number_t allofw::Matrix4_< T >::a21
template<typename T >
number_t allofw::Matrix4_< T >::a22
template<typename T >
number_t allofw::Matrix4_< T >::a23
template<typename T >
number_t allofw::Matrix4_< T >::a24
template<typename T >
number_t allofw::Matrix4_< T >::a31
template<typename T >
number_t allofw::Matrix4_< T >::a32
template<typename T >
number_t allofw::Matrix4_< T >::a33
template<typename T >
number_t allofw::Matrix4_< T >::a34
template<typename T >
number_t allofw::Matrix4_< T >::a41
template<typename T >
number_t allofw::Matrix4_< T >::a42
template<typename T >
number_t allofw::Matrix4_< T >::a43
template<typename T >
number_t allofw::Matrix4_< T >::a44
template<typename T >
const size_t allofw::Matrix4_< T >::size = 16
static

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