Skip to content

Commit

Permalink
Merge pull request argmin-rs#73 from vadixidav/master
Browse files Browse the repository at this point in the history
remove unecessary Default bound on NelderMead
  • Loading branch information
stefan-k authored Oct 13, 2020
2 parents 68c282f + 847188f commit 1ac788f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/solver/neldermead/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub struct NelderMead<P, F> {

impl<P, F> NelderMead<P, F>
where
P: Clone + Default + ArgminAdd<P, P> + ArgminSub<P, P> + ArgminMul<F, P>,
P: Clone + ArgminAdd<P, P> + ArgminSub<P, P> + ArgminMul<F, P>,
F: ArgminFloat,
{
/// Constructor
Expand Down Expand Up @@ -182,7 +182,7 @@ where

impl<P, F> Default for NelderMead<P, F>
where
P: Clone + Default + ArgminAdd<P, P> + ArgminSub<P, P> + ArgminMul<F, P>,
P: Clone + ArgminAdd<P, P> + ArgminSub<P, P> + ArgminMul<F, P>,
F: ArgminFloat,
{
fn default() -> NelderMead<P, F> {
Expand All @@ -193,8 +193,7 @@ where
impl<O, P, F> Solver<O> for NelderMead<P, F>
where
O: ArgminOp<Output = F, Param = P, Float = F>,
P: Default
+ Clone
P: Clone
+ Serialize
+ DeserializeOwned
+ ArgminScaledSub<O::Param, O::Float, O::Param>
Expand Down

0 comments on commit 1ac788f

Please sign in to comment.