Skip to content
Snippets Groups Projects
Commit a6a7a3ca authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[MaL] Remove asserts checked inside of eigen lib.

parent 5d3f6535
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#ifndef EIGENMATRIX_H_ #ifndef EIGENMATRIX_H_
#define EIGENMATRIX_H_ #define EIGENMATRIX_H_
#include <cassert>
#ifndef NDEBUG #ifndef NDEBUG
#include <fstream> #include <fstream>
#include <string> #include <string>
...@@ -79,7 +78,6 @@ public: ...@@ -79,7 +78,6 @@ public:
/// inserted. /// inserted.
int add(IndexType row, IndexType col, double val) int add(IndexType row, IndexType col, double val)
{ {
assert(row < getNRows() && col < getNCols());
_mat.coeffRef(row, col) += val; _mat.coeffRef(row, col) += val;
return 0; return 0;
} }
...@@ -120,7 +118,6 @@ public: ...@@ -120,7 +118,6 @@ public:
/// get value. This function returns zero if the element doesn't exist. /// get value. This function returns zero if the element doesn't exist.
double get(IndexType row, IndexType col) const double get(IndexType row, IndexType col) const
{ {
assert(row < getNRows() && col < getNCols());
return _mat.coeff(row, col); return _mat.coeff(row, col);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment