pelib
2.0.0
|
#include <Matrix.hpp>
Public Member Functions | |
Matrix (const std::string name, const MatrixType values) | |
Matrix (const Matrix< Col, Row, Value > *matrix) | |
virtual Matrix * | clone () const |
virtual const MatrixType & | getValues () const |
virtual const Value & | find (Col col, Row row) const |
virtual size_t | getColSize () const |
virtual size_t | getRowSize () const |
virtual Matrix< Row, Col, Value > | transpose () const |
void | merge (const AlgebraData *ptr) |
Protected Attributes | |
MatrixType | values |
Simple Matrix implementation for linear algebra
Definition at line 39 of file Matrix.hpp.
pelib::Matrix< Col, Row, Value >::Matrix | ( | const std::string | name, |
const MatrixType | values | ||
) | [inline] |
Constructor: builds a matrix with the name and values given as parameters
Definition at line 48 of file Matrix.hpp.
pelib::Matrix< Col, Row, Value >::Matrix | ( | const Matrix< Col, Row, Value > * | matrix | ) | [inline] |
Copy constructor
Definition at line 54 of file Matrix.hpp.
virtual Matrix* pelib::Matrix< Col, Row, Value >::clone | ( | ) | const [inline, virtual] |
Returns a pointer to a copy this matrix
Implements pelib::AlgebraData.
Definition at line 62 of file Matrix.hpp.
virtual const Value& pelib::Matrix< Col, Row, Value >::find | ( | Col | col, |
Row | row | ||
) | const [inline, virtual] |
Returns a value identified by its row and column
Definition at line 78 of file Matrix.hpp.
virtual size_t pelib::Matrix< Col, Row, Value >::getColSize | ( | ) | const [inline, virtual] |
Returns the number of rows in the matrix
Definition at line 86 of file Matrix.hpp.
virtual size_t pelib::Matrix< Col, Row, Value >::getRowSize | ( | ) | const [inline, virtual] |
Returns the number of columns in the matrix
Definition at line 94 of file Matrix.hpp.
virtual const MatrixType& pelib::Matrix< Col, Row, Value >::getValues | ( | ) | const [inline, virtual] |
Returns all values in the matrix
Definition at line 70 of file Matrix.hpp.
void pelib::Matrix< Col, Row, Value >::merge | ( | const AlgebraData * | ) | [inline, virtual] |
Merge data in this instance and instance given as argument, or replace it if merging is not possible
Implements pelib::AlgebraData.
Definition at line 118 of file Matrix.hpp.
virtual Matrix<Row, Col, Value> pelib::Matrix< Col, Row, Value >::transpose | ( | ) | const [inline, virtual] |
Returns a new matrix instance that is the transposed of this matrix
Definition at line 102 of file Matrix.hpp.
MatrixType pelib::Matrix< Col, Row, Value >::values [protected] |
Internal container of the matrix values
Definition at line 163 of file Matrix.hpp.