SquareMatrixShape< FP > Class Template Reference
|
CPP API
|
Public Types |
Public Member Functions |
Static Public Member Functions |
Private Attributes |
List of all members
mio::SquareMatrixShape< FP > Class Template Reference
shape of a square 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 SquareMatrixShape &other) const |
| bool | operator== (const SquareMatrixShape &other) const |
| equality comparators. More... | |
| Eigen::Index | rows () const |
| number of rows. More... | |
| template<class IOContext > | |
| void | serialize (IOContext &io) const |
| serialize this. More... | |
| Eigen::Index | size () const |
| number of rows or columns. More... | |
| SquareMatrixShape (Eigen::Index r) | |
| construct a square matrix of dimensions r More... | |
Static Public Member Functions | |
| template<class IOContext > | |
| static IOResult< SquareMatrixShape > | deserialize (IOContext &io) |
| deserialize an object of this class. More... | |
| template<class ME > | |
| static SquareMatrixShape | get_shape_of (const Eigen::MatrixBase< ME > &m) |
| extract the shape of a square matrix. More... | |
Private Attributes | |
| Eigen::Index | m_rows |
Detailed Description
Member Typedef Documentation
◆ Matrix
template<typename FP >
| using mio::SquareMatrixShape< FP >::Matrix = Eigen::MatrixX<FP> |
Constructor & Destructor Documentation
◆ SquareMatrixShape()
template<typename FP >
|
inlineexplicit |
construct a square matrix of dimensions r
- Parameters
-
r number of rows and columns
Member Function Documentation
◆ cols()
template<typename FP >
|
inline |
number of columns.
equal to number of rows.
◆ 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 square 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.
equal to number of columns.
◆ serialize()
template<typename FP >
template<class IOContext >
|
inline |
serialize this.
- See also
- mio::serialize
◆ size()
template<typename FP >
|
inline |
number of rows or columns.
Member Data Documentation
◆ m_rows
template<typename FP >
|
private |
Generated by