op_max_meat.hpp (armadillo-10.2.0.tar.xz) | : | op_max_meat.hpp (armadillo-10.2.1.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 29 | skipping to change at line 29 | |||
template<typename T1> | template<typename T1> | |||
inline | inline | |||
void | void | |||
op_max::apply(Mat<typename T1::elem_type>& out, const Op<T1,op_max>& in) | op_max::apply(Mat<typename T1::elem_type>& out, const Op<T1,op_max>& in) | |||
{ | { | |||
arma_extra_debug_sigprint(); | arma_extra_debug_sigprint(); | |||
typedef typename T1::elem_type eT; | typedef typename T1::elem_type eT; | |||
const uword dim = in.aux_uword_a; | const uword dim = in.aux_uword_a; | |||
arma_debug_check( (dim > 1), "max(): parameter 'dim' must be 0 or 1"); | arma_debug_check( (dim > 1), "max(): parameter 'dim' must be 0 or 1" ); | |||
const quasi_unwrap<T1> U(in.m); | const quasi_unwrap<T1> U(in.m); | |||
const Mat<eT>& X = U.M; | const Mat<eT>& X = U.M; | |||
if(U.is_alias(out) == false) | if(U.is_alias(out) == false) | |||
{ | { | |||
op_max::apply_noalias(out, X, dim); | op_max::apply_noalias(out, X, dim); | |||
} | } | |||
else | else | |||
{ | { | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |