Skip to main content

squareform

Function squareform 

Source
pub fn squareform(condensed: &[f64]) -> Result<Vec<Vec<f64>>, ErrorsJSL>
Expand description

Expands a condensed distance vector into the symmetric square matrix with a zero diagonal (SciPy’s squareform). Its length must be m(m − 1)/2 for some m.