GEL
2
GEL is a library for Geometry and Linear Algebra
|
#include <ArithSqMatFloat.h>
Inherits CGLA::ArithMatFloat< VT, VT, MT, ROWS >.
Inherited by CGLA::ArithSqMat2x2Float< Vec2d, Mat2x2d >, and CGLA::ArithSqMat2x2Float< Vec2f, Mat2x2f >.
Public Types | |
typedef VT | VectorType |
Vector type. | |
typedef VT::ScalarType | ScalarType |
The type of a matrix element. | |
Public Member Functions | |
const MT & | operator*= (const MT &m2) |
const MT & | operator*= (ScalarType k) |
Assignment multiplication of matrix by scalar. | |
void | identity () |
Protected Member Functions | |
ArithSqMatFloat () | |
Construct 0 matrix. | |
ArithSqMatFloat (ScalarType _a) | |
Construct matrix where all values are equal to constructor argument. | |
ArithSqMatFloat (VT _a, VT _b) | |
Construct 2x2 Matrix from two vectors. | |
ArithSqMatFloat (VT _a, VT _b, VT _c) | |
Construct 3x3 Matrix from three vectors. | |
ArithSqMatFloat (VT _a, VT _b, VT _c, VT _d) | |
Construct 4x4 Matrix from four vectors. |
Template for square matrices.
Some functions like trace and determinant work only on square matrices. To express this in the class hierarchy, ArithSqMatFloat was created. ArithSqMatFloat is derived from ArithMat and contains a few extra facilities applicable only to square matrices.
const MT& CGLA::ArithSqMatFloat< VT, MT, ROWS >::operator*= | ( | const MT & | m2 | ) | [inline] |
Assignment multiplication of matrices. This function is not very efficient. This because we need a temporary matrix anyway, so it can't really be made efficient.