39 template<
typename T, qualifier Q>
40 struct outerProduct_trait<2, 2, T, Q>
42 typedef mat<2, 2, T, Q> type;
45 template<
typename T, qualifier Q>
46 struct outerProduct_trait<2, 3, T, Q>
48 typedef mat<3, 2, T, Q> type;
51 template<
typename T, qualifier Q>
52 struct outerProduct_trait<2, 4, T, Q>
54 typedef mat<4, 2, T, Q> type;
57 template<
typename T, qualifier Q>
58 struct outerProduct_trait<3, 2, T, Q>
60 typedef mat<2, 3, T, Q> type;
63 template<
typename T, qualifier Q>
64 struct outerProduct_trait<3, 3, T, Q>
66 typedef mat<3, 3, T, Q> type;
69 template<
typename T, qualifier Q>
70 struct outerProduct_trait<3, 4, T, Q>
72 typedef mat<4, 3, T, Q> type;
75 template<
typename T, qualifier Q>
76 struct outerProduct_trait<4, 2, T, Q>
78 typedef mat<2, 4, T, Q> type;
81 template<
typename T, qualifier Q>
82 struct outerProduct_trait<4, 3, T, Q>
84 typedef mat<3, 4, T, Q> type;
87 template<
typename T, qualifier Q>
88 struct outerProduct_trait<4, 4, T, Q>
90 typedef mat<4, 4, T, Q> type;
108 template<length_t C, length_t R,
typename T, qualifier Q>
109 GLM_FUNC_DECL mat<C, R, T, Q>
matrixCompMult(mat<C, R, T, Q>
const& x, mat<C, R, T, Q>
const& y);
122 template<length_t C, length_t R,
typename T, qualifier Q>
123 GLM_FUNC_DECL
typename detail::outerProduct_trait<C, R, T, Q>::type
outerProduct(vec<C, T, Q>
const& c, vec<R, T, Q>
const& r);
134 template<length_t C, length_t R,
typename T, qualifier Q>
135 GLM_FUNC_DECL
typename mat<C, R, T, Q>::transpose_type
transpose(mat<C, R, T, Q>
const& x);
146 template<length_t C, length_t R,
typename T, qualifier Q>
147 GLM_FUNC_DECL T
determinant(mat<C, R, T, Q>
const& m);
158 template<length_t C, length_t R,
typename T, qualifier Q>
159 GLM_FUNC_DECL mat<C, R, T, Q>
inverse(mat<C, R, T, Q>
const& m);
164 #include "detail/func_matrix.inl"
GLM_FUNC_DECL detail::outerProduct_trait< C, R, T, Q >::type outerProduct(vec< C, T, Q > const &c, vec< R, T, Q > 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(mat< C, R, T, Q > const &m)
Return the determinant of a squared matrix.
GLM_FUNC_DECL mat< C, R, T, Q > matrixCompMult(mat< C, R, T, Q > const &x, mat< C, R, T, Q > const &y)
Multiply matrix x by matrix y component-wise, i.e., result[i][j] is the scalar product of x[i][j] and...
GLM_FUNC_DECL mat< C, R, T, Q >::transpose_type transpose(mat< C, R, T, Q > const &x)
Returns the transposed matrix of x.
GLM_FUNC_DECL mat< C, R, T, Q > inverse(mat< C, R, T, Q > const &m)
Return the inverse of a squared matrix.