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); + } + + + //! @}