zero out last_indx for consistency

This commit is contained in:
conrad
2022-07-03 13:16:18 +10:00
parent 7a730fac99
commit 016138293a
+1
View File
@@ -2190,6 +2190,7 @@ gmm_full<eT>::km_iterate(const Mat<eT>& X, const uword max_iter, const bool verb
{
acc_hefts.zeros();
acc_means.zeros();
last_indx.zeros();
uword* acc_hefts_mem = acc_hefts.memptr();
uword* last_indx_mem = last_indx.memptr();