Skip to content

Commit 8579b39

Browse files
authored
use .index_min() instead of the deprecated form .min(index) (#436)
1 parent 198525c commit 8579b39

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/ensmallen_bits/fw/atoms.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ class Atoms
9696
// Find possible atom to be deleted.
9797
arma::vec gap = sqTerm -
9898
currentCoeffs % trans(gradient.t() * currentAtoms);
99-
arma::uword ind;
100-
gap.min(ind);
99+
100+
arma::uword ind = gap.index_min();
101101

102102
// Try deleting the atom.
103103
arma::mat newAtoms(currentAtoms.n_rows, currentAtoms.n_cols - 1);

0 commit comments

Comments
 (0)