mpsprep.helpers.ranks_from_s_vals

mpsprep.helpers.ranks_from_s_vals(s_vals)[source]

Given a list of singular values from multiple SVDs, this function returns the rank of each matrix in the SVDs as a list.

Parameters
s_valslist of np.ndarray

List of arrays of singular values.

Returns
rankslist of int

List of ranks corresponding to the singular values.