Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ndarray version limitation (0.15.6)? #558

Closed
humphreylee opened this issue Jan 23, 2025 · 1 comment
Closed

ndarray version limitation (0.15.6)? #558

humphreylee opened this issue Jan 23, 2025 · 1 comment

Comments

@humphreylee
Copy link

Just curious if ndarray version is designed/tested/limited to only max 0.15.6 at the moment? I tried version 0.16.0 or 0.16.1, compiling the same code spits tons of error. As MWE, I use this repository's lbfgs example, with updated Cargo.toml ndarray to 0.16.1, the following error appeared.

error[E0277]: the trait bound `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminSub<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>` is not satisfied
  --> src\main.rs:50:35
   |
50 |     let res = Executor::new(cost, solver)
   |               -------------       ^^^^^^ unsatisfied trait bound
   |               |
   |               required by a bound introduced by this call
   |
   = help: the trait `argmin_math::ArgminSub<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>` is not implemented for `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>`
   = help: the following other types implement trait `argmin_math::ArgminSub<T, U>`:
             `Vec<Vec<f32>>` implements `argmin_math::ArgminSub<Vec<Vec<f32>>, Vec<Vec<f32>>>`
             `Vec<Vec<f32>>` implements `argmin_math::ArgminSub<f32, Vec<Vec<f32>>>`
             `Vec<Vec<f64>>` implements `argmin_math::ArgminSub<Vec<Vec<f64>>, Vec<Vec<f64>>>`
             `Vec<Vec<f64>>` implements `argmin_math::ArgminSub<f64, Vec<Vec<f64>>>`
             `Vec<Vec<i16>>` implements `argmin_math::ArgminSub<Vec<Vec<i16>>, Vec<Vec<i16>>>`
             `Vec<Vec<i16>>` implements `argmin_math::ArgminSub<i16, Vec<Vec<i16>>>`
             `Vec<Vec<i32>>` implements `argmin_math::ArgminSub<Vec<Vec<i32>>, Vec<Vec<i32>>>`
             `Vec<Vec<i32>>` implements `argmin_math::ArgminSub<i32, Vec<Vec<i32>>>`
           and 172 others
   = note: required for `LBFGS<MoreThuenteLineSearch<ArrayBase<..., ...>, ..., ...>, ..., ..., ...>` to implement `Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
note: required by a bound in `Executor::<O, S, I>::new`
  --> C:\Users\User1\.cargo\registry\src\index.crates.io-6f17d22bba15001f\argmin-0.10.0\src\core\executor.rs:39:8
   |
39 |     S: Solver<O, I>,
   |        ^^^^^^^^^^^^ required by this bound in `Executor::<O, S, I>::new`
...
63 |     pub fn new(problem: O, solver: S) -> Self {
   |            --- required by a bound in this associated function
   = note: the full name for the type has been written to 'C:\Users\User1\lbfgs\target\debug\deps\argmin_ndarray-12712dea92587807.long-type-917791017746136411.txt'
   = note: consider using `--verbose` to print the full type name to the console

error[E0277]: the trait bound `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminSub<f64, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>` is not satisfied
  --> src\main.rs:50:35
   |
50 |     let res = Executor::new(cost, solver)
   |               -------------       ^^^^^^ the trait `argmin_math::ArgminSub<f64, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>` is not implemented for `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>`
   |               |
   |               required by a bound introduced by this call
   |
   = help: the following other types implement trait `argmin_math::ArgminSub<T, U>`:
             `Vec<Vec<f32>>` implements `argmin_math::ArgminSub<Vec<Vec<f32>>, Vec<Vec<f32>>>`
             `Vec<Vec<f32>>` implements `argmin_math::ArgminSub<f32, Vec<Vec<f32>>>`
             `Vec<Vec<f64>>` implements `argmin_math::ArgminSub<Vec<Vec<f64>>, Vec<Vec<f64>>>`
             `Vec<Vec<f64>>` implements `argmin_math::ArgminSub<f64, Vec<Vec<f64>>>`
             `Vec<Vec<i16>>` implements `argmin_math::ArgminSub<Vec<Vec<i16>>, Vec<Vec<i16>>>`
             `Vec<Vec<i16>>` implements `argmin_math::ArgminSub<i16, Vec<Vec<i16>>>`
             `Vec<Vec<i32>>` implements `argmin_math::ArgminSub<Vec<Vec<i32>>, Vec<Vec<i32>>>`
             `Vec<Vec<i32>>` implements `argmin_math::ArgminSub<i32, Vec<Vec<i32>>>`
           and 172 others
   = note: required for `LBFGS<MoreThuenteLineSearch<ArrayBase<..., ...>, ..., ...>, ..., ..., ...>` to implement `Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
