diff options
author | 2008-08-22 17:48:36 +0000 | |
---|---|---|
committer | 2008-08-22 17:48:36 +0000 | |
commit | f0394edfa7d063e37256e673cdecacd9f55f44ae (patch) | |
tree | a2e36374f3f51fc74f0d64c403f4368c8ae55d54 /test/cwiseop.cpp | |
parent | a95c1e190b6963543950f4b7831fcc0b844bd95f (diff) |
* bugfix in SolveTriangular found by Timothy Hunter (did not compiled for very small fixed size matrices)
* bugfix in Dot unroller
* added special random generator for the unit tests and reduced the tolerance threshold by an order of magnitude
this fixes issues with sum.cpp but other tests still failed sometimes, this have to be carefully checked...
Diffstat (limited to 'test/cwiseop.cpp')
-rw-r--r-- | test/cwiseop.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/cwiseop.cpp b/test/cwiseop.cpp index 6e94d4b29..e08e7c00e 100644 --- a/test/cwiseop.cpp +++ b/test/cwiseop.cpp @@ -42,17 +42,16 @@ template<typename MatrixType> void cwiseops(const MatrixType& m) int rows = m.rows(); int cols = m.cols(); - MatrixType m1 = MatrixType::Random(rows, cols), - m2 = MatrixType::Random(rows, cols), + MatrixType m1 = test_random_matrix<MatrixType>(rows, cols), + m2 = test_random_matrix<MatrixType>(rows, cols), m3(rows, cols), mzero = MatrixType::Zero(rows, cols), mones = MatrixType::Ones(rows, cols), identity = Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> ::Identity(rows, rows), - square = Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> - ::Random(rows, rows); - VectorType v1 = VectorType::Random(rows), - v2 = VectorType::Random(rows), + square = test_random_matrix<Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> >(rows, rows); + VectorType v1 = test_random_matrix<VectorType>(rows), + v2 = test_random_matrix<VectorType>(rows), vzero = VectorType::Zero(rows); m2 = m2.template binaryExpr<AddIfNull<Scalar> >(mones); |