Skip to content

Commit 2b5a38f

Browse files
committed
Add missing data type.
1 parent 6ed7d8a commit 2b5a38f

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

doc/optimizers.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,11 +1502,12 @@ Frank-Wolfe is a technique to minimize a continuously differentiable convex func
15021502
* `FrankWolfe<`_`LinearConstrSolverType, UpdateRuleType`_`>(`_`linearConstrSolver, updateRule, maxIterations, tolerance`_`)`
15031503
15041504
The _`LinearConstrSolverType`_ template parameter specifies the constraint
1505-
domain D for the problem. The `ConstrLpBallSolver` and
1506-
`ConstrStructGroupSolver<GroupLpBall>` classes are available for use; the former
1507-
restricts D to the unit ball of the specified l-p norm. Other constraint types
1508-
may be implemented as a class with the same method signatures as either of the
1509-
existing classes.
1505+
domain D for the problem. The `ConstrLpBallSolver` (itself a class template,
1506+
`ConstrLpBallSolver<T>`, change `T` if a different matrix type is required)
1507+
and `ConstrStructGroupSolver<GroupLpBall>` classes are available for use; the
1508+
former restricts D to the unit ball of the specified l-p norm. Other constraint
1509+
types may be implemented as a class with the same method signatures as either of
1510+
the existing classes.
15101511
15111512
The _`UpdateRuleType`_ template parameter specifies the update rule used by the
15121513
optimizer. The `UpdateClassic` and `UpdateLineSearch` classes are available for

include/ensmallen_bits/moead/moead_impl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ MOEADType(
8282
differentialWeight(differentialWeight),
8383
maxReplace(maxReplace),
8484
epsilon(epsilon),
85-
lowerBound({ lowerBound })
86-
lowerBound({ upperBound })
85+
lowerBound({ lowerBound }),
86+
lowerBound({ upperBound }),
8787
initPolicy(initPolicy),
8888
decompPolicy(decompPolicy)
8989
{ /* Nothing to do here. */ }

include/ensmallen_bits/smorms3/smorms3_update.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ class SMORMS3Update
8585
const double stepSize,
8686
const GradType& gradient)
8787
{
88+
using eT = typename MatType::elem_type;
89+
8890
if (lr.is_empty() || lr(0) != stepSize)
8991
{
9092
lr.set_size(gradient.n_rows, gradient.n_cols);

0 commit comments

Comments
 (0)