RectMatrixShape< FP > Class Template Reference
|
CPP API
|
Public Types |
Public Member Functions |
Static Public Member Functions |
Private Attributes |
List of all members
mio::RectMatrixShape< FP > Class Template Reference
shape of a rectangular matrix. More...
#include <matrix_shape.h>
Public Types | |
| using | Matrix = Eigen::MatrixX< FP > |
Public Member Functions | |
| Eigen::Index | cols () const |
| number of columns. More... | |
| bool | operator!= (const RectMatrixShape &other) const |
| bool | operator== (const RectMatrixShape &other) const |
| equality comparators. More... | |
| RectMatrixShape (Eigen::Index r, Eigen::Index c) | |
| construct the shape of a rectangular matrix. More... | |
| Eigen::Index | rows () const |
| number of rows. More... | |
| template<class IOContext > | |
| void | serialize (IOContext &io) const |
| serialize this. More... | |
Static Public Member Functions | |
| template<class IOContext > | |
| static IOResult< RectMatrixShape > | deserialize (IOContext &io) |
| deserialize an object of this class. More... | |
| template<class ME > | |
| static RectMatrixShape | get_shape_of (const Eigen::MatrixBase< ME > &m) |
| extract the shape of a rectangular matrix. More... | |
Private Attributes | |
| Eigen::Index | m_cols |
| Eigen::Index | m_rows |
Detailed Description
template<typename FP>
class mio::RectMatrixShape< FP >
shape of a rectangular matrix.
variable rows and cols.
Member Typedef Documentation
◆ Matrix
template<typename FP >
| using mio::RectMatrixShape< FP >::Matrix = Eigen::MatrixX<FP> |
Constructor & Destructor Documentation
◆ RectMatrixShape()
template<typename FP >
|
inline |
construct the shape of a rectangular matrix.
- Parameters
-
r number of rows. c number of columns.
Member Function Documentation
◆ cols()
template<typename FP >
|
inline |
number of columns.
◆ deserialize()
template<typename FP >
template<class IOContext >
|
inlinestatic |
deserialize an object of this class.
- See also
- mio::deserialize
◆ get_shape_of()
template<typename FP >
template<class ME >
|
inlinestatic |
extract the shape of a rectangular matrix.
- Parameters
-
m matrix to take the shape of.
- Template Parameters
-
ME matrix expression.
◆ operator!=()
template<typename FP >
|
inline |
◆ operator==()
template<typename FP >
|
inline |
equality comparators.
◆ rows()
template<typename FP >
|
inline |
number of rows.
◆ serialize()
template<typename FP >
template<class IOContext >
|
inline |
serialize this.
- See also
- mio::serialize
Member Data Documentation
◆ m_cols
template<typename FP >
|
private |
◆ m_rows
template<typename FP >
|
private |
Generated by