|
| Matrix () |
| Initializes the size of the data_ vector. More...
|
|
| Matrix (const std::vector< Type > &data) |
|
int | rowSize () const |
| Returns the row size of the Matrix. More...
|
|
int | colSize () const |
| Returns the column size of the Matrix. More...
|
|
Matrix< 1, Cols, Type > | getRow (int row) const |
| Return the row specified row as a Matrix with only one row. More...
|
|
Matrix< Rows, 1, Type > | getCol (int col) const |
| Get a specific column in a column vector. More...
|
|
std::vector< Type >::iterator | begin () |
| Iterator support for the start. More...
|
|
std::vector< Type >::iterator | end () |
| Iterator support for the end. More...
|
|
virtual std::string | toString () const |
| Prints out the matrix, but can also be implemented by other classes to print data differently. More...
|
|
details::Row< Rows, Cols, Type > | operator[] (int row) |
|
details::Row< Rows, Cols, Type > | operator[] (int row) const |
|
Matrix< Rows, Cols, Type > & | operator+= (const Matrix< Rows, Cols, Type > &rhs) |
|
Matrix< Rows, Cols, Type > & | operator-= (const Matrix< Rows, Cols, Type > &rhs) |
|
template<int Rows, int Cols, class Type>
class yage::Matrix< Rows, Cols, Type >
Matrix Class
The matrix class is a templated class which implements a mathematical Matrix.
Usage Guide
The class can be instantiated
Example Code
Creating a Matrix and performing operations on it.
``` #include <YAGE/Math/matrix.hpp>
int main(int, char **) { yage::Matrix<2, 2, int> mat1 {{1, 2, 3, 4}}; yage::Matrix<2, 2, int> mat2 {{5, 6, 7, 8}};
int dot = yage::math::dot(mat1, mat2); return 0; } ```