bpp-core3
3.0.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 > & | getCol (size_t i) |
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) |
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 |
|
inline |
|
inline |
Definition at line 217 of file Matrix.h.
References bpp::Matrix< Scalar >::getNumberOfColumns(), and bpp::Matrix< Scalar >::getNumberOfRows().
|
inlinevirtual |
|
inline |
Definition at line 293 of file Matrix.h.
References bpp::Matrix< Scalar >::getNumberOfRows().
|
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 >.
Definition at line 277 of file Matrix.h.
References bpp::Matrix< Scalar >::getNumberOfRows(), and bpp::Matrix< Scalar >::operator()().
|
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().
|
inline |
|
inline |
|
inlinevirtual |
Implements bpp::Matrix< Scalar >.
|
inlinevirtual |
Implements bpp::Matrix< Scalar >.
|
inlinevirtual |
|
inlinevirtual |
|
inline |
Definition at line 231 of file Matrix.h.
References bpp::Matrix< Scalar >::getNumberOfColumns(), and bpp::Matrix< Scalar >::getNumberOfRows().
|
inlinevirtual |
Resize the matrix.
nRows | The new number of rows. |
nCols | The new number of columns. |
Implements bpp::Matrix< Scalar >.
|
inlinevirtual |
i | The index of the row. |
Implements bpp::Matrix< Scalar >.
Definition at line 260 of file Matrix.h.
References bpp::Matrix< Scalar >::getNumberOfColumns(), and bpp::Matrix< Scalar >::operator()().
|
private |