ColumnVectorShape< FP > Class Template Reference

CPP API: mio::ColumnVectorShape< FP > Class Template Reference
mio::ColumnVectorShape< FP > Class Template Reference

shape of a column vector. More...

#include <matrix_shape.h>

Public Types

using Matrix = Eigen::VectorX< FP >
 

Public Member Functions

Eigen::Index cols () const
 number of columns. More...
 
 ColumnVectorShape (Eigen::Index r)
 construct the shape of a column vector. More...
 
bool operator!= (const ColumnVectorShape &other) const
 
bool operator== (const ColumnVectorShape &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. More...
 

Static Public Member Functions

template<class IOContext >
static IOResult< ColumnVectorShapedeserialize (IOContext &io)
 deserialize an object of this class. More...
 
template<class ME >
static ColumnVectorShape get_shape_of (const Eigen::MatrixBase< ME > &m)
 extract the shape of a column vector. More...
 

Private Attributes

Eigen::Index m_rows
 

Detailed Description

template<typename FP>
class mio::ColumnVectorShape< FP >

shape of a column vector.

cols() == 1.

Member Typedef Documentation

◆ Matrix

template<typename FP >
using mio::ColumnVectorShape< FP >::Matrix = Eigen::VectorX<FP>

Constructor & Destructor Documentation

◆ ColumnVectorShape()

template<typename FP >
mio::ColumnVectorShape< FP >::ColumnVectorShape ( Eigen::Index  r)
inlineexplicit

construct the shape of a column vector.

Parameters
rnumber of rows.

Member Function Documentation

◆ cols()

template<typename FP >
Eigen::Index mio::ColumnVectorShape< FP >::cols ( ) const
inline

number of columns.

equal to 1.

◆ deserialize()

template<typename FP >
template<class IOContext >
static IOResult<ColumnVectorShape> mio::ColumnVectorShape< FP >::deserialize ( IOContext &  io)
inlinestatic

deserialize an object of this class.

See also
mio::deserialize

◆ get_shape_of()

template<typename FP >
template<class ME >
static ColumnVectorShape mio::ColumnVectorShape< FP >::get_shape_of ( const Eigen::MatrixBase< ME > &  m)
inlinestatic

extract the shape of a column vector.

Parameters
mvector to take the shape of.
Template Parameters
MEmatrix expression.

◆ operator!=()

template<typename FP >
bool mio::ColumnVectorShape< FP >::operator!= ( const ColumnVectorShape< FP > &  other) const
inline

◆ operator==()

template<typename FP >
bool mio::ColumnVectorShape< FP >::operator== ( const ColumnVectorShape< FP > &  other) const
inline

equality comparators.

◆ rows()

template<typename FP >
Eigen::Index mio::ColumnVectorShape< FP >::rows ( ) const
inline

number of rows.

◆ serialize()

template<typename FP >
template<class IOContext >
void mio::ColumnVectorShape< FP >::serialize ( IOContext &  io) const
inline

serialize this.

See also
mio::serialize

◆ size()

template<typename FP >
Eigen::Index mio::ColumnVectorShape< FP >::size ( ) const
inline

number of rows.

Member Data Documentation

◆ m_rows

template<typename FP >
Eigen::Index mio::ColumnVectorShape< FP >::m_rows
private