diff options
author | Gael Guennebaud <g.gael@free.fr> | 2009-12-16 11:41:16 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2009-12-16 11:41:16 +0100 |
commit | 6db6774c4685b997ab4343e5c5b4d48af84e45e7 (patch) | |
tree | 6e0a2bb73d959179b735a7cebb588cb72cdef570 /test/adjoint.cpp | |
parent | 0d8ffe5240e4324a6ada046eeb2c2bb25b36af9a (diff) |
* fix aliasing checks when the lhs is also transposed. At the same time,
significantly simplify the code of these checks while extending them
to catch much more expressions!
* move the enabling/disabling of vectorized sin/cos to the architecture traits
Diffstat (limited to 'test/adjoint.cpp')
-rw-r--r-- | test/adjoint.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/adjoint.cpp b/test/adjoint.cpp index 344399257..b34112249 100644 --- a/test/adjoint.cpp +++ b/test/adjoint.cpp @@ -128,6 +128,14 @@ void test_adjoint() VERIFY_RAISES_ASSERT(a = a.adjoint()); VERIFY_RAISES_ASSERT(a = a.adjoint() + b); VERIFY_RAISES_ASSERT(a = b + a.adjoint()); + + // no assertion should be triggered for these cases: + a.transpose() = a.transpose(); + a.transpose() += a.transpose(); + a.transpose() += a.transpose() + b; + a.transpose() = a.adjoint(); + a.transpose() += a.adjoint(); + a.transpose() += a.adjoint() + b; } #endif } |