argmin-rs / argmin

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

Create inplace variants of math traits #384

Open stefan-k opened 8 months ago

stefan-k commented 8 months ago

Due to the way the math traits are currently defined, no inplace operations are possible, often leading to unnecessary allocations. By adding inplace variants and changing solver code accordingly, we should be able to increase performance.

jedbrown commented 1 month ago

I think this is also one of the sticking points for no_std support, which would be an interesting feature (in particular, to use argmin inside GPU kernels).

stefan-k commented 1 week ago

I think the entire argmin_math crate needs a refactoring with input from someone who has a better understanding of how to generalize the various math crates than I have. Performance and no_std support should then be amongst the main concerns. Being able to use argmin on GPUs would be really neat.

Unfortunately I won't be able to work on this in the near future, but I am happy to support any development in that direction.