From 71e580c4aa1f321aa453add4a279ee8d31914590 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 9 Feb 2010 16:38:36 +0100 Subject: fix nesting in Arraywrapper and nesting_ops --- test/nesting_ops.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/nesting_ops.cpp') diff --git a/test/nesting_ops.cpp b/test/nesting_ops.cpp index 565bc3644..831c71da7 100644 --- a/test/nesting_ops.cpp +++ b/test/nesting_ops.cpp @@ -24,8 +24,9 @@ #include "main.h" -template void run_nesting_ops(const MatrixType& m) +template void run_nesting_ops(const MatrixType& _m) { + typename MatrixType::Nested m(_m); typedef typename MatrixType::Scalar Scalar; #ifdef NDEBUG @@ -38,7 +39,7 @@ template void run_nesting_ops(const MatrixType& m) // inlining for these tests to pass. VERIFY(is_debug); - // The only intention of these tests is to ensure that this code does + // The only intention of these tests is to ensure that this code does // not trigger any asserts or segmentation faults... more to come. VERIFY( (m.transpose() * m).diagonal().sum() == (m.transpose() * m).diagonal().sum() ); VERIFY( (m.transpose() * m).diagonal().array().abs().sum() == (m.transpose() * m).diagonal().array().abs().sum() ); -- cgit v1.2.3