From 69e7c73b34edbd5ef42dfe2edf4fb3caa0c7c1d0 Mon Sep 17 00:00:00 2001 From: conrad Date: Tue, 20 May 2025 01:03:12 +1000 Subject: [PATCH] take into account inf and nan --- include/armadillo_bits/SpSubview_col_list_meat.hpp | 2 -- include/armadillo_bits/spdiagview_meat.hpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/include/armadillo_bits/SpSubview_col_list_meat.hpp b/include/armadillo_bits/SpSubview_col_list_meat.hpp index 1a1c397c..0450d260 100644 --- a/include/armadillo_bits/SpSubview_col_list_meat.hpp +++ b/include/armadillo_bits/SpSubview_col_list_meat.hpp @@ -253,8 +253,6 @@ SpSubview_col_list::operator*= (const eT val) { arma_debug_sigprint(); - if(val == eT(0)) { (*this).zeros(); return; } - SpMat& m_local = const_cast< SpMat& >(m); const umat& ci = U_ci.M; diff --git a/include/armadillo_bits/spdiagview_meat.hpp b/include/armadillo_bits/spdiagview_meat.hpp index 66166e31..186391e1 100644 --- a/include/armadillo_bits/spdiagview_meat.hpp +++ b/include/armadillo_bits/spdiagview_meat.hpp @@ -134,8 +134,6 @@ spdiagview::operator*=(const eT val) { arma_debug_sigprint(); - if(val == eT(0)) { (*this).zeros(); return; } - SpMat& t_m = const_cast< SpMat& >(m); const uword t_n_elem = n_elem;