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 |
|
inline |
|
inline |
|
inline |
Definition at line 185 of file Matrix.h.
Referenced by bpp::ApplicationTools::getMatrixParameter().
|
inlinevirtual |
Create a copy of this object and send a pointer to it.
Implements bpp::Clonable.
|
inlinevirtual |
j | The index of the column. |
Implements bpp::Matrix< Scalar >.
|
inlinevirtualinherited |
Definition at line 44 of file Matrix.h.
References bpp::Matrix< Scalar >::col(), bpp::Matrix< Scalar >::getNumberOfColumns(), bpp::Matrix< Scalar >::getNumberOfRows(), bpp::Matrix< Scalar >::resize(), and bpp::Matrix< Scalar >::row().
|
inlinevirtual |
Implements bpp::Matrix< Scalar >.
Definition at line 150 of file Matrix.h.
Referenced by bpp::DualityDiagram::compute_().
|
inlinevirtual |
Implements bpp::Matrix< Scalar >.
Definition at line 148 of file Matrix.h.
Referenced by bpp::DualityDiagram::compute_().
|
inline |
Definition at line 159 of file Matrix.h.
Referenced by bpp::AbstractHmmTransitionMatrix::sample().
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
Resize the matrix.
nRows | The new number of rows. |
nCols | The new number of columns. |
Implements bpp::Matrix< Scalar >.
Definition at line 176 of file Matrix.h.
Referenced by bpp::DualityDiagram::compute_(), bpp::EigenValue< Real >::EigenValue(), and bpp::AbstractNumericalDerivative::setParametersToDerivate().
|
inlinevirtual |
i | The index of the row. |
Implements bpp::Matrix< Scalar >.
|
protected |