mirror of
https://github.com/Relintai/pmlpp.git
synced 2024-11-08 13:12:09 +01:00
Fixed typo in MLPPVector::min_element() and MLPPVector::min_element_index().
This commit is contained in:
parent
f409265513
commit
edb6cd4dbf
@ -1208,7 +1208,7 @@ real_t MLPPVector::min_element() const {
|
||||
for (int i = 0; i < _size; i++) {
|
||||
real_t current_element = aa[i];
|
||||
|
||||
if (current_element > min_element) {
|
||||
if (current_element < min_element) {
|
||||
min_element = current_element;
|
||||
}
|
||||
}
|
||||
@ -1224,7 +1224,7 @@ int MLPPVector::min_element_index() const {
|
||||
for (int i = 0; i < _size; i++) {
|
||||
real_t current_element = aa[i];
|
||||
|
||||
if (current_element > min_element) {
|
||||
if (current_element < min_element) {
|
||||
min_element = current_element;
|
||||
index = i;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user