Skip to content

Commit

Permalink
Fixed error when using recent nightly compiler which requires type an…
Browse files Browse the repository at this point in the history
…notations (argmin-rs#106)
  • Loading branch information
stefan-k authored Apr 15, 2021
1 parent 050303b commit bce7271
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/solver/particleswarm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ where
impl<O, P, F> Solver<O> for ParticleSwarm<P, F>
where
O: ArgminOp<Output = F, Param = P, Float = F>,
O::Param: Position<F> + DeserializeOwned + Serialize,
P: Position<F> + DeserializeOwned + Serialize,
O::Hessian: Clone + Default,
F: ArgminFloat,
{
Expand Down
2 changes: 1 addition & 1 deletion src/solver/quasinewton/bfgs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ where
+ ArgminScaledAdd<O::Param, O::Float, O::Param>
+ ArgminNorm<O::Float>
+ ArgminMul<O::Float, O::Param>,
O::Hessian: Clone
H: Clone
+ Default
+ Debug
+ Serialize
Expand Down
2 changes: 1 addition & 1 deletion src/solver/quasinewton/dfp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ where
+ ArgminNorm<O::Float>
+ ArgminMul<O::Float, O::Param>
+ ArgminTranspose<O::Param>,
O::Hessian: Clone
H: Clone
+ Default
+ Serialize
+ DeserializeOwned
Expand Down
2 changes: 1 addition & 1 deletion src/solver/quasinewton/sr1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ where
+ ArgminDot<O::Param, O::Hessian>
+ ArgminNorm<O::Float>
+ ArgminMul<O::Float, O::Param>,
O::Hessian: Debug
H: Debug
+ Clone
+ Default
+ Serialize
Expand Down
2 changes: 1 addition & 1 deletion src/solver/quasinewton/sr1_trustregion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ where
+ ArgminNorm<O::Float>
+ ArgminZeroLike
+ ArgminMul<F, O::Param>,
O::Hessian: Debug
B: Debug
+ Clone
+ Default
+ Serialize
Expand Down

0 comments on commit bce7271

Please sign in to comment.