gram_schmidt¶
full name: tenpy.linalg.lanczos.gram_schmidt
parent module:
tenpy.linalg.lanczos
type: function
-
tenpy.linalg.lanczos.
gram_schmidt
(vecs, rcond=1e-14, verbose=0)[source]¶ In place Gram-Schmidt Orthogonalization and normalization for npc Arrays.
- Parameters
- vecslist 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.
- rcondfloat
Vectors of
norm < rcond
(after projecting out previous vectors) are discarded.- verboseint
Print additional output if verbose >= 1.
- vecslist of
- Returns
- vecslist of Array
The ortho-normalized vectors (without any
None
).- ov2D Array
For
j >= i
,ov[j, i] = npc.inner(vecs[j], vecs[i], 'range', do_conj=True)
(where vecs[j] was orthogonalized to allvecs[k], k < i
).