From 8becbe085a20b1f1119a259933b37f8bb226fb0a Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 26 Dec 2023 23:37:45 +0100 Subject: [PATCH] Fixed typo in MLPPLinAlg::minvr. --- mlpp/lin_alg/lin_alg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlpp/lin_alg/lin_alg.cpp b/mlpp/lin_alg/lin_alg.cpp index c324fba..6f2bb19 100644 --- a/mlpp/lin_alg/lin_alg.cpp +++ b/mlpp/lin_alg/lin_alg.cpp @@ -1565,7 +1565,7 @@ real_t MLPPLinAlg::minvr(const Ref &a) { for (int i = 0; i < a_size; i++) { real_t current_element = aa[i]; - if (current_element > min_element) { + if (current_element < min_element) { min_element = current_element; } }