From 46be9c9ac14fc951599ecd5dc7cd3c1a44f8b9d5 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Wed, 16 Sep 2009 14:18:30 -0400 Subject: * fix super nasty bug: vector.maxCoeff(&index) didn't work when 'vector' was a row-vector. Fixed by splitting the vector version from the matrix version. * add unit test, the visitors weren't covered by any test!! --- test/redux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/redux.cpp') diff --git a/test/redux.cpp b/test/redux.cpp index 2a0dc97f1..b929fdc0e 100644 --- a/test/redux.cpp +++ b/test/redux.cpp @@ -120,7 +120,7 @@ void test_redux() CALL_SUBTEST( matrixRedux(MatrixXi(8, 12)) ); } for(int i = 0; i < g_repeat; i++) { - CALL_SUBTEST( vectorRedux(VectorXf(5)) ); + CALL_SUBTEST( vectorRedux(VectorX4f()) ); CALL_SUBTEST( vectorRedux(VectorXd(10)) ); CALL_SUBTEST( vectorRedux(VectorXf(33)) ); } -- cgit v1.2.3