|
const ScalarType * | get () const |
|
ScalarType * | get () |
|
const HVT & | operator[] (unsigned int i) const |
| Const index operator. Returns i'th row of matrix.
|
|
HVT & | operator[] (unsigned int i) |
| Non-const index operator. Returns i'th row of matrix.
|
|
bool | operator== (const MT &v) const |
| Equality operator.
|
|
bool | operator!= (const MT &v) const |
| Inequality operator.
|
|
const MT | operator* (ScalarType k) const |
| Multiply scalar onto matrix. All entries are multiplied by scalar.
|
|
const MT | operator/ (ScalarType k) const |
| Divide all entries in matrix by scalar.
|
|
const MT & | operator*= (ScalarType k) |
| Assignment multiplication of matrix by scalar.
|
|
const MT & | operator/= (ScalarType k) |
| Assignment division of matrix by scalar.
|
|
const MT | operator+ (const MT &m1) const |
| Add two matrices.
|
|
const MT | operator- (const MT &m1) const |
| Subtract two matrices.
|
|
const MT & | operator+= (const MT &v) |
| Assigment addition of matrices.
|
|
const MT & | operator-= (const MT &v) |
| Assigment subtraction of matrices.
|
|
const MT | operator- () const |
| Negate matrix.
|
|
template<class VVT, class HVT, class MT, unsigned int ROWS>
class CGLA::ArithMatFloat< VVT, HVT, MT, ROWS >
Basic class template for matrices.
In this template a matrix is defined as an array of vectors. This may not in all cases be the most efficient but it has the advantage that it is possible to use the double subscripting notation:
T x = m[i][j]
This template should be used through inheritance just like the vector template