diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-08-23 17:11:44 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-08-23 17:11:44 +0000 |
commit | f2f48b6560b1921c6847bd91b68da9825419d0a3 (patch) | |
tree | e4081e9c63df924e5216081216c3ddfb14db0ed0 /test | |
parent | 2120fed849e1d00724694a2c8a041ec5561c750b (diff) |
* remove LargeBit and related stuff
* replaced the Flags template parameter of Matrix by StorageOrder
and move it back to the 4th position such that we don't have to
worry about the two Max* template parameters
* extended EIGEN_USING_MATRIX_TYPEDEFS with the ei_* math functions
Diffstat (limited to 'test')
-rw-r--r-- | test/commainitializer.cpp | 2 | ||||
-rw-r--r-- | test/product.h | 3 | ||||
-rw-r--r-- | test/product_large.cpp | 6 |
3 files changed, 3 insertions, 8 deletions
diff --git a/test/commainitializer.cpp b/test/commainitializer.cpp index 257ecc21f..a93a57d8f 100644 --- a/test/commainitializer.cpp +++ b/test/commainitializer.cpp @@ -33,7 +33,7 @@ void test_commainitializer() VERIFY_RAISES_ASSERT( (m3 << 1, 2, 3, 4, 5, 6, 7, 8, 9, 10) ); double data[] = {1, 2, 3, 4, 5, 6, 7, 8, 9}; - Matrix3d ref = Map<Matrix<double,3,3,3,3,RowMajorBit> >(data); + Matrix3d ref = Map<Matrix<double,3,3,RowMajor> >(data); m3 = Matrix3d::Random(); m3 << 1, 2, 3, 4, 5, 6, 7, 8, 9; diff --git a/test/product.h b/test/product.h index 374994576..f1a16cf1f 100644 --- a/test/product.h +++ b/test/product.h @@ -46,8 +46,7 @@ template<typename MatrixType> void product(const MatrixType& m) typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> RowSquareMatrixType; typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, MatrixType::ColsAtCompileTime> ColSquareMatrixType; typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::ColsAtCompileTime, - MatrixType::RowsAtCompileTime, MatrixType::ColsAtCompileTime, - MatrixType::Flags&RowMajorBit ? 0 : RowMajorBit> OtherMajorMatrixType; + MatrixType::Flags&RowMajorBit> OtherMajorMatrixType; int rows = m.rows(); int cols = m.cols(); diff --git a/test/product_large.cpp b/test/product_large.cpp index 904cf5a0b..b85fd0954 100644 --- a/test/product_large.cpp +++ b/test/product_large.cpp @@ -31,10 +31,6 @@ void test_product_large() CALL_SUBTEST( product(MatrixXd(ei_random<int>(1,320), ei_random<int>(1,320))) ); CALL_SUBTEST( product(MatrixXi(ei_random<int>(1,320), ei_random<int>(1,320))) ); CALL_SUBTEST( product(MatrixXcf(ei_random<int>(1,50), ei_random<int>(1,50))) ); - #ifndef EIGEN_DEFAULT_TO_ROW_MAJOR - CALL_SUBTEST( product(Matrix<float,Dynamic,Dynamic,Dynamic,Dynamic,RowMajorBit>(ei_random<int>(1,320), ei_random<int>(1,320))) ); - #else - CALL_SUBTEST( product(Matrix<float,Dynamic,Dynamic,Dynamic,Dynamic,0>(ei_random<int>(1,320), ei_random<int>(1,320))) ); - #endif + CALL_SUBTEST( product(Matrix<float,Dynamic,Dynamic,RowMajor>(ei_random<int>(1,320), ei_random<int>(1,320))) ); } } |