From 9f419fc2eb7070e2a0b4fc1ccc92f5b26d96fa92 Mon Sep 17 00:00:00 2001 From: conrad Date: Sun, 18 Sep 2022 11:44:29 +1000 Subject: [PATCH] rearrange --- include/armadillo_bits/fn_powext.hpp | 92 +++++++++++++++------------- 1 file changed, 48 insertions(+), 44 deletions(-) diff --git a/include/armadillo_bits/fn_powext.hpp b/include/armadillo_bits/fn_powext.hpp index d723f2dc..c4bba354 100644 --- a/include/armadillo_bits/fn_powext.hpp +++ b/include/armadillo_bits/fn_powext.hpp @@ -43,28 +43,6 @@ pow -template -arma_warn_unused -arma_inline -typename -enable_if2 - < - ( is_arma_type::value && is_cx::yes ), - const mtGlue - >::result -pow - ( - const T1& X, - const Base& Y - ) - { - arma_extra_debug_sigprint(); - - return mtGlue(X, Y.get_ref()); - } - - - template arma_warn_unused inline @@ -82,28 +60,6 @@ pow -template -arma_warn_unused -inline -typename -enable_if2 - < - is_cx::yes, - Mat - >::result -pow - ( - const subview_each1& X, - const Base& Y - ) - { - arma_extra_debug_sigprint(); - - return glue_powext_cx::apply(X,Y); - } - - - template arma_warn_unused arma_inline @@ -138,4 +94,52 @@ pow +// + + + +template +arma_warn_unused +arma_inline +typename +enable_if2 + < + ( is_arma_type::value && is_cx::yes ), + const mtGlue + >::result +pow + ( + const T1& X, + const Base& Y + ) + { + arma_extra_debug_sigprint(); + + return mtGlue(X, Y.get_ref()); + } + + + +template +arma_warn_unused +inline +typename +enable_if2 + < + is_cx::yes, + Mat + >::result +pow + ( + const subview_each1& X, + const Base& Y + ) + { + arma_extra_debug_sigprint(); + + return glue_powext_cx::apply(X,Y); + } + + + //! @}