From e2e66930c67673f34d812e126f0100891af7e0d2 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 16 Jun 2015 14:40:55 +0200 Subject: [PATCH] Fix compilation of alignedvector3 unit test --- unsupported/test/alignedvector3.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/unsupported/test/alignedvector3.cpp b/unsupported/test/alignedvector3.cpp index fc2bc2135..0e6226ad3 100644 --- a/unsupported/test/alignedvector3.cpp +++ b/unsupported/test/alignedvector3.cpp @@ -10,6 +10,16 @@ #include "main.h" #include +namespace Eigen { + +template +T test_relative_error(const AlignedVector3 &a, const MatrixBase &b) +{ + return test_relative_error(a.coeffs().template head<3>(), b); +} + +} + template void alignedvector3() {