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; } }