We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 198525c commit 8579b39Copy full SHA for 8579b39
1 file changed
include/ensmallen_bits/fw/atoms.hpp
@@ -96,8 +96,8 @@ class Atoms
96
// Find possible atom to be deleted.
97
arma::vec gap = sqTerm -
98
currentCoeffs % trans(gradient.t() * currentAtoms);
99
- arma::uword ind;
100
- gap.min(ind);
+
+ arma::uword ind = gap.index_min();
101
102
// Try deleting the atom.
103
arma::mat newAtoms(currentAtoms.n_rows, currentAtoms.n_cols - 1);
0 commit comments