From 016138293a9abb28657e4295e2aedf08d45d6fa6 Mon Sep 17 00:00:00 2001 From: conrad Date: Sun, 3 Jul 2022 13:16:18 +1000 Subject: [PATCH] zero out last_indx for consistency --- include/armadillo_bits/gmm_full_meat.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/armadillo_bits/gmm_full_meat.hpp b/include/armadillo_bits/gmm_full_meat.hpp index d05e5aa2..3e3abc5c 100644 --- a/include/armadillo_bits/gmm_full_meat.hpp +++ b/include/armadillo_bits/gmm_full_meat.hpp @@ -2190,6 +2190,7 @@ gmm_full::km_iterate(const Mat& 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();