allow use of openmp while transposing compound expressions

This commit is contained in:
conrad
2021-05-10 22:59:20 +10:00
parent 76d54d89bf
commit 9394ff58ec
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -354,7 +354,7 @@ op_htrans::apply_direct(Mat<typename T1::elem_type>& out, const T1& X)
arma_extra_debug_sigprint();
// allow detection of in-place transpose
if(is_Mat<T1>::value || is_Mat<typename Proxy<T1>::stored_type>::value)
if(is_Mat<T1>::value || is_Mat<typename Proxy<T1>::stored_type>::value || (arma_config::openmp && Proxy<T1>::use_mp))
{
const unwrap<T1> U(X);
+1 -1
View File
@@ -447,7 +447,7 @@ op_strans::apply_direct(Mat<typename T1::elem_type>& out, const T1& X)
arma_extra_debug_sigprint();
// allow detection of in-place transpose
if(is_Mat<T1>::value || is_Mat<typename Proxy<T1>::stored_type>::value)
if(is_Mat<T1>::value || is_Mat<typename Proxy<T1>::stored_type>::value || (arma_config::openmp && Proxy<T1>::use_mp))
{
const unwrap<T1> U(X);