From 2a64fa49475b64a7c7bcd560359d5f67180322e3 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Tue, 8 Jun 2010 13:49:40 +0200 Subject: [PATCH] Eigen types must always be passed by reference in order to retain memory alignment. --- test/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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& m) } template -bool test_is_equal(T actual, U expected) +bool test_is_equal(const T& actual, const U& expected) { if (actual==expected) return true;