diff --git a/MathLib/LinAlg/Eigen/EigenMatrix.h b/MathLib/LinAlg/Eigen/EigenMatrix.h index 7e0dd62a669b40b07f1e9ccc46a301665b6e2627..22d523efd1e80e2b0fd8f53c99db014378b14ab5 100644 --- a/MathLib/LinAlg/Eigen/EigenMatrix.h +++ b/MathLib/LinAlg/Eigen/EigenMatrix.h @@ -71,7 +71,7 @@ public: int setValue(IndexType row, IndexType col, double val) { assert(row < (IndexType) getNumberOfRows() && col < (IndexType) getNumberOfColumns()); - if (val != 0.0) _mat.coeffRef(row, col) = val; + _mat.coeffRef(row, col) = val; return 0; } @@ -79,7 +79,7 @@ public: /// inserted. int add(IndexType row, IndexType col, double val) { - if (val != 0.0) _mat.coeffRef(row, col) += val; + _mat.coeffRef(row, col) += val; return 0; }