1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//! Generic implementations of optimization algorithms.
//!
//! These implementations work across all Runtime backends by using
//! numr's tensor operations.
// NOTE: multivariate minimization has been restructured and moved to src/optimize/minimize/impl_generic/
// NOTE: scalar optimization has been restructured and moved to src/optimize/scalar/impl_generic/
// NOTE: least_squares module has been restructured and moved to src/optimize/least_squares/impl_generic/
// It is no longer declared here.
// Re-export utils from minimize for backward compatibility
// Re-export main types for convenience
pub use ;
// Re-export nelder_mead_impl for backward compatibility (used by global/basinhopping, etc.)
pub use cratenelder_mead_impl;
// NOTE: minimize has been restructured. The implementations are now in:
// - crate::optimize::minimize::impl_generic for the generic implementations
// - crate::optimize::minimize::cpu/cuda/wgpu for the backend-specific implementations
// Import via: use crate::optimize::minimize::impl_generic::{bfgs_impl, nelder_mead_impl, powell_impl, conjugate_gradient_impl};
// NOTE: least_squares has been restructured. The implementations are now in:
// - crate::optimize::least_squares::impl_generic for the generic implementations
// - crate::optimize::least_squares::cpu/cuda/wgpu for the backend-specific implementations
// Import via: use crate::optimize::least_squares::impl_generic::{leastsq_impl, least_squares_impl};
// NOTE: roots has been restructured. The implementations are now in:
// - crate::optimize::roots::impl_generic for the generic implementations
// - crate::optimize::roots::cpu/cuda/wgpu for the backend-specific implementations
// Import via: use crate::optimize::roots::impl_generic::{newton_system_impl, broyden1_impl, levenberg_marquardt_impl};
// NOTE: global has been restructured. The implementations are now in:
// - crate::optimize::global::impl_generic for the generic implementations
// - crate::optimize::global::traits for trait definitions
// - crate::optimize::global::cpu/cuda/wgpu for the backend-specific implementations
// Import the traits directly from crate::optimize::global