|
Matrix & | set (const size_t i, const size_t j, const double value) |
|
double | get (const size_t i, const size_t j) const |
|
Vector< N > | getRow (const size_t row) const |
|
Matrix< N > & | setRow (const size_t row, const Vector< N > &r) |
|
Vector< N > | getColumn (const size_t col) const |
|
Matrix< N > & | setColumn (const size_t col, const Vector< N > &c) |
|
Matrix< N > | transpose () const |
|
Matrix< N > | inverse () const |
| Calculate inverse.
|
|
double | det () const |
| Calculate determinant.
|
|
double | trace () const |
| Calculate trace.
|
|
Matrix< N > | operator- () const |
| Negate.
|
|
constexpr size_t | size () const |
| Get dimensionality.
|
|
bool | isZero (double tolerance=1E-5) const |
| Index-wise check for nullness, allowing for numerical precision.
|
|
bool | isEqual (Matrix< N > other) const |
| Check for index-wise equality, allowing for numerical precision.
|
|
bool | isSymm () const |
| Check for symmetry under transposition.
|
|
bool | isDiag () const |
| Check that all off-diagonal elements are zero, allowing for numerical precision.
|
|
bool | operator== (const Matrix< N > &a) const |
|
bool | operator!= (const Matrix< N > &a) const |
|
Matrix< N > & | operator*= (const Matrix< N > &m) |
|
Matrix< N > & | operator*= (const double a) |
|
Matrix< N > & | operator/= (const double a) |
|
Matrix< N > & | operator+= (const Matrix< N > &m) |
|
Matrix< N > & | operator-= (const Matrix< N > &m) |
|
template<size_t N>
class Rivet::Matrix< N >
General \( N \)-dimensional mathematical matrix object.