|
bpp-core
2.1.0
|
Matrix storage by row. More...
#include <Bpp/Numeric/Matrix/Matrix.h>
Inheritance diagram for bpp::RowMatrix< Scalar >:
Collaboration diagram for bpp::RowMatrix< Scalar >:Public Member Functions | |
| RowMatrix () | |
| RowMatrix (size_t nRow, size_t nCol) | |
| RowMatrix (const Matrix< Scalar > &m) | |
| RowMatrix & | operator= (const Matrix< Scalar > &m) |
| virtual | ~RowMatrix () |
| RowMatrix * | clone () const |
| Create a copy of this object and send a pointer to it. | |
| const Scalar & | operator() (size_t i, size_t j) const |
| Scalar & | operator() (size_t i, size_t j) |
| size_t | getNumberOfRows () const |
| size_t | getNumberOfColumns () const |
| std::vector< Scalar > | row (size_t i) const |
| std::vector< Scalar > | col (size_t j) const |
| void | resize (size_t nRows, size_t nCols) |
| Resize the matrix. | |
| void | addRow (const std::vector< Scalar > &newRow) throw (DimensionException) |
| virtual bool | equals (const Matrix &m, double threshold=NumConstants::TINY()) |
Private Attributes | |
| std::vector< std::vector < Scalar > > | m_ |
Matrix storage by row.
This matrix is a vector of vector of Scalar. Row access is in
while column access is in
.
| bpp::RowMatrix< Scalar >::RowMatrix | ( | ) | [inline] |
Definition at line 133 of file Matrix.h.
Referenced by bpp::RowMatrix< Real >::clone().
| bpp::RowMatrix< Scalar >::RowMatrix | ( | size_t | nRow, |
| size_t | nCol | ||
| ) | [inline] |
| bpp::RowMatrix< Scalar >::RowMatrix | ( | const Matrix< Scalar > & | m | ) | [inline] |
| virtual bpp::RowMatrix< Scalar >::~RowMatrix | ( | ) | [inline, virtual] |
| void bpp::RowMatrix< Scalar >::addRow | ( | const std::vector< Scalar > & | newRow | ) | throw (DimensionException) [inline] |
| RowMatrix* bpp::RowMatrix< Scalar >::clone | ( | ) | const [inline, virtual] |
Create a copy of this object and send a pointer to it.
Implements bpp::Clonable.
| std::vector<Scalar> bpp::RowMatrix< Scalar >::col | ( | size_t | j | ) | const [inline, virtual] |
| j | The index of the column. |
Implements bpp::Matrix< Scalar >.
| virtual bool bpp::Matrix< Scalar >::equals | ( | const Matrix< Scalar > & | m, |
| double | threshold = NumConstants::TINY() |
||
| ) | [inline, virtual, inherited] |
| size_t bpp::RowMatrix< Scalar >::getNumberOfColumns | ( | ) | const [inline, virtual] |
Implements bpp::Matrix< Scalar >.
Definition at line 184 of file Matrix.h.
Referenced by bpp::RowMatrix< Real >::addRow(), and bpp::RowMatrix< Real >::row().
| size_t bpp::RowMatrix< Scalar >::getNumberOfRows | ( | ) | const [inline, virtual] |
Implements bpp::Matrix< Scalar >.
Definition at line 182 of file Matrix.h.
Referenced by bpp::RowMatrix< Real >::col().
| const Scalar& bpp::RowMatrix< Scalar >::operator() | ( | size_t | i, |
| size_t | j | ||
| ) | const [inline, virtual] |
. | i | row index. |
| j | column index. |
Implements bpp::Matrix< Scalar >.
Definition at line 178 of file Matrix.h.
Referenced by bpp::RowMatrix< Real >::col(), and bpp::RowMatrix< Real >::row().
| Scalar& bpp::RowMatrix< Scalar >::operator() | ( | size_t | i, |
| size_t | j | ||
| ) | [inline, virtual] |
| RowMatrix& bpp::RowMatrix< Scalar >::operator= | ( | const Matrix< Scalar > & | m | ) | [inline] |
| void bpp::RowMatrix< Scalar >::resize | ( | size_t | nRows, |
| size_t | nCols | ||
| ) | [inline, virtual] |
Resize the matrix.
| nRows | The new number of rows. |
| nCols | The new number of columns. |
Implements bpp::Matrix< Scalar >.
Definition at line 200 of file Matrix.h.
Referenced by bpp::DualityDiagram::compute_(), bpp::EigenValue< Real >::EigenValue(), and bpp::AbstractNumericalDerivative::setParametersToDerivate().
| std::vector<Scalar> bpp::RowMatrix< Scalar >::row | ( | size_t | i | ) | const [inline, virtual] |
| i | The index of the row. |
Implements bpp::Matrix< Scalar >.
std::vector< std::vector<Scalar> > bpp::RowMatrix< Scalar >::m_ [private] |
Definition at line 130 of file Matrix.h.
Referenced by bpp::RowMatrix< Real >::addRow(), bpp::RowMatrix< Real >::getNumberOfColumns(), bpp::RowMatrix< Real >::getNumberOfRows(), bpp::RowMatrix< Real >::operator()(), bpp::RowMatrix< Real >::operator=(), bpp::RowMatrix< Real >::resize(), and bpp::RowMatrix< Real >::RowMatrix().