Skip to main content

normalize

Function normalize 

Source
pub fn normalize(weights: &Array1<C64>) -> Result<Array1<C64>, ErrorsJSL>
Expand description

w / ‖w‖, with the phase fixed so the largest-magnitude weight is real and positive (making eigenvector solutions reproducible).