GLM  0.9.5
func_matrix.hpp
1 
40 #ifndef GLM_CORE_func_matrix
41 #define GLM_CORE_func_matrix
42 
43 // Dependencies
44 #include "../detail/precision.hpp"
45 #include "../detail/setup.hpp"
46 
47 namespace glm
48 {
51 
59  template <typename T, precision P, template <typename, precision> class matType>
60  GLM_FUNC_DECL matType<T, P> matrixCompMult(matType<T, P> const & x, matType<T, P> const & y);
61 
72  template <typename T, precision P, template <typename, precision> class vecTypeA, template <typename, precision> class vecTypeB>
73  GLM_FUNC_DECL void outerProduct(vecTypeA<T, P> const & c, vecTypeB<T, P> const & r);
74 
81 # if((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC11))
82  template <typename T, precision P, template <typename, precision> class matType>
83  GLM_FUNC_DECL typename matType<T, P>::transpose_type transpose(matType<T, P> const & x);
84 # endif
85 
92  template <typename T, precision P, template <typename, precision> class matType>
93  GLM_FUNC_DECL T determinant(matType<T, P> const & m);
94 
101  template <typename T, precision P, template <typename, precision> class matType>
102  GLM_FUNC_DECL matType<T, P> inverse(matType<T, P> const & m);
103 
105 }//namespace glm
106 
107 #include "func_matrix.inl"
108 
109 #endif//GLM_CORE_func_matrix
GLM_FUNC_DECL void outerProduct(vecTypeA< T, P > const &c, vecTypeB< T, P > const &r)
Treats the first parameter c as a column vector and the second parameter r as a row vector and does a...
GLM_FUNC_DECL T determinant(matType< T, P > const &m)
Returns the transposed matrix of x.
GLM_FUNC_DECL matType< T, P > inverse(matType< T, P > const &m)
Return the inverse of a squared matrix.
GLM_FUNC_DECL matType< T, P > matrixCompMult(matType< T, P > const &x, matType< T, P > const &y)
Multiply matrix x by matrix y component-wise, i.e., result[i][j] is the scalar product of x[i][j] and...