aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/array_cwise.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/array_cwise.cpp')
-rw-r--r--test/array_cwise.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/array_cwise.cpp b/test/array_cwise.cpp
index e7af1a92f..950cc9650 100644
--- a/test/array_cwise.cpp
+++ b/test/array_cwise.cpp
@@ -495,7 +495,11 @@ template<typename ArrayType> void array_complex(const ArrayType& m)
VERIFY_IS_APPROX(m2, m1.transpose());
m2.transposeInPlace();
VERIFY_IS_APPROX(m2, m1);
-
+ // Check vectorized inplace transpose.
+ ArrayType m5 = ArrayType::Random(130, 130);
+ ArrayType m6 = m5;
+ m6.transposeInPlace();
+ VERIFY_IS_APPROX(m6, m5.transpose());
}
template<typename ArrayType> void min_max(const ArrayType& m)