diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-10-24 21:42:03 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-10-24 21:42:03 +0000 |
commit | 8ea8b481de07169706343f35f928eac845b706fe (patch) | |
tree | 9a082b32a020aebd6df50bf73de275e5e2cdaef8 /test/product.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 'test/product.h')
-rw-r--r-- | test/product.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/product.h b/test/product.h index f1a16cf1f..5ca56d995 100644 --- a/test/product.h +++ b/test/product.h @@ -67,7 +67,7 @@ template<typename MatrixType> void product(const MatrixType& m) RowVectorType v1 = RowVectorType::Random(rows), v2 = RowVectorType::Random(rows), vzero = RowVectorType::Zero(rows); - ColVectorType vc2 = ColVectorType::Random(cols), vcres; + ColVectorType vc2 = ColVectorType::Random(cols), vcres(cols); OtherMajorMatrixType tm1 = m1; Scalar s1 = ei_random<Scalar>(); |