* 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!!
This commit is contained in:
Benoit Jacob
2009-09-16 14:18:30 -04:00
parent 4a6e5694d6
commit 46be9c9ac1
5 changed files with 170 additions and 4 deletions

View File

@@ -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)) );
}