gram_schmidt

tenpy.linalg.krylov_based.gram_schmidt(vecs, rcond=1e-14)[source]

In place Gram-Schmidt Orthogonalization and normalization for npc Arrays.

Parameters:
  • vecs (list of Array) – The vectors which should be orthogonalized. All with the same order of the legs. Entries are modified in place. if a norm < rcond, the entry is set to None.

  • rcond (float) – Vectors of norm < rcond (after projecting out previous vectors) are discarded.

Returns:

vecs – The ortho-normalized vectors (without any None).

Return type:

list of Array