template<typename Derived>
class SofaCaribou::Algebra::EigenMatrix< Derived, CLASS_REQUIRES(std::is_base_of_v< Eigen::SparseMatrixBase< std::decay_t< Derived >>, std::decay_t< Derived >>)>
SparseMatrix specialization ///.
|
| EigenMatrix (std::remove_reference_t< Derived > &eigen_matrix) |
| Construct the class using another Eigen matrix. More...
|
|
| EigenMatrix (Eigen::Index rows, Eigen::Index cols) |
| Construct a new rows x cols Eigen matrix of type Derived. More...
|
|
Index | rowSize () const final |
|
Index | colSize () const final |
|
bool | symmetric () const |
| States if the matrix is symmetric. More...
|
|
void | set_symmetric (bool is_symmetric) |
| Explicitly states if this matrix is symmetric.
|
|
Real | element (Index i, Index j) const final |
| Return the matrix entry (i,j). More...
|
|
void | resize (Index nbRow, Index nbCol) final |
| Resize the matrix to nbRow x nbCol dimensions. More...
|
|
void | clear () final |
| Set all entries to zero. More...
|
|
void | set (Index i, Index j, double v) final |
| Set this value of the matrix entry (i, j) to the value of v. More...
|
|
void | add (Index i, Index j, double v) final |
| Adds v to the value of the matrix entry (i, j). More...
|
|
void | compress () final |
| Compress the matrix. More...
|
|
void | add (Index i, Index j, const sofa::defaulttype::Mat3x3d &m) override |
|
void | add (Index i, Index j, const sofa::defaulttype::Mat3x3f &m) override |
|
void | add (Index i, Index j, const sofa::defaulttype::Mat2x2d &m) override |
|
void | add (Index i, Index j, const sofa::defaulttype::Mat2x2f &m) override |
|
void | clearRow (Index row_id) final |
| Sets the entire row i to zero.
|
|
void | clearRows (Index imin, Index imax) final |
| Sets the rows from index imin to index imax (inclusively) to zero.
|
|
void | clearCol (Index col_id) final |
| Sets the entire columns i to zero.
|
|
void | clearCols (Index imin, Index imax) final |
| Sets the columns from index imin to index imax (inclusively) to zero.
|
|
void | clearRowCol (Index i) final |
| Sets the entire row i and column i to zero.
|
|
const Derived & | matrix () const |
| Get a const reference to the underlying Eigen matrix
|
|