matrix_shape.h Source File
|
CPP API
|
matrix_shape.h
Go to the documentation of this file.
126 return failure(StatusCode::OutOfRange, "Rows and Columns of RectMatrixShape must be positive.");
Eigen::Index cols() const
number of columns.
Definition: matrix_shape.h:279
bool operator==(const ColumnVectorShape &other) const
equality comparators.
Definition: matrix_shape.h:294
static IOResult< ColumnVectorShape > deserialize(IOContext &io)
deserialize an object of this class.
Definition: matrix_shape.h:319
ColumnVectorShape(Eigen::Index r)
construct the shape of a column vector.
Definition: matrix_shape.h:251
static ColumnVectorShape get_shape_of(const Eigen::MatrixBase< ME > &m)
extract the shape of a column vector.
Definition: matrix_shape.h:262
bool operator!=(const ColumnVectorShape &other) const
Definition: matrix_shape.h:298
void serialize(IOContext &io) const
serialize this.
Definition: matrix_shape.h:308
static IOResult< RectMatrixShape > deserialize(IOContext &io)
deserialize an object of this class.
Definition: matrix_shape.h:115
static RectMatrixShape get_shape_of(const Eigen::MatrixBase< ME > &m)
extract the shape of a rectangular matrix.
Definition: matrix_shape.h:66
RectMatrixShape(Eigen::Index r, Eigen::Index c)
construct the shape of a rectangular matrix.
Definition: matrix_shape.h:54
bool operator!=(const RectMatrixShape &other) const
Definition: matrix_shape.h:93
bool operator==(const RectMatrixShape &other) const
equality comparators.
Definition: matrix_shape.h:89
void serialize(IOContext &io) const
serialize this.
Definition: matrix_shape.h:103
static IOResult< SquareMatrixShape > deserialize(IOContext &io)
deserialize an object of this class.
Definition: matrix_shape.h:218
Eigen::Index cols() const
number of columns.
Definition: matrix_shape.h:178
static SquareMatrixShape get_shape_of(const Eigen::MatrixBase< ME > &m)
extract the shape of a square matrix.
Definition: matrix_shape.h:160
Eigen::Index size() const
number of rows or columns.
Definition: matrix_shape.h:185
bool operator!=(const SquareMatrixShape &other) const
Definition: matrix_shape.h:197
SquareMatrixShape(Eigen::Index r)
construct a square matrix of dimensions r
Definition: matrix_shape.h:149
bool operator==(const SquareMatrixShape &other) const
equality comparators.
Definition: matrix_shape.h:193
void serialize(IOContext &io) const
serialize this.
Definition: matrix_shape.h:207
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
auto failure(const IOStatus &s)
Create an object that is implicitly convertible to an error IOResult<T>.
Definition: io.h:380
@ OutOfRange
boost::outcome_v2::in_place_type_t< T > Tag
Type that is used for overload resolution.
Definition: io.h:407
details::ApplyResultT< F, T... > apply(IOContext &io, F f, const IOResult< T > &... rs)
Evaluate a function with zero or more unpacked IOResults as arguments.
Definition: io.h:481
auto success()
Create an object that is implicitly convertible to a succesful IOResult<void>.
Definition: io.h:359
boost::outcome_v2::unchecked< T, IOStatus > IOResult
Value-or-error type for operations that return a value but can fail.
Definition: io.h:353
Generated by