Lines Matching refs:mat
97 static T doDeterminant (const Matrix<T, Size, Size>& mat);
98 static Matrix<T, Size, Size> doInverse (const Matrix<T, Size, Size>& mat);
104 static T doDeterminant (const Matrix<T, 2, 2>& mat);
105 static Matrix<T, 2, 2> doInverse (const Matrix<T, 2, 2>& mat);
111 static T doDeterminant (const Matrix<T, 3, 3>& mat);
112 static Matrix<T, 3, 3> doInverse (const Matrix<T, 3, 3>& mat);
118 static T doDeterminant (const Matrix<T, 4, 4>& mat);
119 static Matrix<T, 4, 4> doInverse (const Matrix<T, 4, 4>& mat);
126 T determinant (const Matrix<T, Size, Size>& mat) in determinant() argument
128 return SquareMatrixOps<T, Size>::doDeterminant(mat); in determinant()
132 Matrix<T, Size, Size> inverse (const Matrix<T, Size, Size>& mat) in inverse() argument
134 return SquareMatrixOps<T, Size>::doInverse(mat); in inverse()
142 T SquareMatrixOps<T, 2>::doDeterminant (const Matrix<T, 2, 2>& mat) in doDeterminant() argument
144 return mat(0,0) * mat(1,1) - mat(1,0) * mat(0,1); in doDeterminant()
148 T SquareMatrixOps<T, 3>::doDeterminant (const Matrix<T, 3, 3>& mat) in doDeterminant() argument
150 return + mat(0,0) * mat(1,1) * mat(2,2) in doDeterminant()
151 + mat(0,1) * mat(1,2) * mat(2,0) in doDeterminant()
152 + mat(0,2) * mat(1,0) * mat(2,1) in doDeterminant()
153 - mat(0,0) * mat(1,2) * mat(2,1) in doDeterminant()
154 - mat(0,1) * mat(1,0) * mat(2,2) in doDeterminant()
155 - mat(0,2) * mat(1,1) * mat(2,0); in doDeterminant()
159 T SquareMatrixOps<T, 4>::doDeterminant (const Matrix<T, 4, 4>& mat) in doDeterminant() argument
166 mat(1,1), mat(2,1), mat(3,1), in doDeterminant()
167 mat(1,2), mat(2,2), mat(3,2), in doDeterminant()
168 mat(1,3), mat(2,3), mat(3,3), in doDeterminant()
171 mat(1,0), mat(2,0), mat(3,0), in doDeterminant()
172 mat(1,2), mat(2,2), mat(3,2), in doDeterminant()
173 mat(1,3), mat(2,3), mat(3,3), in doDeterminant()
176 mat(1,0), mat(2,0), mat(3,0), in doDeterminant()
177 mat(1,1), mat(2,1), mat(3,1), in doDeterminant()
178 mat(1,3), mat(2,3), mat(3,3), in doDeterminant()
181 mat(1,0), mat(2,0), mat(3,0), in doDeterminant()
182 mat(1,1), mat(2,1), mat(3,1), in doDeterminant()
183 mat(1,2), mat(2,2), mat(3,2), in doDeterminant()
187 return + mat(0,0) * determinant(Matrix<T, 3, 3>(minorMatrices[0])) in doDeterminant()
188 - mat(0,1) * determinant(Matrix<T, 3, 3>(minorMatrices[1])) in doDeterminant()
189 + mat(0,2) * determinant(Matrix<T, 3, 3>(minorMatrices[2])) in doDeterminant()
190 - mat(0,3) * determinant(Matrix<T, 3, 3>(minorMatrices[3])); in doDeterminant()
194 Matrix<T, 2, 2> SquareMatrixOps<T, 2>::doInverse (const Matrix<T, 2, 2>& mat) in doInverse() argument
198 const T det = determinant(mat); in doInverse()
201 retVal(0, 0) = mat(1, 1) / det; in doInverse()
202 retVal(0, 1) = -mat(0, 1) / det; in doInverse()
203 retVal(1, 0) = -mat(1, 0) / det; in doInverse()
204 retVal(1, 1) = mat(0, 0) / det; in doInverse()
210 Matrix<T, 3, 3> SquareMatrixOps<T, 3>::doInverse (const Matrix<T, 3, 3>& mat) in doInverse() argument
217 mat(0,0), mat(0,1), in doInverse()
218 mat(1,0), mat(1,1) in doInverse()
222 mat(0,2), in doInverse()
223 mat(1,2), in doInverse()
227 mat(2,0), mat(2,1), in doInverse()
231 mat(2,2) in doInverse()
259 Matrix<T, 4, 4> SquareMatrixOps<T, 4>::doInverse (const Matrix<T, 4, 4>& mat) in doInverse() argument
266 mat(0,0), mat(0,1), in doInverse()
267 mat(1,0), mat(1,1) in doInverse()
271 mat(0,2), mat(0,3), in doInverse()
272 mat(1,2), mat(1,3) in doInverse()
276 mat(2,0), mat(2,1), in doInverse()
277 mat(3,0), mat(3,1) in doInverse()
281 mat(2,2), mat(2,3), in doInverse()
282 mat(3,2), mat(3,3) in doInverse()