|
aligator
0.16.0
A versatile and efficient C++ library for real-time constrained trajectory optimization.
|
Block matrix class, with a fixed or dynamic-size number of row and column blocks. More...
#include <aligator/core/blk-matrix.hpp>
Public Types | |
| using | MatrixType = _MatrixType |
| using | PlainObject = typename MatrixType::PlainObject |
| using | Scalar = typename MatrixType::Scalar |
| using | Index = Eigen::Index |
| using | RowDimsType |
| using | ColDimsType |
Public Member Functions | |
| BlkMatrix () | |
| BlkMatrix (const RowDimsType &rowDims, const ColDimsType &colDims) | |
| template<typename Other> | |
| BlkMatrix (const Eigen::MatrixBase< Other > &data, const RowDimsType &rowDims, const ColDimsType &colDims) | |
| template<typename Other> | |
| BlkMatrix (Eigen::MatrixBase< Other > &data, const RowDimsType &rowDims, const ColDimsType &colDims) | |
| template<typename Other> | |
| BlkMatrix (const Eigen::MatrixBase< Other > &data, const RowDimsType &dims) | |
| Only-rows constructor (only for vectors) | |
| template<typename Other> | |
| BlkMatrix (Eigen::MatrixBase< Other > &data, const RowDimsType &dims) | |
| Only-rows constructor (only for vectors) | |
| operator Eigen::Ref< PlainObject > () | |
| operator Eigen::Ref< const PlainObject > () const | |
| BlkMatrix (const RowDimsType &dims) | |
| Only-rows constructor (only for vectors) | |
| auto | operator() (size_t i, size_t j) |
Get the block in position ( i, j ) | |
| auto | operator() (size_t i, size_t j) const |
| auto | blockRow (size_t i) |
| auto | blockRow (size_t i) const |
| auto | blockCol (size_t j) const |
| auto | blockCol (size_t j) |
| auto | blockSegment (size_t i) |
| auto | blockSegment (size_t i) const |
| auto | operator[] (size_t i) |
| auto | operator[] (size_t i) const |
| template<typename Other> | |
| BlkMatrix & | operator= (const Eigen::MatrixBase< Other > &other) |
| Set the data to be equal to some other Eigen object. | |
| void | setZero () |
| template<typename Other> | |
| void | swap (BlkMatrix< Other, N, M > &other) |
| MatrixType & | matrix () |
| const MatrixType & | matrix () const |
| template<typename D> | |
| bool | isApprox (const Eigen::EigenBase< D > &other, const Scalar prec=Eigen::NumTraits< Scalar >::dummy_precision()) const |
| template<typename D, int N2, int M2> | |
| bool | isApprox (const BlkMatrix< D, N2, M2 > &other, const Scalar prec=Eigen::NumTraits< Scalar >::dummy_precision()) const |
| const RowDimsType & | rowDims () const |
| const RowDimsType & | rowIndices () const |
| const ColDimsType & | colDims () const |
| const ColDimsType & | colIndices () const |
| Index | rows () const |
| Index | cols () const |
| auto | topBlkRows (size_t n) |
Take the top n block rows of the block matrix. | |
| template<size_t n> | |
| auto | topBlkRows () |
| This version returns a fixed-size block. This version returns a fixed-size block. | |
Static Public Member Functions | |
| static BlkMatrix | Zero (const RowDimsType &rowDims, const ColDimsType &colDims) |
Static Public Attributes | |
| static constexpr int | N = _N |
| static constexpr int | M = _M |
| static constexpr int | Options = PlainObject::Options |
| static constexpr bool | IsVectorAtCompileTime |
Protected Member Functions | |
| void | initialize () |
Protected Attributes | |
| MatrixType | m_data |
| RowDimsType | m_rowDims |
| ColDimsType | m_colDims |
| RowDimsType | m_rowIndices |
| ColDimsType | m_colIndices |
| Index | m_totalRows |
| Index | m_totalCols |
Friends | |
| std::ostream & | operator<< (std::ostream &oss, const BlkMatrix &self) |
Block matrix class, with a fixed or dynamic-size number of row and column blocks.
| Baseline | matrix type; the user can use an Eigen::Ref type to create a blocked view to an existing matrix. |
| N | number of block rows. |
| M | number of block columns. |
Definition at line 19 of file blk-matrix.hpp.
| using aligator::BlkMatrix< _MatrixType, _N, _M >::MatrixType = _MatrixType |
Definition at line 21 of file blk-matrix.hpp.
| using aligator::BlkMatrix< _MatrixType, _N, _M >::PlainObject = typename MatrixType::PlainObject |
Definition at line 22 of file blk-matrix.hpp.
| using aligator::BlkMatrix< _MatrixType, _N, _M >::Scalar = typename MatrixType::Scalar |
Definition at line 23 of file blk-matrix.hpp.
| using aligator::BlkMatrix< _MatrixType, _N, _M >::Index = Eigen::Index |
Definition at line 24 of file blk-matrix.hpp.
| using aligator::BlkMatrix< _MatrixType, _N, _M >::RowDimsType |
Definition at line 31 of file blk-matrix.hpp.
| using aligator::BlkMatrix< _MatrixType, _N, _M >::ColDimsType |
Definition at line 33 of file blk-matrix.hpp.
|
inline |
Definition at line 43 of file blk-matrix.hpp.
|
inline |
Definition at line 52 of file blk-matrix.hpp.
|
inline |
Definition at line 64 of file blk-matrix.hpp.
|
inline |
Definition at line 77 of file blk-matrix.hpp.
|
inline |
Only-rows constructor (only for vectors)
Definition at line 91 of file blk-matrix.hpp.
|
inline |
Only-rows constructor (only for vectors)
Definition at line 96 of file blk-matrix.hpp.
|
inlineexplicit |
Only-rows constructor (only for vectors)
Definition at line 103 of file blk-matrix.hpp.
|
inline |
Definition at line 99 of file blk-matrix.hpp.
|
inline |
Definition at line 100 of file blk-matrix.hpp.
|
inline |
Get the block in position ( i, j )
Definition at line 110 of file blk-matrix.hpp.
|
inline |
Definition at line 116 of file blk-matrix.hpp.
|
inline |
Definition at line 121 of file blk-matrix.hpp.
|
inline |
Definition at line 125 of file blk-matrix.hpp.
|
inline |
Definition at line 129 of file blk-matrix.hpp.
|
inline |
Definition at line 133 of file blk-matrix.hpp.
|
inline |
Definition at line 137 of file blk-matrix.hpp.
|
inline |
Definition at line 142 of file blk-matrix.hpp.
|
inline |
Definition at line 147 of file blk-matrix.hpp.
|
inline |
Definition at line 149 of file blk-matrix.hpp.
|
inline |
Set the data to be equal to some other Eigen object.
Definition at line 153 of file blk-matrix.hpp.
|
inline |
Definition at line 160 of file blk-matrix.hpp.
|
inlinestatic |
Definition at line 161 of file blk-matrix.hpp.
|
inline |
Definition at line 169 of file blk-matrix.hpp.
|
inline |
Definition at line 173 of file blk-matrix.hpp.
|
inline |
Definition at line 174 of file blk-matrix.hpp.
|
inline |
Definition at line 177 of file blk-matrix.hpp.
|
inline |
Definition at line 184 of file blk-matrix.hpp.
|
inline |
Definition at line 190 of file blk-matrix.hpp.
|
inline |
Definition at line 191 of file blk-matrix.hpp.
|
inline |
Definition at line 192 of file blk-matrix.hpp.
|
inline |
Definition at line 193 of file blk-matrix.hpp.
|
inline |
Definition at line 195 of file blk-matrix.hpp.
|
inline |
Definition at line 196 of file blk-matrix.hpp.
|
inline |
Take the top n block rows of the block matrix.
Definition at line 199 of file blk-matrix.hpp.
|
inline |
This version returns a fixed-size block. This version returns a fixed-size block.
Definition at line 210 of file blk-matrix.hpp.
|
inlineprotected |
Definition at line 234 of file blk-matrix.hpp.
|
friend |
Definition at line 221 of file blk-matrix.hpp.
|
staticconstexpr |
Definition at line 25 of file blk-matrix.hpp.
|
staticconstexpr |
Definition at line 26 of file blk-matrix.hpp.
|
staticconstexpr |
Definition at line 27 of file blk-matrix.hpp.
|
staticconstexpr |
Definition at line 28 of file blk-matrix.hpp.
|
protected |
Definition at line 226 of file blk-matrix.hpp.
|
protected |
Definition at line 227 of file blk-matrix.hpp.
|
protected |
Definition at line 228 of file blk-matrix.hpp.
|
protected |
Definition at line 229 of file blk-matrix.hpp.
|
protected |
Definition at line 230 of file blk-matrix.hpp.
|
protected |
Definition at line 231 of file blk-matrix.hpp.
|
protected |
Definition at line 232 of file blk-matrix.hpp.