mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Replace assert() by eigen_assert() (fixes bug #548).
This commit is contained in:
@@ -73,7 +73,7 @@ class IterScaling
|
||||
{
|
||||
int m = mat.rows();
|
||||
int n = mat.cols();
|
||||
assert((m>0 && m == n) && "Please give a non - empty matrix");
|
||||
eigen_assert((m>0 && m == n) && "Please give a non - empty matrix");
|
||||
m_left.resize(m);
|
||||
m_right.resize(n);
|
||||
m_left.setOnes();
|
||||
@@ -182,4 +182,4 @@ class IterScaling
|
||||
int m_maxits; // Maximum number of iterations allowed
|
||||
};
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user