note: required by a bound in `Executor::<O, S, I>::new`
  --> C:\Users\User1\.cargo\registry\src\index.crates.io-6f17d22bba15001f\argmin-0.10.0\src\core\executor.rs:39:8
   |
39 |     S: Solver<O, I>,
   |        ^^^^^^^^^^^^ required by this bound in `Executor::<O, S, I>::new`
...
63 |     pub fn new(problem: O, solver: S) -> Self {
   |            --- required by a bound in this associated function
   = note: the full name for the type has been written to 'C:\Users\User1\lbfgs\target\debug\deps\argmin_ndarray-12712dea92587807.long-type-917791017746136411.txt'
   = note: consider using `--verbose` to print the full type name to the console

error[E0277]: the trait bound `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminAdd<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>` is not satisfied
  --> src\main.rs:50:35
   |
50 |     let res = Executor::new(cost, solver)
   |               -------------       ^^^^^^ unsatisfied trait bound
   |               |
   |               required by a bound introduced by this call
   |
   = help: the trait `argmin_math::ArgminAdd<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>` is not implemented for `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>`
   = help: the following other types implement trait `argmin_math::ArgminAdd<T, U>`:
             `Vec<Vec<f32>>` implements `argmin_math::ArgminAdd<Vec<Vec<f32>>, Vec<Vec<f32>>>`
             `Vec<Vec<f32>>` implements `argmin_math::ArgminAdd<f32, Vec<Vec<f32>>>`
             `Vec<Vec<f64>>` implements `argmin_math::ArgminAdd<Vec<Vec<f64>>, Vec<Vec<f64>>>`
             `Vec<Vec<f64>>` implements `argmin_math::ArgminAdd<f64, Vec<Vec<f64>>>`
             `Vec<Vec<i16>>` implements `argmin_math::ArgminAdd<Vec<Vec<i16>>, Vec<Vec<i16>>>`
             `Vec<Vec<i16>>` implements `argmin_math::ArgminAdd<i16, Vec<Vec<i16>>>`
             `Vec<Vec<i32>>` implements `argmin_math::ArgminAdd<Vec<Vec<i32>>, Vec<Vec<i32>>>`
             `Vec<Vec<i32>>` implements `argmin_math::ArgminAdd<i32, Vec<Vec<i32>>>`
           and 122 others
   = note: required for `LBFGS<MoreThuenteLineSearch<ArrayBase<..., ...>, ..., ...>, ..., ..., ...>` to implement `Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
note: required by a bound in `Executor::<O, S, I>::new`
  --> C:\Users\User1\.cargo\registry\src\index.crates.io-6f17d22bba15001f\argmin-0.10.0\src\core\executor.rs:39:8
   |
39 |     S: Solver<O, I>,
   |        ^^^^^^^^^^^^ required by this bound in `Executor::<O, S, I>::new`
...
63 |     pub fn new(problem: O, solver: S) -> Self {
   |            --- required by a bound in this associated function
   = note: the full name for the type has been written to 'C:\Users\User1\lbfgs\target\debug\deps\argmin_ndarray-12712dea92587807.long-type-917791017746136411.txt'
   = note: consider using `--verbose` to print the full type name to the console

error[E0277]: the trait bound `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminAdd<f64, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>` is not satisfied
  --> src\main.rs:50:35
   |
50 |     let res = Executor::new(cost, solver)
   |               -------------       ^^^^^^ the trait `argmin_math::ArgminAdd<f64, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>` is not implemented for `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>`
   |               |
   |               required by a bound introduced by this call
   |
   = help: the following other types implement trait `argmin_math::ArgminAdd<T, U>`:
             `Vec<Vec<f32>>` implements `argmin_math::ArgminAdd<Vec<Vec<f32>>, Vec<Vec<f32>>>`
             `Vec<Vec<f32>>` implements `argmin_math::ArgminAdd<f32, Vec<Vec<f32>>>`
             `Vec<Vec<f64>>` implements `argmin_math::ArgminAdd<Vec<Vec<f64>>, Vec<Vec<f64>>>`
             `Vec<Vec<f64>>` implements `argmin_math::ArgminAdd<f64, Vec<Vec<f64>>>`
             `Vec<Vec<i16>>` implements `argmin_math::ArgminAdd<Vec<Vec<i16>>, Vec<Vec<i16>>>`
             `Vec<Vec<i16>>` implements `argmin_math::ArgminAdd<i16, Vec<Vec<i16>>>`
             `Vec<Vec<i32>>` implements `argmin_math::ArgminAdd<Vec<Vec<i32>>, Vec<Vec<i32>>>`
             `Vec<Vec<i32>>` implements `argmin_math::ArgminAdd<i32, Vec<Vec<i32>>>`
           and 122 others
   = note: required for `LBFGS<MoreThuenteLineSearch<ArrayBase<..., ...>, ..., ...>, ..., ..., ...>` to implement `Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
note: required by a bound in `Executor::<O, S, I>::new`
  --> C:\Users\User1\.cargo\registry\src\index.crates.io-6f17d22bba15001f\argmin-0.10.0\src\core\executor.rs:39:8
   |
39 |     S: Solver<O, I>,
   |        ^^^^^^^^^^^^ required by this bound in `Executor::<O, S, I>::new`
...
63 |     pub fn new(problem: O, solver: S) -> Self {
   |            --- required by a bound in this associated function
   = note: the full name for the type has been written to 'C:\Users\User1\lbfgs\target\debug\deps\argmin_ndarray-12712dea92587807.long-type-917791017746136411.txt'
   = note: consider using `--verbose` to print the full type name to the console

error[E0277]: the trait bound `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminDot<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>` is not satisfied
  --> src\main.rs:50:35
   |
50 |     let res = Executor::new(cost, solver)
   |               -------------       ^^^^^^ the trait `argmin_math::ArgminDot<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>` is not implemented for `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>`
   |               |
   |               required by a bound introduced by this call
   |
   = help: the following other types implement trait `argmin_math::ArgminDot<T, U>`:
             `Vec<Vec<f32>>` implements `argmin_math::ArgminDot<Vec<Vec<f32>>, Vec<Vec<f32>>>`
             `Vec<Vec<f32>>` implements `argmin_math::ArgminDot<Vec<f32>, Vec<f32>>`
             `Vec<Vec<f32>>` implements `argmin_math::ArgminDot<f32, Vec<Vec<f32>>>`
             `Vec<Vec<f64>>` implements `argmin_math::ArgminDot<Vec<Vec<f64>>, Vec<Vec<f64>>>`
             `Vec<Vec<f64>>` implements `argmin_math::ArgminDot<Vec<f64>, Vec<f64>>`
             `Vec<Vec<f64>>` implements `argmin_math::ArgminDot<f64, Vec<Vec<f64>>>`
             `Vec<Vec<i16>>` implements `argmin_math::ArgminDot<Vec<Vec<i16>>, Vec<Vec<i16>>>`
             `Vec<Vec<i16>>` implements `argmin_math::ArgminDot<Vec<i16>, Vec<i16>>`
           and 332 others
   = note: required for `LBFGS<MoreThuenteLineSearch<ArrayBase<..., ...>, ..., ...>, ..., ..., ...>` to implement `Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
note: required by a bound in `Executor::<O, S, I>::new`
  --> C:\Users\User1\.cargo\registry\src\index.crates.io-6f17d22bba15001f\argmin-0.10.0\src\core\executor.rs:39:8
   |
39 |     S: Solver<O, I>,
   |        ^^^^^^^^^^^^ required by this bound in `Executor::<O, S, I>::new`
...
63 |     pub fn new(problem: O, solver: S) -> Self {
   |            --- required by a bound in this associated function
   = note: the full name for the type has been written to 'C:\Users\User1\lbfgs\target\debug\deps\argmin_ndarray-12712dea92587807.long-type-917791017746136411.txt'
   = note: consider using `--verbose` to print the full type name to the console

error[E0277]: the trait bound `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminMul<f64, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>` is not satisfied
  --> src\main.rs:50:35
   |
50 |     let res = Executor::new(cost, solver)
   |               -------------       ^^^^^^ the trait `argmin_math::ArgminMul<f64, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>` is not implemented for `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>`
   |               |
   |               required by a bound introduced by this call
   |
   = help: the following other types implement trait `argmin_math::ArgminMul<T, U>`:
             `Vec<Vec<f32>>` implements `argmin_math::ArgminMul<Vec<Vec<f32>>, Vec<Vec<f32>>>`
             `Vec<Vec<f32>>` implements `argmin_math::ArgminMul<f32, Vec<Vec<f32>>>`
             `Vec<Vec<f64>>` implements `argmin_math::ArgminMul<Vec<Vec<f64>>, Vec<Vec<f64>>>`
             `Vec<Vec<f64>>` implements `argmin_math::ArgminMul<f64, Vec<Vec<f64>>>`
             `Vec<Vec<i16>>` implements `argmin_math::ArgminMul<Vec<Vec<i16>>, Vec<Vec<i16>>>`
             `Vec<Vec<i16>>` implements `argmin_math::ArgminMul<i16, Vec<Vec<i16>>>`
             `Vec<Vec<i32>>` implements `argmin_math::ArgminMul<Vec<Vec<i32>>, Vec<Vec<i32>>>`
             `Vec<Vec<i32>>` implements `argmin_math::ArgminMul<i32, Vec<Vec<i32>>>`
           and 292 others
   = note: required for `LBFGS<MoreThuenteLineSearch<ArrayBase<..., ...>, ..., ...>, ..., ..., ...>` to implement `Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
note: required by a bound in `Executor::<O, S, I>::new`
  --> C:\Users\User1\.cargo\registry\src\index.crates.io-6f17d22bba15001f\argmin-0.10.0\src\core\executor.rs:39:8
   |
39 |     S: Solver<O, I>,
   |        ^^^^^^^^^^^^ required by this bound in `Executor::<O, S, I>::new`
...
63 |     pub fn new(problem: O, solver: S) -> Self {
   |            --- required by a bound in this associated function
   = note: the full name for the type has been written to 'C:\Users\User1\lbfgs\target\debug\deps\argmin_ndarray-12712dea92587807.long-type-917791017746136411.txt'
   = note: consider using `--verbose` to print the full type name to the console

error[E0277]: the trait bound `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminMul<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>` is not satisfied
  --> src\main.rs:50:35
   |
50 |     let res = Executor::new(cost, solver)
   |               -------------       ^^^^^^ unsatisfied trait bound
   |               |
   |               required by a bound introduced by this call
   |
   = help: the trait `argmin_math::ArgminMul<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>` is not implemented for `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>`
   = help: the following other types implement trait `argmin_math::ArgminMul<T, U>`:
             `Vec<Vec<f32>>` implements `argmin_math::ArgminMul<Vec<Vec<f32>>, Vec<Vec<f32>>>`
             `Vec<Vec<f32>>` implements `argmin_math::ArgminMul<f32, Vec<Vec<f32>>>`
             `Vec<Vec<f64>>` implements `argmin_math::ArgminMul<Vec<Vec<f64>>, Vec<Vec<f64>>>`
             `Vec<Vec<f64>>` implements `argmin_math::ArgminMul<f64, Vec<Vec<f64>>>`
             `Vec<Vec<i16>>` implements `argmin_math::ArgminMul<Vec<Vec<i16>>, Vec<Vec<i16>>>`
             `Vec<Vec<i16>>` implements `argmin_math::ArgminMul<i16, Vec<Vec<i16>>>`
             `Vec<Vec<i32>>` implements `argmin_math::ArgminMul<Vec<Vec<i32>>, Vec<Vec<i32>>>`
             `Vec<Vec<i32>>` implements `argmin_math::ArgminMul<i32, Vec<Vec<i32>>>`
           and 292 others
   = note: required for `LBFGS<MoreThuenteLineSearch<ArrayBase<..., ...>, ..., ...>, ..., ..., ...>` to implement `Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
note: required by a bound in `Executor::<O, S, I>::new`
  --> C:\Users\User1\.cargo\registry\src\index.crates.io-6f17d22bba15001f\argmin-0.10.0\src\core\executor.rs:39:8
   |
39 |     S: Solver<O, I>,
   |        ^^^^^^^^^^^^ required by this bound in `Executor::<O, S, I>::new`
...
63 |     pub fn new(problem: O, solver: S) -> Self {
   |            --- required by a bound in this associated function
   = note: the full name for the type has been written to 'C:\Users\User1\lbfgs\target\debug\deps\argmin_ndarray-12712dea92587807.long-type-917791017746136411.txt'
   = note: consider using `--verbose` to print the full type name to the console

error[E0277]: the trait bound `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminL1Norm<f64>` is not satisfied
  --> src\main.rs:50:35
   |
50 |     let res = Executor::new(cost, solver)
   |               -------------       ^^^^^^ the trait `argmin_math::ArgminL1Norm<f64>` is not implemented for `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>`   
   |               |
   |               required by a bound introduced by this call
   |
   = help: the following other types implement trait `argmin_math::ArgminL1Norm<U>`:
             `Vec<f32>` implements `argmin_math::ArgminL1Norm<f32>`
             `Vec<f64>` implements `argmin_math::ArgminL1Norm<f64>`
             `Vec<i16>` implements `argmin_math::ArgminL1Norm<i16>`
             `Vec<i32>` implements `argmin_math::ArgminL1Norm<i32>`
             `Vec<i64>` implements `argmin_math::ArgminL1Norm<i64>`
             `Vec<i8>` implements `argmin_math::ArgminL1Norm<i8>`
             `Vec<num_complex::Complex<f32>>` implements `argmin_math::ArgminL1Norm<f32>`
             `Vec<num_complex::Complex<f64>>` implements `argmin_math::ArgminL1Norm<f64>`
           and 52 others
   = note: required for `LBFGS<MoreThuenteLineSearch<ArrayBase<..., ...>, ..., ...>, ..., ..., ...>` to implement `Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
note: required by a bound in `Executor::<O, S, I>::new`
  --> C:\Users\User1\.cargo\registry\src\index.crates.io-6f17d22bba15001f\argmin-0.10.0\src\core\executor.rs:39:8
   |
39 |     S: Solver<O, I>,
   |        ^^^^^^^^^^^^ required by this bound in `Executor::<O, S, I>::new`
...
63 |     pub fn new(problem: O, solver: S) -> Self {
   |            --- required by a bound in this associated function
   = note: the full name for the type has been written to 'C:\Users\User1\lbfgs\target\debug\deps\argmin_ndarray-12712dea92587807.long-type-917791017746136411.txt'
   = note: consider using `--verbose` to print the full type name to the console

error[E0277]: the trait bound `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminSignum` is not satisfied
  --> src\main.rs:50:35
   |
50 |     let res = Executor::new(cost, solver)
   |               -------------       ^^^^^^ the trait `argmin_math::ArgminSignum` is not implemented for `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>`        
   |               |
   |               required by a bound introduced by this call
   |
   = help: the following other types implement trait `argmin_math::ArgminSignum`:
             Vec<f32>
             Vec<f64>
             Vec<i16>
             Vec<i32>
             Vec<i64>
             Vec<i8>
             Vec<num_complex::Complex<f32>>
             Vec<num_complex::Complex<f64>>
           and 28 others
   = note: required for `LBFGS<MoreThuenteLineSearch<ArrayBase<..., ...>, ..., ...>, ..., ..., ...>` to implement `Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
note: required by a bound in `Executor::<O, S, I>::new`
  --> C:\Users\User1\.cargo\registry\src\index.crates.io-6f17d22bba15001f\argmin-0.10.0\src\core\executor.rs:39:8
   |
39 |     S: Solver<O, I>,
   |        ^^^^^^^^^^^^ required by this bound in `Executor::<O, S, I>::new`
...
63 |     pub fn new(problem: O, solver: S) -> Self {
   |            --- required by a bound in this associated function
   = note: the full name for the type has been written to 'C:\Users\User1\lbfgs\target\debug\deps\argmin_ndarray-12712dea92587807.long-type-917791017746136411.txt'
   = note: consider using `--verbose` to print the full type name to the console

error[E0277]: the trait bound `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminZeroLike` is not satisfied
  --> src\main.rs:50:35
   |
50 |     let res = Executor::new(cost, solver)
   |               -------------       ^^^^^^ the trait `argmin_math::ArgminZeroLike` is not implemented for `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>`      
   |               |
   |               required by a bound introduced by this call
   |
   = help: the following other types implement trait `argmin_math::ArgminZeroLike`:
             Vec<T>
             f32
             f64
             i16
             i32
             i64
             i8
             ndarray::ArrayBase<ndarray::data_repr::OwnedRepr<T>, ndarray::dimension::dim::Dim<[usize; 1]>>
           and 15 others
   = note: required for `LBFGS<MoreThuenteLineSearch<ArrayBase<..., ...>, ..., ...>, ..., ..., ...>` to implement `Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
note: required by a bound in `Executor::<O, S, I>::new`
  --> C:\Users\User1\.cargo\registry\src\index.crates.io-6f17d22bba15001f\argmin-0.10.0\src\core\executor.rs:39:8
   |
39 |     S: Solver<O, I>,
   |        ^^^^^^^^^^^^ required by this bound in `Executor::<O, S, I>::new`
...
63 |     pub fn new(problem: O, solver: S) -> Self {
   |            --- required by a bound in this associated function
   = note: the full name for the type has been written to 'C:\Users\User1\lbfgs\target\debug\deps\argmin_ndarray-12712dea92587807.long-type-917791017746136411.txt'
   = note: consider using `--verbose` to print the full type name to the console

error[E0277]: the trait bound `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminMinMax` is not satisfied
  --> src\main.rs:50:35
   |
50 |     let res = Executor::new(cost, solver)
   |               -------------       ^^^^^^ the trait `argmin_math::ArgminMinMax` is not implemented for `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>`        
   |               |
   |               required by a bound introduced by this call
   |
   = help: the following other types implement trait `argmin_math::ArgminMinMax`:
             Vec<Vec<f32>>
             Vec<Vec<f64>>
             Vec<Vec<i16>>
             Vec<Vec<i32>>
             Vec<Vec<i64>>
             Vec<Vec<i8>>
             Vec<Vec<u16>>
             Vec<Vec<u32>>
           and 42 others
   = note: required for `LBFGS<MoreThuenteLineSearch<ArrayBase<..., ...>, ..., ...>, ..., ..., ...>` to implement `Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
note: required by a bound in `Executor::<O, S, I>::new`
  --> C:\Users\User1\.cargo\registry\src\index.crates.io-6f17d22bba15001f\argmin-0.10.0\src\core\executor.rs:39:8
   |
39 |     S: Solver<O, I>,
   |        ^^^^^^^^^^^^ required by this bound in `Executor::<O, S, I>::new`
...
63 |     pub fn new(problem: O, solver: S) -> Self {
   |            --- required by a bound in this associated function
   = note: the full name for the type has been written to 'C:\Users\User1\lbfgs\target\debug\deps\argmin_ndarray-12712dea92587807.long-type-917791017746136411.txt'
   = note: consider using `--verbose` to print the full type name to the console

error[E0277]: the trait bound `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminL2Norm<f64>` is not satisfied
  --> src\main.rs:50:35
   |
50 |     let res = Executor::new(cost, solver)
   |               -------------       ^^^^^^ the trait `argmin_math::ArgminL2Norm<f64>` is not implemented for `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>`   
   |               |
   |               required by a bound introduced by this call
   |
   = help: the following other types implement trait `argmin_math::ArgminL2Norm<U>`:
             `Vec<f32>` implements `argmin_math::ArgminL2Norm<f32>`
             `Vec<f64>` implements `argmin_math::ArgminL2Norm<f64>`
             `Vec<i16>` implements `argmin_math::ArgminL2Norm<i16>`
             `Vec<i32>` implements `argmin_math::ArgminL2Norm<i32>`
             `Vec<i64>` implements `argmin_math::ArgminL2Norm<i64>`
             `Vec<i8>` implements `argmin_math::ArgminL2Norm<i8>`
             `Vec<num_complex::Complex<f32>>` implements `argmin_math::ArgminL2Norm<f32>`
             `Vec<num_complex::Complex<f64>>` implements `argmin_math::ArgminL2Norm<f64>`
           and 44 others
   = note: required for `LBFGS<MoreThuenteLineSearch<ArrayBase<..., ...>, ..., ...>, ..., ..., ...>` to implement `Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
note: required by a bound in `Executor::<O, S, I>::new`
  --> C:\Users\User1\.cargo\registry\src\index.crates.io-6f17d22bba15001f\argmin-0.10.0\src\core\executor.rs:39:8
   |
39 |     S: Solver<O, I>,
   |        ^^^^^^^^^^^^ required by this bound in `Executor::<O, S, I>::new`
...
63 |     pub fn new(problem: O, solver: S) -> Self {
   |            --- required by a bound in this associated function
   = note: the full name for the type has been written to 'C:\Users\User1\lbfgs\target\debug\deps\argmin_ndarray-12712dea92587807.long-type-917791017746136411.txt'
   = note: consider using `--verbose` to print the full type name to the console

error[E0277]: the trait bound `f64: argmin_math::ArgminMul<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>` is not satisfied
  --> src\main.rs:50:35
   |
50 |     let res = Executor::new(cost, solver)
   |               -------------       ^^^^^^ the trait `argmin_math::ArgminMul<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>` is not implemented for `f64`
   |               |
   |               required by a bound introduced by this call
   |
   = help: the following other types implement trait `argmin_math::ArgminMul<T, U>`:
             `f64` implements `argmin_math::ArgminMul<Vec<Vec<f64>>, Vec<Vec<f64>>>`
             `f64` implements `argmin_math::ArgminMul<Vec<f64>, Vec<f64>>`
             `f64` implements `argmin_math::ArgminMul<f64, f64>`
             `f64` implements `argmin_math::ArgminMul<ndarray::ArrayBase<ndarray::data_repr::OwnedRepr<f64>, ndarray::dimension::dim::Dim<[usize; 1]>>, ndarray::ArrayBase<ndarray::data_repr::OwnedRepr<f64>, ndarray::dimension::dim::Dim<[usize; 1]>>>`
             `f64` implements `argmin_math::ArgminMul<ndarray::ArrayBase<ndarray::data_repr::OwnedRepr<f64>, ndarray::dimension::dim::Dim<[usize; 2]>>, ndarray::ArrayBase<ndarray::data_repr::OwnedRepr<f64>, ndarray::dimension::dim::Dim<[usize; 2]>>>`
             `f64` implements `argmin_math::ArgminMul<ndarray::ArrayBase<ndarray::data_repr::OwnedRepr<num_complex::Complex<f64>>, ndarray::dimension::dim::Dim<[usize; 1]>>, ndarray::ArrayBase<ndarray::data_repr::OwnedRepr<num_complex::Complex<f64>>, ndarray::dimension::dim::Dim<[usize; 1]>>>`
             `f64` implements `argmin_math::ArgminMul<ndarray::ArrayBase<ndarray::data_repr::OwnedRepr<num_complex::Complex<f64>>, ndarray::dimension::dim::Dim<[usize; 2]>>, ndarray::ArrayBase<ndarray::data_repr::OwnedRepr<num_complex::Complex<f64>>, ndarray::dimension::dim::Dim<[usize; 2]>>>`
   = note: required for `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>` to implement `argmin_math::ArgminScaledAdd<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>`
   = note: required for `MoreThuenteLineSearch<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ..., ...>` to implement `Solver<quasinewton::lbfgs::LineSearchProblem<Rosenbrock, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
   = note: 1 redundant requirement hidden
   = note: required for `LBFGS<MoreThuenteLineSearch<ArrayBase<..., ...>, ..., ...>, ..., ..., ...>` to implement `Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
note: required by a bound in `Executor::<O, S, I>::new`
  --> C:\Users\User1\.cargo\registry\src\index.crates.io-6f17d22bba15001f\argmin-0.10.0\src\core\executor.rs:39:8
   |
39 |     S: Solver<O, I>,
   |        ^^^^^^^^^^^^ required by this bound in `Executor::<O, S, I>::new`
...
63 |     pub fn new(problem: O, solver: S) -> Self {
   |            --- required by a bound in this associated function
   = note: the full name for the type has been written to 'C:\Users\User1\lbfgs\target\debug\deps\argmin_ndarray-12712dea92587807.long-type-6482970718034977036.txt'
   = note: consider using `--verbose` to print the full type name to the console

error[E0599]: the method `configure` exists for struct `Executor<Rosenbrock, LBFGS<..., ..., ..., ...>, ...>`, but its trait bounds were not satisfied        
    --> src\main.rs:51:10
     |
50   |       let res = Executor::new(cost, solver)
     |  _______________-
51   | |         .configure(|state| state.param(init_param).max_iters(100))
     | |         -^^^^^^^^^ method cannot be called due to unsatisfied trait bounds
     | |_________|
     |
     |
    ::: C:\Users\User1\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ndarray-0.16.1\src\lib.rs:1280:1
     |
1280 |   pub struct ArrayBase<S, D>
     |   -------------------------- doesn't satisfy 12 bounds
     |
    ::: C:\Users\User1\.cargo\registry\src\index.crates.io-6f17d22bba15001f\argmin-0.10.0\src\solver\quasinewton\lbfgs.rs:78:1
     |
78   |   pub struct LBFGS<L, P, G, F> {
     |   ---------------------------- doesn't satisfy `_: Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
     |
     = note: the full type name has been written to 'C:\Users\User1\lbfgs\target\debug\deps\argmin_ndarray-12712dea92587807.long-type-15569570003595399664.txt'
     = note: consider using `--verbose` to print the full type name to the console
     = note: the following trait bounds were not satisfied:
             `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminSub<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>`
             which is required by `LBFGS<MoreThuenteLineSearch<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>: Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
             `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminSub<f64, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>`
             which is required by `LBFGS<MoreThuenteLineSearch<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>: Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
             `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminAdd<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>`
             which is required by `LBFGS<MoreThuenteLineSearch<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>: Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
             `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminAdd<f64, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>`
             which is required by `LBFGS<MoreThuenteLineSearch<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>: Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
             `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminDot<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>`
             which is required by `LBFGS<MoreThuenteLineSearch<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>: Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
             `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminMul<f64, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>`
             which is required by `LBFGS<MoreThuenteLineSearch<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>: Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
             `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminMul<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>`
             which is required by `LBFGS<MoreThuenteLineSearch<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>: Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
             `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminL1Norm<f64>`
             which is required by `LBFGS<MoreThuenteLineSearch<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>: Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
             `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminSignum`
             which is required by `LBFGS<MoreThuenteLineSearch<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>: Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
             `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminZeroLike`
             which is required by `LBFGS<MoreThuenteLineSearch<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>: Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
             `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminMinMax`
             which is required by `LBFGS<MoreThuenteLineSearch<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>: Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
             `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>: argmin_math::ArgminL2Norm<f64>`
             which is required by `LBFGS<MoreThuenteLineSearch<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>: Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`
             `f64: argmin_math::ArgminMul<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>>`
             which is required by `LBFGS<MoreThuenteLineSearch<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, f64>: Solver<Rosenbrock, IterState<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, (), (), (), f64>>`

Some errors have detailed explanations: E0277, E0599.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `argmin_ndarray` (bin "argmin_ndarray") due to 14 previous errors
@humphreylee humphreylee changed the title ndarray version limitation ndarray version limitation (0.15.6)? Jan 23, 2025
@humphreylee
Copy link
Author

Just noticed that PR 456 has been opened for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant