Update one_example_of_orthogonalization.py
This commit is contained in:
parent
047c2353b6
commit
fea2d76548
@ -21,7 +21,7 @@ def Schmidt_orthogonalization(eigenvector):
|
|||||||
def verify_orthogonality(vectors):
|
def verify_orthogonality(vectors):
|
||||||
identity = np.eye(vectors.shape[1])
|
identity = np.eye(vectors.shape[1])
|
||||||
product = np.dot(vectors.T.conj(), vectors)
|
product = np.dot(vectors.T.conj(), vectors)
|
||||||
return np.allclose(abs(product), identity)
|
return np.allclose(product, identity)
|
||||||
|
|
||||||
# 对 np.linalg.eigh() 的特征向量正交化
|
# 对 np.linalg.eigh() 的特征向量正交化
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user