bpp-core3
3.0.0
|
Matrix storage by row. More...
#include <Bpp/Numeric/Matrix/Matrix.h>
Public Member Functions | |
RowMatrix () | |
RowMatrix (size_t nRow, size_t nCol) | |
RowMatrix (const Matrix< Scalar > &m) | |
RowMatrix & | operator= (const Matrix< Scalar > &m) |
RowMatrix * | clone () const |
Create a copy of this object and send a pointer to it. More... | |
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 |
const std::vector< Scalar > & | getRow (size_t i) const |
std::vector< Scalar > & | getRow (size_t i) |
std::vector< Scalar > | col (size_t j) const |
void | resize (size_t nRows, size_t nCols) |
Resize the matrix. More... | |
void | addRow (const std::vector< Scalar > &newRow) |
virtual bool | equals (const Matrix &m, double threshold=NumConstants::TINY()) |
Protected 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
.
|
inline |
Definition at line 136 of file Matrix.h.
Referenced by bpp::RowMatrix< Scalar >::clone().
|
inline |
Definition at line 138 of file Matrix.h.
References bpp::RowMatrix< Scalar >::m_.
|
inline |
Definition at line 146 of file Matrix.h.
References bpp::Matrix< Scalar >::getNumberOfColumns(), bpp::Matrix< Scalar >::getNumberOfRows(), and bpp::RowMatrix< Scalar >::m_.
|
inline |
Definition at line 222 of file Matrix.h.
References bpp::RowMatrix< Scalar >::getNumberOfColumns(), and bpp::RowMatrix< Scalar >::m_.
Referenced by bpp::ApplicationTools::getMatrixParameter().
|
inlinevirtual |
Create a copy of this object and send a pointer to it.
Implements bpp::Clonable.
Definition at line 179 of file Matrix.h.
References bpp::RowMatrix< Scalar >::RowMatrix().
|
inlinevirtual |
j | The index of the column. |
Implements bpp::Matrix< Scalar >.
Definition at line 206 of file Matrix.h.
References bpp::RowMatrix< Scalar >::getNumberOfRows(), and bpp::RowMatrix< Scalar >::operator()().
|
inlinevirtualinherited |
Definition at line 81 of file Matrix.h.
References bpp::Matrix< Scalar >::getNumberOfColumns(), and bpp::Matrix< Scalar >::getNumberOfRows().
|
inlinevirtual |
Implements bpp::Matrix< Scalar >.
Definition at line 187 of file Matrix.h.
References bpp::RowMatrix< Scalar >::m_.
Referenced by bpp::RowMatrix< Scalar >::addRow(), bpp::DualityDiagram::compute_(), and bpp::RowMatrix< Scalar >::row().
|
inlinevirtual |
Implements bpp::Matrix< Scalar >.
Definition at line 185 of file Matrix.h.
References bpp::RowMatrix< Scalar >::m_.
Referenced by bpp::RowMatrix< Scalar >::col(), and bpp::DualityDiagram::compute_().
|
inline |
Definition at line 201 of file Matrix.h.
References bpp::RowMatrix< Scalar >::m_.
|
inline |
Definition at line 196 of file Matrix.h.
References bpp::RowMatrix< Scalar >::m_.
Referenced by bpp::AbstractHmmTransitionMatrix::sample().
|
inlinevirtual |
i | row index. |
j | column index. |
Implements bpp::Matrix< Scalar >.
Definition at line 183 of file Matrix.h.
References bpp::RowMatrix< Scalar >::m_.
|
inlinevirtual |
i | row index. |
j | column index. |
Implements bpp::Matrix< Scalar >.
Definition at line 181 of file Matrix.h.
References bpp::RowMatrix< Scalar >::m_.
Referenced by bpp::RowMatrix< Scalar >::col(), and bpp::RowMatrix< Scalar >::row().
|
inline |
Definition at line 160 of file Matrix.h.
References bpp::Matrix< Scalar >::getNumberOfColumns(), bpp::Matrix< Scalar >::getNumberOfRows(), and bpp::RowMatrix< Scalar >::m_.
|
inlinevirtual |
Resize the matrix.
nRows | The new number of rows. |
nCols | The new number of columns. |
Implements bpp::Matrix< Scalar >.
Definition at line 213 of file Matrix.h.
References bpp::RowMatrix< Scalar >::m_.
Referenced by bpp::DualityDiagram::compute_(), bpp::EigenValue< Real >::EigenValue(), and bpp::AbstractNumericalDerivative::setParametersToDerivate().
|
inlinevirtual |
i | The index of the row. |
Implements bpp::Matrix< Scalar >.
Definition at line 189 of file Matrix.h.
References bpp::RowMatrix< Scalar >::getNumberOfColumns(), and bpp::RowMatrix< Scalar >::operator()().
|
protected |
Definition at line 133 of file Matrix.h.
Referenced by bpp::RowMatrix< Scalar >::addRow(), bpp::RowMatrix< Scalar >::getNumberOfColumns(), bpp::RowMatrix< Scalar >::getNumberOfRows(), bpp::RowMatrix< Scalar >::getRow(), bpp::RowMatrix< Scalar >::operator()(), bpp::RowMatrix< Scalar >::operator=(), bpp::RowMatrix< Scalar >::resize(), and bpp::RowMatrix< Scalar >::RowMatrix().