Helper class to convert Eigen::Matrix to csc struct expected by OSQP. More...
#include <eigen-osqp/CSCMatrix.h>
Public Member Functions | |
| CSCMatrix () | |
| Default constructor. Allocate memory for an empty matrix. More... | |
| void | updateTriangularDefault (const MatrixConstRef &mat) |
| Update current csc matrix to a new one. Only the upper triangular part is considered. More... | |
| void | updateDefault (const MatrixConstRef &mat) |
| Update current csc matrix to a new one. More... | |
| void | updateAndAddIdentity (const MatrixConstRef &mat) |
| Update current csc matrix to a new one and add an identity matrix beneath it. More... | |
| void | updateTriangularDefault (const MatrixCompressSparseConstRef &mat) |
| Update current csc matrix to a new one. Only the upper triangular part is considered. More... | |
| void | updateDefault (const MatrixCompressSparseConstRef &mat) |
| Update current csc matrix to a new one. More... | |
| void | updateAndAddIdentity (const MatrixCompressSparseConstRef &mat) |
| Update current csc matrix to a new one and add an identity matrix beneath it. More... | |
| csc * | matrix () noexcept |
| Get the csc matrix pointer. More... | |
| MatrixDense | toDenseEigen () const |
| Convert csc matrix to Eigen dense matrix. More... | |
| MatrixSparse | toSparseEigen () const |
| Convert csc matrix to Eigen sparse matrix. More... | |
Helper class to convert Eigen::Matrix to csc struct expected by OSQP.
| Eigen::CSCMatrix::CSCMatrix | ( | ) |
Default constructor. Allocate memory for an empty matrix.
|
inlinenoexcept |
Get the csc matrix pointer.
Referenced by Eigen::OSQP::solve().
| MatrixDense Eigen::CSCMatrix::toDenseEigen | ( | ) | const |
Convert csc matrix to Eigen dense matrix.
| MatrixSparse Eigen::CSCMatrix::toSparseEigen | ( | ) | const |
Convert csc matrix to Eigen sparse matrix.
| void Eigen::CSCMatrix::updateAndAddIdentity | ( | const MatrixConstRef & | mat | ) |
Update current csc matrix to a new one and add an identity matrix beneath it.
| mat | Dense matrix to convert. |
Referenced by Eigen::OSQP::solve().
| void Eigen::CSCMatrix::updateAndAddIdentity | ( | const MatrixCompressSparseConstRef & | mat | ) |
Update current csc matrix to a new one and add an identity matrix beneath it.
| mat | Compress sparse matrix to convert. |
| void Eigen::CSCMatrix::updateDefault | ( | const MatrixConstRef & | mat | ) |
Update current csc matrix to a new one.
| mat | Dense matrix to convert. |
Referenced by Eigen::OSQP::solve().
| void Eigen::CSCMatrix::updateDefault | ( | const MatrixCompressSparseConstRef & | mat | ) |
Update current csc matrix to a new one.
| mat | Compress sparse matrix to convert. |
| void Eigen::CSCMatrix::updateTriangularDefault | ( | const MatrixConstRef & | mat | ) |
Update current csc matrix to a new one. Only the upper triangular part is considered.
| mat | Dense matrix to convert. |
Referenced by Eigen::OSQP::solve().
| void Eigen::CSCMatrix::updateTriangularDefault | ( | const MatrixCompressSparseConstRef & | mat | ) |
Update current csc matrix to a new one. Only the upper triangular part is considered.
| mat | Dense matrix to convert. |