cargo test [tags/v0.2.4]
Compiling argmin v0.2.4 (/home/rth/src/argmin)
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>: argmin::prelude::ArgminMul<f64, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not satisfied
--> examples/trustregion_nd.rs:66:15
|
66 | let res = Executor::new(cost, solver, init_param)
| ^^^^^^^^^^^^^ the trait `argmin::prelude::ArgminMul<f64, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>`
|
= note: required because of the requirements on the impl of `argmin::prelude::Solver<Rosenbrock>` for `argmin::solver::trustregion::TrustRegion<argmin::solver::trustregion::Dogleg>`
= note: required by `argmin::prelude::Executor::<O, S>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>: argmin::prelude::ArgminNorm<f64>` is not satisfied
--> examples/trustregion_nd.rs:66:15
|
66 | let res = Executor::new(cost, solver, init_param)
| ^^^^^^^^^^^^^ the trait `argmin::prelude::ArgminNorm<f64>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>`
|
= note: required because of the requirements on the impl of `argmin::prelude::Solver<Rosenbrock>` for `argmin::solver::trustregion::TrustRegion<argmin::solver::trustregion::Dogleg>`
= note: required by `argmin::prelude::Executor::<O, S>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>: argmin::prelude::ArgminDot<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, f64>` is not satisfied
--> examples/trustregion_nd.rs:66:15
|
66 | let res = Executor::new(cost, solver, init_param)
| ^^^^^^^^^^^^^ the trait `argmin::prelude::ArgminDot<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, f64>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>`
|
= note: required because of the requirements on the impl of `argmin::prelude::Solver<Rosenbrock>` for `argmin::solver::trustregion::TrustRegion<argmin::solver::trustregion::Dogleg>`
= note: required by `argmin::prelude::Executor::<O, S>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>: argmin::prelude::ArgminAdd<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not satisfied
--> examples/trustregion_nd.rs:66:15
|
66 | let res = Executor::new(cost, solver, init_param)
| ^^^^^^^^^^^^^ the trait `argmin::prelude::ArgminAdd<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>`
|
= note: required because of the requirements on the impl of `argmin::prelude::Solver<Rosenbrock>` for `argmin::solver::trustregion::TrustRegion<argmin::solver::trustregion::Dogleg>`
= note: required by `argmin::prelude::Executor::<O, S>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>: argmin::prelude::ArgminSub<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not satisfied
--> examples/trustregion_nd.rs:66:15
|
66 | let res = Executor::new(cost, solver, init_param)
| ^^^^^^^^^^^^^ the trait `argmin::prelude::ArgminSub<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>`
|
= note: required because of the requirements on the impl of `argmin::prelude::Solver<Rosenbrock>` for `argmin::solver::trustregion::TrustRegion<argmin::solver::trustregion::Dogleg>`
= note: required by `argmin::prelude::Executor::<O, S>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>: argmin::prelude::ArgminZeroLike` is not satisfied
--> examples/trustregion_nd.rs:66:15
|
66 | let res = Executor::new(cost, solver, init_param)
| ^^^^^^^^^^^^^ the trait `argmin::prelude::ArgminZeroLike` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>`
|
= note: required because of the requirements on the impl of `argmin::prelude::Solver<Rosenbrock>` for `argmin::solver::trustregion::TrustRegion<argmin::solver::trustregion::Dogleg>`
= note: required by `argmin::prelude::Executor::<O, S>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>: argmin::prelude::ArgminDot<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not satisfied
--> examples/trustregion_nd.rs:66:15
|
66 | let res = Executor::new(cost, solver, init_param)
| ^^^^^^^^^^^^^ the trait `argmin::prelude::ArgminDot<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>`
|
= note: required because of the requirements on the impl of `argmin::prelude::Solver<Rosenbrock>` for `argmin::solver::trustregion::TrustRegion<argmin::solver::trustregion::Dogleg>`
= note: required by `argmin::prelude::Executor::<O, S>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>: argmin::prelude::ArgminInv<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>>` is not satisfied
--> examples/trustregion_nd.rs:66:15
|
66 | let res = Executor::new(cost, solver, init_param)
| ^^^^^^^^^^^^^ the trait `argmin::prelude::ArgminInv<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>`
|
= note: required because of the requirements on the impl of `argmin::prelude::Solver<argmin::prelude::OpWrapper<Rosenbrock>>` for `argmin::solver::trustregion::Dogleg`
= note: required because of the requirements on the impl of `argmin::prelude::Solver<Rosenbrock>` for `argmin::solver::trustregion::TrustRegion<argmin::solver::trustregion::Dogleg>`
= note: required by `argmin::prelude::Executor::<O, S>::new`
error[E0599]: no method named `forward_diff` found for type `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>` in the current scope
--> examples/sr1_trustregion.rs:36:17
|
36 | Ok((*p).forward_diff(&|x| rosenbrock(&x.to_vec(), self.a, self.b)))
| ^^^^^^^^^^^^
error[E0599]: no method named `forward_hessian` found for type `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>` in the current scope
--> examples/sr1_trustregion.rs:45:17
|
45 | Ok((*p).forward_hessian(&|x| self.gradient(&x).unwrap()))
| ^^^^^^^^^^^^^^^
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>: argmin_core::math::ArgminSub<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not satisfied
--> examples/sr1_trustregion.rs:69:15
|
69 | let res = Executor::new(cost, solver, init_param)
| ^^^^^^^^^^^^^ the trait `argmin_core::math::ArgminSub<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>`
|
= note: required because of the requirements on the impl of `argmin_core::Solver<Rosenbrock>` for `argmin::solver::quasinewton::SR1TrustRegion<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>, argmin::solver::trustregion::Steihaug<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>>`
= note: required by `argmin_core::executor::Executor::<O, S>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>: argmin_core::math::ArgminAdd<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not satisfied
--> examples/sr1_trustregion.rs:69:15
|
69 | let res = Executor::new(cost, solver, init_param)
| ^^^^^^^^^^^^^ the trait `argmin_core::math::ArgminAdd<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>`
|
= note: required because of the requirements on the impl of `argmin_core::Solver<Rosenbrock>` for `argmin::solver::quasinewton::SR1TrustRegion<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>, argmin::solver::trustregion::Steihaug<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>>`
= note: required by `argmin_core::executor::Executor::<O, S>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>: argmin_core::math::ArgminDot<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, f64>` is not satisfied
--> examples/sr1_trustregion.rs:69:15
|
69 | let res = Executor::new(cost, solver, init_param)
| ^^^^^^^^^^^^^ the trait `argmin_core::math::ArgminDot<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, f64>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>`
|
= note: required because of the requirements on the impl of `argmin_core::Solver<Rosenbrock>` for `argmin::solver::quasinewton::SR1TrustRegion<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>, argmin::solver::trustregion::Steihaug<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>>`
= note: required by `argmin_core::executor::Executor::<O, S>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>: argmin_core::math::ArgminDot<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>>` is not satisfied
--> examples/sr1_trustregion.rs:69:15
|
69 | let res = Executor::new(cost, solver, init_param)
| ^^^^^^^^^^^^^ the trait `argmin_core::math::ArgminDot<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>`
|
= note: required because of the requirements on the impl of `argmin_core::Solver<Rosenbrock>` for `argmin::solver::quasinewton::SR1TrustRegion<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>, argmin::solver::trustregion::Steihaug<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>>`
= note: required by `argmin_core::executor::Executor::<O, S>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>: argmin_core::math::ArgminNorm<f64>` is not satisfied
--> examples/sr1_trustregion.rs:69:15
|
69 | let res = Executor::new(cost, solver, init_param)
| ^^^^^^^^^^^^^ the trait `argmin_core::math::ArgminNorm<f64>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>`
|
= note: required because of the requirements on the impl of `argmin_core::Solver<Rosenbrock>` for `argmin::solver::quasinewton::SR1TrustRegion<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>, argmin::solver::trustregion::Steihaug<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>>`
= note: required by `argmin_core::executor::Executor::<O, S>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>: argmin_core::math::ArgminZeroLike` is not satisfied
--> examples/sr1_trustregion.rs:69:15
|
69 | let res = Executor::new(cost, solver, init_param)
| ^^^^^^^^^^^^^ the trait `argmin_core::math::ArgminZeroLike` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>`
|
= note: required because of the requirements on the impl of `argmin_core::Solver<Rosenbrock>` for `argmin::solver::quasinewton::SR1TrustRegion<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>, argmin::solver::trustregion::Steihaug<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>>`
= note: required by `argmin_core::executor::Executor::<O, S>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>: argmin_core::math::ArgminMul<f64, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not satisfied
--> examples/sr1_trustregion.rs:69:15
|
69 | let res = Executor::new(cost, solver, init_param)
| ^^^^^^^^^^^^^ the trait `argmin_core::math::ArgminMul<f64, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>`
|
= note: required because of the requirements on the impl of `argmin_core::Solver<Rosenbrock>` for `argmin::solver::quasinewton::SR1TrustRegion<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>, argmin::solver::trustregion::Steihaug<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>>`
= note: required by `argmin_core::executor::Executor::<O, S>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>: argmin_core::math::ArgminSub<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>>` is not satisfied
--> examples/sr1_trustregion.rs:69:15
|
69 | let res = Executor::new(cost, solver, init_param)
| ^^^^^^^^^^^^^ the trait `argmin_core::math::ArgminSub<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>`
|
= note: required because of the requirements on the impl of `argmin_core::Solver<Rosenbrock>` for `argmin::solver::quasinewton::SR1TrustRegion<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>, argmin::solver::trustregion::Steihaug<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>>`
= note: required by `argmin_core::executor::Executor::<O, S>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>: argmin_core::math::ArgminDot<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not satisfied
--> examples/sr1_trustregion.rs:69:15
|
69 | let res = Executor::new(cost, solver, init_param)
| ^^^^^^^^^^^^^ the trait `argmin_core::math::ArgminDot<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>`
|
= note: required because of the requirements on the impl of `argmin_core::Solver<Rosenbrock>` for `argmin::solver::quasinewton::SR1TrustRegion<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>, argmin::solver::trustregion::Steihaug<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>>`
= note: required by `argmin_core::executor::Executor::<O, S>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>: argmin_core::math::ArgminDot<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>>` is not satisfied
--> examples/sr1_trustregion.rs:69:15
|
69 | let res = Executor::new(cost, solver, init_param)
| ^^^^^^^^^^^^^ the trait `argmin_core::math::ArgminDot<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>`
|
= note: required because of the requirements on the impl of `argmin_core::Solver<Rosenbrock>` for `argmin::solver::quasinewton::SR1TrustRegion<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>, argmin::solver::trustregion::Steihaug<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>>`
= note: required by `argmin_core::executor::Executor::<O, S>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>: argmin_core::math::ArgminAdd<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>>` is not satisfied
--> examples/sr1_trustregion.rs:69:15
|
69 | let res = Executor::new(cost, solver, init_param)
| ^^^^^^^^^^^^^ the trait `argmin_core::math::ArgminAdd<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>`
|
= note: required because of the requirements on the impl of `argmin_core::Solver<Rosenbrock>` for `argmin::solver::quasinewton::SR1TrustRegion<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>, argmin::solver::trustregion::Steihaug<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>>`
= note: required by `argmin_core::executor::Executor::<O, S>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>: argmin_core::math::ArgminMul<f64, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>>` is not satisfied
--> examples/sr1_trustregion.rs:69:15
|
69 | let res = Executor::new(cost, solver, init_param)
| ^^^^^^^^^^^^^ the trait `argmin_core::math::ArgminMul<f64, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>`
|
= note: required because of the requirements on the impl of `argmin_core::Solver<Rosenbrock>` for `argmin::solver::quasinewton::SR1TrustRegion<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>, argmin::solver::trustregion::Steihaug<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>>`
= note: required by `argmin_core::executor::Executor::<O, S>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>: argmin_core::math::ArgminMul<f64, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not satisfied
--> examples/sr1_trustregion.rs:61:38
|
61 | let subproblem = Steihaug::new().max_iters(20);
| ^^^^^^^^^ the trait `argmin_core::math::ArgminMul<f64, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>: argmin_core::math::ArgminDot<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, f64>` is not satisfied
--> examples/sr1_trustregion.rs:61:38
|
61 | let subproblem = Steihaug::new().max_iters(20);
| ^^^^^^^^^ the trait `argmin_core::math::ArgminDot<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, f64>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>: argmin_core::math::ArgminAdd<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not satisfied
--> examples/sr1_trustregion.rs:61:38
|
61 | let subproblem = Steihaug::new().max_iters(20);
| ^^^^^^^^^ the trait `argmin_core::math::ArgminAdd<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>: argmin_core::math::ArgminMul<f64, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not satisfied
--> examples/sr1_trustregion.rs:61:22
|
61 | let subproblem = Steihaug::new().max_iters(20);
| ^^^^^^^^^^^^^ the trait `argmin_core::math::ArgminMul<f64, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>`
|
= note: required by `argmin::solver::trustregion::Steihaug::<P>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>: argmin_core::math::ArgminDot<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, f64>` is not satisfied
--> examples/sr1_trustregion.rs:61:22
|
61 | let subproblem = Steihaug::new().max_iters(20);
| ^^^^^^^^^^^^^ the trait `argmin_core::math::ArgminDot<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, f64>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>`
|
= note: required by `argmin::solver::trustregion::Steihaug::<P>::new`
error[E0277]: the trait bound `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>: argmin_core::math::ArgminAdd<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not satisfied
--> examples/sr1_trustregion.rs:61:22
|
61 | let subproblem = Steihaug::new().max_iters(20);
| ^^^^^^^^^^^^^ the trait `argmin_core::math::ArgminAdd<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>, ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>` is not implemented for `ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>`
|
= note: required by `argmin::solver::trustregion::Steihaug::<P>::new`
error[E0599]: no method named `add_observer` found for type `argmin_core::executor::Executor<Rosenbrock, argmin::solver::quasinewton::SR1TrustRegion<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>, argmin::solver::trustregion::Steihaug<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>>>` in the current scope
--> examples/sr1_trustregion.rs:70:10
|
70 | .add_observer(ArgminSlogLogger::term(), ObserverMode::Always)
| ^^^^^^^^^^^^
|
= note: the method `add_observer` exists but the following trait bounds were not satisfied:
`argmin::solver::quasinewton::SR1TrustRegion<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 2]>>, argmin::solver::trustregion::Steihaug<ndarray::ArrayBase<ndarray::OwnedRepr<f64>, ndarray::Dim<[usize; 1]>>>> : argmin_core::Solver<Rosenbrock>`
error[E0599]: no method named `add_observer` found for type `argmin::prelude::Executor<Rosenbrock, argmin::solver::trustregion::TrustRegion<argmin::solver::trustregion::Dogleg>>` in the current scope
--> examples/trustregion_nd.rs:67:10
|
67 | .add_observer(ArgminSlogLogger::term(), ObserverMode::Always)
| ^^^^^^^^^^^^
|
= note: the method `add_observer` exists but the following trait bounds were not satisfied:
`argmin::solver::trustregion::TrustRegion<argmin::solver::trustregion::Dogleg> : argmin::prelude::Solver<Rosenbrock>`
warning: unused import: `argmin_core::finitediff`
--> examples/sr1_trustregion.rs:15:5
|
15 | use argmin_core::finitediff::*;
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default
error: aborting due to 21 previous errors
Some errors occurred: E0277, E0599.
For more information about an error, try `rustc --explain E0277`.
error: aborting due to 9 previous errors
Some errors occurred: E0277, E0599.
For more information about an error, try `rustc --explain E0277`.
error: Could not compile `argmin`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `argmin`.
warning: build failed, waiting for other jobs to finish...
error: build failed