Matrix of real components.
More...
#include <sphPrerequisites.h>
Matrix of real components.
The number of components depends on weather the 2D version or 3D version is compiled:
- 2D = 2 \( \times \) 2 matrix
- 3D = 4 \( \times \) 4 matrix
- Note
- This matrix class have not errors control, so a bad item request may result in a segmentation fault.
◆ mat()
Constructor.
The matrix will be initialized as a zeroes one.
◆ operator*()
vec mat::operator* |
( |
const vec & |
V | ) |
|
|
inline |
Matrix-Vector Inner product operator.
- Parameters
-
- Returns
- Resulting vector.
◆ operator=()
mat & mat::operator= |
( |
const mat & |
M | ) |
|
|
inline |
Assignment operator.
- Parameters
-
- Returns
- Copied matrix.
◆ operator[]() [1/2]
vec & mat::operator[] |
( |
unsigned |
index | ) |
|
|
inline |
Subscript operator to return a matrix row.
- Parameters
-
- Returns
- Row vector.
◆ operator[]() [2/2]
vec const & mat::operator[] |
( |
unsigned |
index | ) |
const |
|
inline |
Subscript operator to return a matrix row.
- Parameters
-
- Returns
- Row vector.
The documentation for this class was generated from the following file: