Skip to content

Commit

Permalink
fixed example
Browse files Browse the repository at this point in the history
  • Loading branch information
freude committed Jul 22, 2020
1 parent f758d0b commit 7d42e58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nanonet/negf/greens_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def group_velocity(eigenvector, eigenvalue, h_r):
return gv


def iterate_gf(E, h_0, h_l, h_r, gf, num_iter):
def iterate_gf(E, h_0, h_l, h_r, se, num_iter):
"""
Parameters
Expand All @@ -116,7 +116,7 @@ def iterate_gf(E, h_0, h_l, h_r, gf, num_iter):
"""

for _ in range(num_iter):
se = h_r.dot(np.linalg.pinv(E * np.identity(h_0.shape[0]) - h_0 - gf)).dot(h_l)
se = h_r.dot(np.linalg.pinv(E * np.identity(h_0.shape[0]) - h_0 - se)).dot(h_l)

return se

Expand Down

0 comments on commit 7d42e58

Please sign in to comment.