diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-02-09 16:38:36 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-02-09 16:38:36 +0100 |
commit | 71e580c4aa1f321aa453add4a279ee8d31914590 (patch) | |
tree | 1c172687092989b407d8788d03bea5dcf391d601 /test/nesting_ops.cpp | |
parent | 905050b2392681ffb9b0f98b9fd6e738a562ae76 (diff) |
fix nesting in Arraywrapper and nesting_ops
Diffstat (limited to 'test/nesting_ops.cpp')
-rw-r--r-- | test/nesting_ops.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 <typename MatrixType> void run_nesting_ops(const MatrixType& m) +template <typename MatrixType> void run_nesting_ops(const MatrixType& _m) { + typename MatrixType::Nested m(_m); typedef typename MatrixType::Scalar Scalar; #ifdef NDEBUG @@ -38,7 +39,7 @@ template <typename MatrixType> 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() ); |