bpp-core
2.2.0
|
Matrix storage by column. More...
#include <Bpp/Numeric/Matrix/Matrix.h>
Public Member Functions | |
ColMatrix () | |
ColMatrix (size_t nRow, size_t nCol) | |
ColMatrix (const Matrix< Scalar > &m) | |
ColMatrix & | operator= (const Matrix< Scalar > &m) |
virtual | ~ColMatrix () |
ColMatrix * | 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 | getNumberOfColumns () const |
size_t | getNumberOfRows () const |
std::vector< Scalar > | row (size_t i) const |
const std::vector< Scalar > & | getCol (size_t i) const |
std::vector< Scalar > | col (size_t j) const |
void | resize (size_t nRows, size_t nCols) |
Resize the matrix. More... | |
void | addCol (const std::vector< Scalar > &newCol) throw (DimensionException) |
virtual bool | equals (const Matrix &m, double threshold=NumConstants::TINY()) |
Private Attributes | |
std::vector< std::vector< Scalar > > | m_ |
Matrix storage by column.
This matrix is a vector of vector of Scalar. Column access is in while row access is in
.
|
inline |
Definition at line 239 of file Matrix.h.
Referenced by bpp::ColMatrix< Scalar >::clone().
|
inline |
Definition at line 241 of file Matrix.h.
References bpp::ColMatrix< Scalar >::m_.
|
inline |
Definition at line 249 of file Matrix.h.
References bpp::Matrix< Scalar >::getNumberOfColumns(), bpp::Matrix< Scalar >::getNumberOfRows(), and bpp::ColMatrix< Scalar >::m_.
|
inlinevirtual |
|
inline |
Definition at line 320 of file Matrix.h.
References bpp::ColMatrix< Scalar >::getNumberOfRows(), and bpp::ColMatrix< Scalar >::m_.
|
inlinevirtual |
Create a copy of this object and send a pointer to it.
Implements bpp::Clonable.
Definition at line 282 of file Matrix.h.
References bpp::ColMatrix< Scalar >::ColMatrix().
|
inlinevirtual |
j | The index of the column. |
Implements bpp::Matrix< Scalar >.
Definition at line 304 of file Matrix.h.
References bpp::ColMatrix< Scalar >::getNumberOfRows(), and bpp::ColMatrix< Scalar >::operator()().
|
inlinevirtualinherited |
Definition at line 81 of file Matrix.h.
References bpp::Matrix< Scalar >::getNumberOfColumns(), and bpp::Matrix< Scalar >::getNumberOfRows().
|
inline |
Definition at line 299 of file Matrix.h.
References bpp::ColMatrix< Scalar >::m_.
|
inlinevirtual |
Implements bpp::Matrix< Scalar >.
Definition at line 288 of file Matrix.h.
References bpp::ColMatrix< Scalar >::m_.
Referenced by bpp::ColMatrix< Scalar >::row().
|
inlinevirtual |
Implements bpp::Matrix< Scalar >.
Definition at line 290 of file Matrix.h.
References bpp::ColMatrix< Scalar >::m_.
Referenced by bpp::ColMatrix< Scalar >::addCol(), and bpp::ColMatrix< Scalar >::col().
|
inlinevirtual |
i | row index. |
j | column index. |
Implements bpp::Matrix< Scalar >.
Definition at line 284 of file Matrix.h.
References bpp::ColMatrix< Scalar >::m_.
Referenced by bpp::ColMatrix< Scalar >::col(), and bpp::ColMatrix< Scalar >::row().
|
inlinevirtual |
i | row index. |
j | column index. |
Implements bpp::Matrix< Scalar >.
Definition at line 286 of file Matrix.h.
References bpp::ColMatrix< Scalar >::m_.
|
inline |
Definition at line 263 of file Matrix.h.
References bpp::Matrix< Scalar >::getNumberOfColumns(), bpp::Matrix< Scalar >::getNumberOfRows(), and bpp::ColMatrix< 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 311 of file Matrix.h.
References bpp::ColMatrix< Scalar >::m_.
|
inlinevirtual |
i | The index of the row. |
Implements bpp::Matrix< Scalar >.
Definition at line 292 of file Matrix.h.
References bpp::ColMatrix< Scalar >::getNumberOfColumns(), and bpp::ColMatrix< Scalar >::operator()().
|
private |
Definition at line 236 of file Matrix.h.
Referenced by bpp::ColMatrix< Scalar >::addCol(), bpp::ColMatrix< Scalar >::ColMatrix(), bpp::ColMatrix< Scalar >::getCol(), bpp::ColMatrix< Scalar >::getNumberOfColumns(), bpp::ColMatrix< Scalar >::getNumberOfRows(), bpp::ColMatrix< Scalar >::operator()(), bpp::ColMatrix< Scalar >::operator=(), and bpp::ColMatrix< Scalar >::resize().