diff --git a/MathLib/LinAlg/Eigen/EigenMatrix.h b/MathLib/LinAlg/Eigen/EigenMatrix.h index 5556195cdc8e87a2a65a9c450bb890404554fc69..4cbd970c03d1b4800ffd2ed887dd4e1fddc0d20c 100644 --- a/MathLib/LinAlg/Eigen/EigenMatrix.h +++ b/MathLib/LinAlg/Eigen/EigenMatrix.h @@ -10,7 +10,6 @@ #ifndef EIGENMATRIX_H_ #define EIGENMATRIX_H_ -#include <cassert> #ifndef NDEBUG #include <fstream> #include <string> @@ -79,7 +78,6 @@ public: /// inserted. int add(IndexType row, IndexType col, double val) { - assert(row < getNRows() && col < getNCols()); _mat.coeffRef(row, col) += val; return 0; } @@ -120,7 +118,6 @@ public: /// get value. This function returns zero if the element doesn't exist. double get(IndexType row, IndexType col) const { - assert(row < getNRows() && col < getNCols()); return _mat.coeff(row, col); }