Lines Matching refs:mat

28 class mat;  variable
33 mat<TYPE, C, R>& doAssign( in doAssign()
34 mat<TYPE, C, R>& lhs, in doAssign()
43 mat<TYPE, C, R> PURE doMul( in doMul()
44 const mat<TYPE, D, R>& lhs, in doMul()
45 const mat<TYPE, C, D>& rhs) in doMul()
47 mat<TYPE, C, R> res; in doMul()
62 const mat<TYPE, D, R>& lhs, in doMul()
77 mat<TYPE, C, R> PURE doMul( in doMul()
79 const mat<TYPE, C, 1>& rhs) in doMul()
81 mat<TYPE, C, R> res; in doMul()
91 mat<TYPE, C, R> PURE doMul( in doMul()
92 const mat<TYPE, C, R>& rhs, in doMul()
95 mat<TYPE, C, R> res; in doMul()
105 mat<TYPE, C, R> PURE doMul( in doMul()
107 const mat<TYPE, C, R>& rhs) in doMul()
109 mat<TYPE, C, R> res; in doMul()
124 class mat : public vec< vec<TYPE, R>, C > {
140 mat() { } in mat() function
141 mat(const mat& rhs) : base(rhs) { } in mat() function
142 mat(const base& rhs) : base(rhs) { } in mat() function
148 mat(pTYPE rhs) { in mat() function
155 mat& operator=(const mat& rhs) {
160 mat& operator=(const base& rhs) {
165 mat& operator=(pTYPE rhs) {
172 friend inline mat PURE operator + (const mat& lhs, const mat& rhs) {
177 friend inline mat PURE operator - (const mat& lhs, const mat& rhs) {
185 friend mat PURE operator * (
186 const mat<TYPE, D, R>& lhs,
187 const mat<TYPE, C, D>& rhs) {
193 const mat& lhs, const vec<TYPE, C>& rhs) {
198 friend mat PURE operator * (
199 const vec<TYPE, R>& lhs, const mat<TYPE, C, 1>& rhs) {
204 friend inline mat PURE operator * (const mat& lhs, pTYPE v) {
209 friend inline mat PURE operator * (pTYPE v, const mat& rhs) {
222 mat& matrix;
223 column_builder(mat& matrix) : matrix(matrix) { } in column_builder()
256 class mat<TYPE, 1, R> : public vec<TYPE, R> {
267 mat() { } in mat() function
268 mat(const base& rhs) : base(rhs) { } in mat() function
269 mat(const mat& rhs) : base(rhs) { } in mat() function
270 mat(const TYPE& rhs) { helpers::doAssign(*this, rhs); } in mat() function
271 mat& operator=(const mat& rhs) { base::operator=(rhs); return *this; }
272 mat& operator=(const base& rhs) { base::operator=(rhs); return *this; }
273 mat& operator=(const TYPE& rhs) { return helpers::doAssign(*this, rhs); }
290 mat<TYPE, R, C> PURE transpose(const mat<TYPE, C, R>& m) { in transpose()
291 mat<TYPE, R, C> r; in transpose()
299 template <typename TYPE, size_t C> static TYPE trace(const mat<TYPE, C, C>& m) { in trace()
308 static bool isPositiveSemidefinite(const mat<TYPE, C, C>& m, TYPE tolerance) { in isPositiveSemidefinite()
327 mat<TYPE, SIZE, 1> PURE transpose(const VEC<TYPE, SIZE>& v) { in transpose()
328 mat<TYPE, SIZE, 1> r; in transpose()
337 mat<T, N, N> PURE invert(const mat<T, N, N>& src) { in invert()
340 mat<T, N, N> tmp(src); in invert()
341 mat<T, N, N> inverse(1); in invert()
385 typedef mat<float, 2, 2> mat22_t;
386 typedef mat<float, 3, 3> mat33_t;
387 typedef mat<float, 4, 4> mat44_t;