From effd25ecfdf4dd00793f177b60eaa633562f608c Mon Sep 17 00:00:00 2001 From: conrad Date: Mon, 11 Jan 2021 11:31:12 +1000 Subject: [PATCH] simplifications --- include/armadillo_bits/SpMat_meat.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/armadillo_bits/SpMat_meat.hpp b/include/armadillo_bits/SpMat_meat.hpp index 97088fdf..6cda873f 100644 --- a/include/armadillo_bits/SpMat_meat.hpp +++ b/include/armadillo_bits/SpMat_meat.hpp @@ -5209,7 +5209,7 @@ SpMat::init_batch_std(const Mat& locs, const Mat& vals, const boo bool actually_sorted = true; - if(sort_locations == true) + if(sort_locations) { // check if we really need a time consuming sort @@ -5352,7 +5352,7 @@ SpMat::init_batch_add(const Mat& locs, const Mat& vals, const boo bool actually_sorted = true; - if(sort_locations == true) + if(sort_locations) { // sort_index() uses std::sort() which may use quicksort... so we better // make sure it's not already sorted before taking an O(N^2) sort penalty.