33 #ifndef ACADO_TOOLKIT_BLOCK_MATRIX_HPP 34 #define ACADO_TOOLKIT_BLOCK_MATRIX_HPP 215 std::vector< std::vector< SubBlockMatrixType > >
types;
223 #include <acado/matrix_vector/block_matrix.ipp> 225 #endif // ACADO_TOOLKIT_BLOCK_MATRIX_HPP Implements a very rudimentary block sparse matrix class.
returnValue print(std::ostream &stream=std::cout) const
BlockMatrix transpose() const
returnValue setDense(uint rowIdx, uint colIdx, const DMatrix &value)
Allows to pass back messages to the calling function.
BlockMatrix operator^(const BlockMatrix &arg) const
static const BlockMatrix emptyConstBlockMatrix
BlockMatrix getAbsolute() const
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
BlockMatrix operator+(const BlockMatrix &arg) const
#define CLOSE_NAMESPACE_ACADO
BlockMatrix getNegative() const
BlockMatrix operator-(const BlockMatrix &arg) const
static BlockMatrix emptyBlockMatrix
returnValue getSubBlock(uint rowIdx, uint colIdx, DMatrix &value) const
std::vector< std::vector< SubBlockMatrixType > > types
returnValue init(uint _nRows, uint _nCols)
BlockMatrix & operator+=(const BlockMatrix &arg)
BlockMatrix getPositive() const
BlockMatrix operator*(const BlockMatrix &arg) const
BlockMatrix operator*=(double scalar)
#define BEGIN_NAMESPACE_ACADO
returnValue addRegularisation(uint rowIdx, uint colIdx, double eps)
returnValue setIdentity(uint rowIdx, uint colIdx, uint dim)
returnValue addDense(uint rowIdx, uint colIdx, const DMatrix &value)
std::vector< std::vector< DMatrix > > elements