diff --git a/include/armadillo_bits/op_htrans_meat.hpp b/include/armadillo_bits/op_htrans_meat.hpp index e3a4c31d..4eb7087d 100644 --- a/include/armadillo_bits/op_htrans_meat.hpp +++ b/include/armadillo_bits/op_htrans_meat.hpp @@ -354,7 +354,7 @@ op_htrans::apply_direct(Mat& out, const T1& X) arma_extra_debug_sigprint(); // allow detection of in-place transpose - if(is_Mat::value || is_Mat::stored_type>::value) + if(is_Mat::value || is_Mat::stored_type>::value || (arma_config::openmp && Proxy::use_mp)) { const unwrap U(X); diff --git a/include/armadillo_bits/op_strans_meat.hpp b/include/armadillo_bits/op_strans_meat.hpp index 5f69c7c9..45c2c01f 100644 --- a/include/armadillo_bits/op_strans_meat.hpp +++ b/include/armadillo_bits/op_strans_meat.hpp @@ -447,7 +447,7 @@ op_strans::apply_direct(Mat& out, const T1& X) arma_extra_debug_sigprint(); // allow detection of in-place transpose - if(is_Mat::value || is_Mat::stored_type>::value) + if(is_Mat::value || is_Mat::stored_type>::value || (arma_config::openmp && Proxy::use_mp)) { const unwrap U(X);