Make size odd for transposeInPlace test to make sure we hit the scalar path.

This commit is contained in:
Rasmus Munk Larsen 2020-05-07 17:29:56 +00:00
parent 49f1aeb60d
commit 74ec8e6618

View File

@ -496,7 +496,7 @@ template<typename ArrayType> void array_complex(const ArrayType& m)
m2.transposeInPlace();
VERIFY_IS_APPROX(m2, m1);
// Check vectorized inplace transpose.
ArrayType m5 = ArrayType::Random(130, 130);
ArrayType m5 = ArrayType::Random(131, 131);
ArrayType m6 = m5;
m6.transposeInPlace();
VERIFY_IS_APPROX(m6, m5.transpose());