Skip to content

Commit 84bc60a

Browse files
committed
eigh
1 parent dd5aee1 commit 84bc60a

File tree

3 files changed

+3
-54
lines changed

3 files changed

+3
-54
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
__pycache__
2+
tests/__pycache__

eigh.py

Lines changed: 0 additions & 50 deletions
This file was deleted.

pcmpo_1Dlongrange.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,11 @@
99
torch.set_num_threads(15)
1010
torch.manual_seed(42)
1111

12-
from eigh import EigenSolver
13-
eigensolver = EigenSolver.apply
14-
1512
def eigensolver(M):
1613
""" Eigensolver
1714
manually symmetrize M before the eigen decomposition
1815
"""
19-
return EigenSolver.apply(0.5*(M+M.t()))
16+
return torch.symeig(0.5*(M+M.t()))
2017

2118
def log_trace_expm(beta, mat):
2219
""" calculates log(tr(exp(beta * mat)) )

0 commit comments

Comments
 (0)