Fixed bug #79.

This commit is contained in:
Hauke Heibel
2010-10-19 09:43:54 +02:00
parent 3481f10e7a
commit 9f8b6ad43e
2 changed files with 27 additions and 2 deletions

View File

@@ -71,6 +71,9 @@ void testVectorType(const VectorType& base)
m = VectorType::LinSpaced(size,low,high);
VERIFY( (m-n).norm() < std::numeric_limits<Scalar>::epsilon()*10e3 );
// Assignment of a RowVectorXd to a MatrixXd (regression test for bug #79).
VERIFY( (MatrixXd(RowVectorXd::LinSpaced(3, 0, 1)) - RowVector3d(0, 0.5, 1)).norm() < std::numeric_limits<Scalar>::epsilon() );
// These guys sometimes fail! This is not good. Any ideas how to fix them!?
//VERIFY( m(m.size()-1) == high );
//VERIFY( m(0) == low );