Skip to main content

l2_norm

Function l2_norm 

Source
pub fn l2_norm(x: &[f64]) -> Result<f64, SolverError>
Expand description

Scaled sum of squares, avoiding overflow from squaring large finite entries. Returns an error if the norm itself exceeds the representable FP64 range.