aligator
0.14.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
|
Block matrix class, with a fixed-size number of row and column blocks. More...
#include <aligator/gar/blk-matrix.hpp>
Public Types | |
enum | { N = _N , M = _M , Options = PlainObject::Options } |
using | MatrixType = _MatrixType |
using | PlainObject = typename MatrixType::PlainObject |
using | Scalar = typename MatrixType::Scalar |
using | row_dim_t |
using | col_dim_t |
Public Member Functions | |
BlkMatrix () | |
BlkMatrix (const row_dim_t &rowDims, const col_dim_t &colDims) | |
template<typename Other> | |
BlkMatrix (const Eigen::MatrixBase< Other > &data, const row_dim_t &rowDims, const col_dim_t &colDims) | |
template<typename Other> | |
BlkMatrix (Eigen::MatrixBase< Other > &data, const row_dim_t &rowDims, const col_dim_t &colDims) | |
template<typename Other> | |
BlkMatrix (const Eigen::MatrixBase< Other > &data, const row_dim_t &dims) | |
Only-rows constructor (only for vectors) | |
template<typename Other> | |
BlkMatrix (Eigen::MatrixBase< Other > &data, const row_dim_t &dims) | |
Only-rows constructor (only for vectors) | |
operator Eigen::Ref< PlainObject > () | |
operator Eigen::Ref< const PlainObject > () const | |
BlkMatrix (const row_dim_t &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 |
const row_dim_t & | rowDims () const |
const row_dim_t & | rowIndices () const |
const col_dim_t & | colDims () const |
const col_dim_t & | colIndices () const |
long | rows () const |
long | cols () const |
auto | topBlkRows (size_t n) |
template<size_t n> | |
auto | topBlkRows () |
Static Public Member Functions | |
static BlkMatrix | Zero (const row_dim_t &rowDims, const col_dim_t &colDims) |
Static Public Attributes | |
static constexpr bool | IsVectorAtCompileTime |
Protected Member Functions | |
void | initialize () |
Protected Attributes | |
MatrixType | m_data |
row_dim_t | m_rowDims |
col_dim_t | m_colDims |
row_dim_t | m_rowIndices |
col_dim_t | m_colIndices |
long | m_totalRows |
long | m_totalCols |
Friends | |
std::ostream & | operator<< (std::ostream &oss, const BlkMatrix &self) |
Block matrix class, with a fixed-size number of row and column blocks.
Definition at line 13 of file blk-matrix.hpp.
using aligator::BlkMatrix< _MatrixType, _N, _M >::MatrixType = _MatrixType |
Definition at line 15 of file blk-matrix.hpp.
using aligator::BlkMatrix< _MatrixType, _N, _M >::PlainObject = typename MatrixType::PlainObject |
Definition at line 16 of file blk-matrix.hpp.
using aligator::BlkMatrix< _MatrixType, _N, _M >::Scalar = typename MatrixType::Scalar |
Definition at line 17 of file blk-matrix.hpp.
using aligator::BlkMatrix< _MatrixType, _N, _M >::row_dim_t |
Definition at line 22 of file blk-matrix.hpp.
using aligator::BlkMatrix< _MatrixType, _N, _M >::col_dim_t |
Definition at line 24 of file blk-matrix.hpp.
anonymous enum |
Enumerator | |
---|---|
N | |
M | |
Options |
Definition at line 18 of file blk-matrix.hpp.
|
inline |
Definition at line 34 of file blk-matrix.hpp.
|
inline |
Definition at line 43 of file blk-matrix.hpp.
|
inline |
Definition at line 55 of file blk-matrix.hpp.
|
inline |
Definition at line 69 of file blk-matrix.hpp.
|
inline |
Only-rows constructor (only for vectors)
Definition at line 84 of file blk-matrix.hpp.
|
inline |
Only-rows constructor (only for vectors)
Definition at line 89 of file blk-matrix.hpp.
|
inlineexplicit |
Only-rows constructor (only for vectors)
Definition at line 96 of file blk-matrix.hpp.
|
inline |
Definition at line 92 of file blk-matrix.hpp.
|
inline |
Definition at line 93 of file blk-matrix.hpp.
|
inline |
Get the block in position ( i
, j
)
Definition at line 103 of file blk-matrix.hpp.
|
inline |
Definition at line 109 of file blk-matrix.hpp.
|
inline |
Definition at line 114 of file blk-matrix.hpp.
|
inline |
Definition at line 118 of file blk-matrix.hpp.
|
inline |
Definition at line 122 of file blk-matrix.hpp.
|
inline |
Definition at line 126 of file blk-matrix.hpp.
|
inline |
Definition at line 130 of file blk-matrix.hpp.
|
inline |
Definition at line 135 of file blk-matrix.hpp.
|
inline |
Definition at line 140 of file blk-matrix.hpp.
|
inline |
Definition at line 142 of file blk-matrix.hpp.
|
inline |
Set the data to be equal to some other Eigen object.
Definition at line 146 of file blk-matrix.hpp.
|
inline |
Definition at line 153 of file blk-matrix.hpp.
|
inlinestatic |
Definition at line 154 of file blk-matrix.hpp.
|
inline |
Definition at line 161 of file blk-matrix.hpp.
|
inline |
Definition at line 165 of file blk-matrix.hpp.
|
inline |
Definition at line 166 of file blk-matrix.hpp.
|
inline |
Definition at line 168 of file blk-matrix.hpp.
|
inline |
Definition at line 169 of file blk-matrix.hpp.
|
inline |
Definition at line 170 of file blk-matrix.hpp.
|
inline |
Definition at line 171 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 176 of file blk-matrix.hpp.
|
inline |
Definition at line 185 of file blk-matrix.hpp.
|
inlineprotected |
Definition at line 209 of file blk-matrix.hpp.
|
friend |
Definition at line 196 of file blk-matrix.hpp.
|
staticconstexpr |
Definition at line 19 of file blk-matrix.hpp.
|
protected |
Definition at line 201 of file blk-matrix.hpp.
|
protected |
Definition at line 202 of file blk-matrix.hpp.
|
protected |
Definition at line 203 of file blk-matrix.hpp.
|
protected |
Definition at line 204 of file blk-matrix.hpp.
|
protected |
Definition at line 205 of file blk-matrix.hpp.
|
protected |
Definition at line 206 of file blk-matrix.hpp.
|
protected |
Definition at line 207 of file blk-matrix.hpp.