diff options
author | 2008-10-24 21:42:03 +0000 | |
---|---|---|
committer | 2008-10-24 21:42:03 +0000 | |
commit | 8ea8b481de07169706343f35f928eac845b706fe (patch) | |
tree | 9a082b32a020aebd6df50bf73de275e5e2cdaef8 /Eigen/src/Core/Sum.h | |
parent | 65abb4c52e198c7379ad50655bfaa9d4ddd20c77 (diff) |
As discussed on ML:
* remove the automatic resizing feature of operator =
* add function Matrix::set() to be used when the previous
behavior is wanted
* the default constructor of dynamic-size matrices now
creates a "null" matrix (data=0, rows = cols = 0)
instead of a 1x1 matrix
* fix UnixX typos ;)
Diffstat (limited to 'Eigen/src/Core/Sum.h')
-rw-r--r-- | Eigen/src/Core/Sum.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Eigen/src/Core/Sum.h b/Eigen/src/Core/Sum.h index 12a84e3f1..8679b2b0a 100644 --- a/Eigen/src/Core/Sum.h +++ b/Eigen/src/Core/Sum.h @@ -165,6 +165,7 @@ struct ei_sum_impl<Derived, NoVectorization, NoUnrolling> typedef typename Derived::Scalar Scalar; static Scalar run(const Derived& mat) { + ei_assert(mat.rows()>0 && mat.cols()>0 && "you are using a non initialized matrix"); Scalar res; res = mat.coeff(0, 0); for(int i = 1; i < mat.rows(); i++) |