Skip to main content

sphere

Function sphere 

Source
pub fn sphere(x: &Array1<f64>) -> f64
Expand description

Basic sphere function for testing f(x) = sum(x[i]^2) Same as quadratic, but kept separate for clarity in different test contexts