Skip to main content

gradient

Attribute Macro gradient 

Source
#[gradient]
Expand description

Emit the original function unchanged, plus {fn}_gradient(x: &[f64]) -> [f64; dim] where element i is ∂f/∂x[i] in closed form.