aligator
0.10.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 </home/runner/work/aligator/aligator/gar/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) | |
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) |
Protected Member Functions | |
BlkMatrix (const row_dim_t &dims, std::true_type) | |
BlkMatrix (const row_dim_t &dims, std::false_type) | |
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 20 of file blk-matrix.hpp.
using aligator::BlkMatrix< _MatrixType, _N, _M >::col_dim_t |
Definition at line 22 of file blk-matrix.hpp.
anonymous enum |
Enumerator | |
---|---|
N | |
M | |
Options |
Definition at line 18 of file blk-matrix.hpp.
|
inline |
Definition at line 32 of file blk-matrix.hpp.
|
inline |
Definition at line 36 of file blk-matrix.hpp.
|
inline |
Definition at line 44 of file blk-matrix.hpp.
|
inline |
Definition at line 53 of file blk-matrix.hpp.
|
inline |
Only-rows constructor (only for vectors)
Definition at line 63 of file blk-matrix.hpp.
|
inline |
Only-rows constructor (only for vectors)
Definition at line 68 of file blk-matrix.hpp.
|
inlineexplicit |
Only-rows constructor (only for vectors)
Definition at line 72 of file blk-matrix.hpp.
|
inlineexplicitprotected |
Definition at line 181 of file blk-matrix.hpp.
|
inlineexplicitprotected |
Definition at line 183 of file blk-matrix.hpp.
|
inline |
Get the block in position ( i
, j
)
Definition at line 75 of file blk-matrix.hpp.
|
inline |
Definition at line 81 of file blk-matrix.hpp.
|
inline |
Definition at line 86 of file blk-matrix.hpp.
|
inline |
Definition at line 90 of file blk-matrix.hpp.
|
inline |
Definition at line 94 of file blk-matrix.hpp.
|
inline |
Definition at line 98 of file blk-matrix.hpp.
|
inline |
Definition at line 102 of file blk-matrix.hpp.
|
inline |
Definition at line 107 of file blk-matrix.hpp.
|
inline |
Definition at line 112 of file blk-matrix.hpp.
|
inline |
Definition at line 114 of file blk-matrix.hpp.
|
inline |
Set the data to be equal to some other Eigen object.
Definition at line 118 of file blk-matrix.hpp.
|
inline |
Definition at line 125 of file blk-matrix.hpp.
|
inlinestatic |
Definition at line 126 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 138 of file blk-matrix.hpp.
|
inline |
Definition at line 140 of file blk-matrix.hpp.
|
inline |
Definition at line 141 of file blk-matrix.hpp.
|
inline |
Definition at line 142 of file blk-matrix.hpp.
|
inline |
Definition at line 143 of file blk-matrix.hpp.
|
inline |
Definition at line 145 of file blk-matrix.hpp.
|
inline |
Definition at line 146 of file blk-matrix.hpp.
|
inline |
Definition at line 148 of file blk-matrix.hpp.
|
inline |
Definition at line 157 of file blk-matrix.hpp.
|
inlineprotected |
Definition at line 186 of file blk-matrix.hpp.
|
friend |
Definition at line 168 of file blk-matrix.hpp.
|
protected |
Definition at line 173 of file blk-matrix.hpp.
|
protected |
Definition at line 174 of file blk-matrix.hpp.
|
protected |
Definition at line 175 of file blk-matrix.hpp.
|
protected |
Definition at line 176 of file blk-matrix.hpp.
|
protected |
Definition at line 177 of file blk-matrix.hpp.
|
protected |
Definition at line 178 of file blk-matrix.hpp.
|
protected |
Definition at line 179 of file blk-matrix.hpp.