pub fn polar<T: Scalar, S: Data<Elem = T>>(
a: &ArrayBase<S, Ix2>,
right: bool,
) -> Result<(Array2<T>, Array2<T>)>Expand description
The polar decomposition A = U P (side = right) or A = P U (left) (SciPy’s polar): U
with orthonormal columns (or rows) and P Hermitian positive semi-definite, from the SVD
A = W Σ Vᴴ: U = W Vᴴ, and P = V Σ Vᴴ or W Σ Wᴴ. Returns (U, P).