argmin-rs / argmin

Numerical optimization in pure Rust
http://argmin-rs.org
Apache License 2.0
992 stars 78 forks source link

Questions about `type` in defineing problems #506

Closed Da1sypetals closed 1 month ago

Da1sypetals commented 1 month ago

I do not exactly know how to conclude the question, so I am showing an example: For example, I want to use the Newton solver, and I have to implement Gradient and Hessian. I wonder what types can I use to be type Gradient? Am I allowed to use sparse matrices? Is this documented anywhere?

impl Gradient for Rosenbrock {
    type Gradient = /* what types are valid? */;
    // ... omitted
}

I browsed the docs and getting-started website but did not find anything related. Thanks a lot in advance❤️