diff --git a/Sofa/framework/Core/src/sofa/core/behavior/MatrixAPICompatibility.h b/Sofa/framework/Core/src/sofa/core/behavior/MatrixAPICompatibility.h index 6b333da0965..181aef22baf 100644 --- a/Sofa/framework/Core/src/sofa/core/behavior/MatrixAPICompatibility.h +++ b/Sofa/framework/Core/src/sofa/core/behavior/MatrixAPICompatibility.h @@ -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) @@ -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); diff --git a/Sofa/framework/LinearAlgebra/src/sofa/linearalgebra/BTDMatrix.h b/Sofa/framework/LinearAlgebra/src/sofa/linearalgebra/BTDMatrix.h index 2fe10a76af8..a866fed83b2 100644 --- a/Sofa/framework/LinearAlgebra/src/sofa/linearalgebra/BTDMatrix.h +++ b/Sofa/framework/LinearAlgebra/src/sofa/linearalgebra/BTDMatrix.h @@ -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; /** diff --git a/Sofa/framework/LinearAlgebra/src/sofa/linearalgebra/BlockFullMatrix.h b/Sofa/framework/LinearAlgebra/src/sofa/linearalgebra/BlockFullMatrix.h index ff11401b1dc..b174d29f7b5 100644 --- a/Sofa/framework/LinearAlgebra/src/sofa/linearalgebra/BlockFullMatrix.h +++ b/Sofa/framework/LinearAlgebra/src/sofa/linearalgebra/BlockFullMatrix.h @@ -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; diff --git a/Sofa/framework/LinearAlgebra/src/sofa/linearalgebra/CompressedRowSparseMatrixMechanical.h b/Sofa/framework/LinearAlgebra/src/sofa/linearalgebra/CompressedRowSparseMatrixMechanical.h index 3815c318a4d..003f2920571 100644 --- a/Sofa/framework/LinearAlgebra/src/sofa/linearalgebra/CompressedRowSparseMatrixMechanical.h +++ b/Sofa/framework/LinearAlgebra/src/sofa/linearalgebra/CompressedRowSparseMatrixMechanical.h @@ -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(v) ); } + using BaseMatrix::add; + /** * \brief add scalar v at element i, j of matrix **/ diff --git a/Sofa/framework/LinearAlgebra/src/sofa/linearalgebra/EigenBaseSparseMatrix.h b/Sofa/framework/LinearAlgebra/src/sofa/linearalgebra/EigenBaseSparseMatrix.h index 24d46667fe6..16c252cf4b4 100644 --- a/Sofa/framework/LinearAlgebra/src/sofa/linearalgebra/EigenBaseSparseMatrix.h +++ b/Sofa/framework/LinearAlgebra/src/sofa/linearalgebra/EigenBaseSparseMatrix.h @@ -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) );