gradient_at

Function gradient_at 

Source
pub fn gradient_at(
    expr: &Expression,
    params: &[Expression],
    values: &HashMap<String, f64>,
) -> SymEngineResult<Vec<f64>>
Expand description

Compute the gradient of an expression at specific parameter values.

This is optimized for VQE optimization loops where we need to compute gradients at many different parameter values.