simplifications

This commit is contained in:
conrad
2025-06-11 15:04:22 +10:00
parent 91b5f68bed
commit 0731de2367
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ internal_randperm_helper(obj_type& x, const uword N, const uword N_keep)
std::vector<packet> packet_vec(N);
podarray<int> tmp(N, arma_nozeros_indicator());
podarray<int> tmp(N);
int* tmp_mem = tmp.memptr();
+1 -1
View File
@@ -237,7 +237,7 @@ op_mean::apply_noalias(Cube<eT>& out, const Cube<eT>& X, const uword dim)
if(out.internal_has_nonfinite())
{
podarray<eT> tmp(X_n_slices, arma_nozeros_indicator());
podarray<eT> tmp(X_n_slices);
for(uword col=0; col < X_n_cols; ++col)
for(uword row=0; row < X_n_rows; ++row)
+1 -1
View File
@@ -40,7 +40,7 @@ op_shuffle::apply_direct(Mat<eT>& out, const Mat<eT>& X, const uword dim)
std::vector<packet> packet_vec(N);
podarray<int> tmp(N, arma_nozeros_indicator());
podarray<int> tmp(N);
int* tmp_mem = tmp.memptr();
@@ -485,7 +485,7 @@ subview_elem1<eT,T1>::randu()
const uword* aa_mem = aa.memptr();
const uword aa_n_elem = aa.n_elem;
podarray<eT> tmp(aa_n_elem, arma_nozeros_indicator());
podarray<eT> tmp(aa_n_elem);
eT* tmp_mem = tmp.memptr();
@@ -526,7 +526,7 @@ subview_elem1<eT,T1>::randn()
const uword* aa_mem = aa.memptr();
const uword aa_n_elem = aa.n_elem;
podarray<eT> tmp(aa_n_elem, arma_nozeros_indicator());
podarray<eT> tmp(aa_n_elem);
eT* tmp_mem = tmp.memptr();
@@ -331,7 +331,7 @@ subview_elem2<eT,T1,T2>::randu()
const uword* ci_mem = ci.memptr();
const uword ci_n_elem = ci.n_elem;
podarray<eT> tmp(ri_n_elem, arma_nozeros_indicator());
podarray<eT> tmp(ri_n_elem);
eT* tmp_mem = tmp.memptr();
@@ -394,7 +394,7 @@ subview_elem2<eT,T1,T2>::randu()
const uword* ri_mem = ri.memptr();
const uword ri_n_elem = ri.n_elem;
podarray<eT> tmp(ri_n_elem, arma_nozeros_indicator());
podarray<eT> tmp(ri_n_elem);
eT* tmp_mem = tmp.memptr();
@@ -448,7 +448,7 @@ subview_elem2<eT,T1,T2>::randn()
const uword* ci_mem = ci.memptr();
const uword ci_n_elem = ci.n_elem;
podarray<eT> tmp(ri_n_elem, arma_nozeros_indicator());
podarray<eT> tmp(ri_n_elem);
eT* tmp_mem = tmp.memptr();
@@ -511,7 +511,7 @@ subview_elem2<eT,T1,T2>::randn()
const uword* ri_mem = ri.memptr();
const uword ri_n_elem = ri.n_elem;
podarray<eT> tmp(ri_n_elem, arma_nozeros_indicator());
podarray<eT> tmp(ri_n_elem);
eT* tmp_mem = tmp.memptr();