jaxvacua.util.rank_matrix

Contents

jaxvacua.util.rank_matrix#

rank_matrix(x, tolerance=1e-10)#

Matrix rank under a numerical tolerance.

Parameters:
  • x (Union[Array, ndarray, bool, number, bool, int, float, complex]) – Input matrix.

  • tolerance (float) – Tolerance below which singular values are treated as zero. Default 1e-10.

Returns:

Array – Scalar rank of x.

Return type:

Array