Skip to content

Commit

Permalink
speed up AAA (thanks to @artpelling)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-f-h committed May 22, 2024
1 parent 3c19a91 commit 9c1ce4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion baryrat.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def aaa(Z, F, tol=1e-13, mmax=100, return_errors=False):
A = (F[J,None] - fj[None,:]) * C

# compute weights as right singular vector for smallest singular value
_, _, Vh = np.linalg.svd(A)
_, _, Vh = np.linalg.svd(A, full_matrices=False)
wj = Vh[-1, :].conj()

# approximation: numerator / denominator
Expand Down

0 comments on commit 9c1ce4b

Please sign in to comment.