Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ class AddToMatrixCompatMatrix : public sofa::linearalgebra::BaseMatrix

msg_error(component) << compatibilityMessage << "set is not a supported operation in the compatibility";
}
using linearalgebra::BaseMatrix::add;
void add(Index row, Index col, double v) override
{
if constexpr (c == matrixaccumulator::Contribution::MASS)
Expand Down Expand Up @@ -215,6 +216,7 @@ class ApplyConstraintCompat : public sofa::linearalgebra::BaseMatrix
SOFA_UNUSED(j);
SOFA_UNUSED(v);
}
using linearalgebra::BaseMatrix::add;
void add(Index row, Index col, double v) override
{
SOFA_UNUSED(row);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ class BTDMatrix : public linearalgebra::BaseMatrix

void set(Index i, Index j, double v) override;

using BaseMatrix::add;
void add(Index i, Index j, double v) override;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ class BlockFullMatrix : public linearalgebra::BaseMatrix

void set(Index i, Index j, double v) override;

using BaseMatrix::add;
void add(Index i, Index j, double v) override;

void clear(Index i, Index j) override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ class CompressedRowSparseMatrixMechanical final // final is used to allow the co
traits::vset(*this->wblock(i, j, true), bi, bj, static_cast<Real>(v) );
}

using BaseMatrix::add;

/**
* \brief add scalar v at element i, j of matrix
**/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ class EigenBaseSparseMatrix : public linearalgebra::BaseMatrix



using BaseMatrix::add;

/// Schedule the addition of the value at the given place. Scheduled additions must be finalized using function compress().
void add( Index row, Index col, double value ) override{
if( value!=0.0 ) incoming.push_back( Triplet(row,col,(Real)value) );
Expand Down
Loading