Finally fixed the matrix function/exponential warning.

Index fixes.
This commit is contained in:
Hauke Heibel
2010-06-20 23:13:24 +02:00
parent 69b50047d6
commit bb46a45340
4 changed files with 19 additions and 15 deletions

View File

@@ -49,11 +49,12 @@ bool equalsIdentity(const MatrixType& A)
template<typename VectorType>
void testVectorType(const VectorType& base)
{
typedef typename ei_traits<VectorType>::Index Index;
typedef typename ei_traits<VectorType>::Scalar Scalar;
Scalar low = ei_random<Scalar>(-500,500);
Scalar high = ei_random<Scalar>(-500,500);
if (low>high) std::swap(low,high);
const int size = base.size();
const Index size = base.size();
const Scalar step = (high-low)/(size-1);
// check whether the result yields what we expect it to do