Eigen types must always be passed by reference in order to retain memory alignment.

This commit is contained in:
Hauke Heibel 2010-06-08 13:49:40 +02:00
parent 4b5d359c3a
commit 2a64fa4947

View File

@ -368,7 +368,7 @@ inline bool test_isUnitary(const MatrixBase<Derived>& m)
} }
template<typename T, typename U> template<typename T, typename U>
bool test_is_equal(T actual, U expected) bool test_is_equal(const T& actual, const U& expected)
{ {
if (actual==expected) if (actual==expected)
return true; return true;