aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/main.h
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-06-08 13:49:40 +0200
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-06-08 13:49:40 +0200
commit2a64fa49475b64a7c7bcd560359d5f67180322e3 (patch)
tree15651b15e265129a29ad8d6f8ca912a33d598fd5 /test/main.h
parent4b5d359c3afc2caf5f2f89e2f44f13243bacb5f7 (diff)
Eigen types must always be passed by reference in order to retain memory alignment.
Diffstat (limited to 'test/main.h')
-rw-r--r--test/main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/main.h b/test/main.h
index d1a68befb..184a35b15 100644
--- a/test/main.h
+++ b/test/main.h
@@ -368,7 +368,7 @@ inline bool test_isUnitary(const MatrixBase<Derived>& m)
}
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)
return true;