Function argmin_testfunctions::rastrigin_a_derivative_const

source ยท
pub fn rastrigin_a_derivative_const<const N: usize, T>(
    param: &[T; N],
    a: T,
) -> [T; N]
where T: Float + FromPrimitive + Sum + Into<f64>,
Expand description

Derivative of Rastrigin test function where a can be chosen freely

This is the const generics version, which requires the number of parameters to be known at compile time.