Namespaces | Functions

mth.h File Reference

templated math functions More...

Go to the source code of this file.

Namespaces

namespace  mth
 

All MTH functions are contained in this namespace.


Functions

template<class T >
Vector< T, 3 > mth::cross (Vector< T, 3 > const &a, Vector< T, 3 > const &b)
 returns vector cross product
template<class T >
Matrix< T, 3, 3 > mth::cross (Vector< T, 3 > const &a)
 returns the cross product matrix for the vector
template<class T , unsigned N>
Vector< T, N > mth::project (Vector< T, N > const &a, Vector< T, N > const &b)
 returns vector a projected onto vector b
template<class T , unsigned N>
Vector< T, N > mth::reject (Vector< T, N > const &a, Vector< T, N > const &b)
 vector rejection
template<class T , unsigned M, unsigned N>
Matrix< T, M, N > mth::transpose (Matrix< T, M, N > const &a)
 transpose of a static matrix
template<class T >
mth::determinant (Matrix< T, 2, 2 > const &a)
 determinant of a 2 by 2 matrix
template<class T >
mth::determinant (Matrix< T, 3, 3 > const &a)
 determinant of a 3 by 3 matrix
template<class T >
Matrix< T, 2, 2 > mth::inverse (Matrix< T, 2, 2 > const &a)
 invert a 2 by 2 matrix
template<class T >
Matrix< T, 3, 3 > mth::inverse (Matrix< T, 3, 3 > const &a)
 invert a 3 by 3 matrix
template<class T >
mth::trace (Tensor< T > const &a)
 trace of a tensor
template<class T >
mth::norm (Tensor< T > const &a)
 Frobenius norm of a tensor.
template<class T >
mth::determinant (Tensor< T > const &a)
 determinant of a tensor
template<class T >
void mth::transpose (Tensor< T > const &a, Tensor< T > &r)
 transpose of a tensor
template<class T >
void mth::inverse (Tensor< T > const &a, Tensor< T > &r)
 inverse of a tensor
template<class T >
Tensor< T > mth::eye (unsigned d)
 identity tensor

Detailed Description

templated math functions

Definition in file mth.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines