Skip to content
This repository was archived by the owner on Nov 7, 2024. It is now read-only.

API change for eigs#593

Merged
chaserileyroberts merged 21 commits into
google:masterfrom
mganahl:eigs
May 12, 2020
Merged

API change for eigs#593
chaserileyroberts merged 21 commits into
google:masterfrom
mganahl:eigs

Conversation

@mganahl

@mganahl mganahl commented May 11, 2020

Copy link
Copy Markdown
Contributor

conform to eigsh_lanczos API

Comment thread tensornetwork/backends/base_backend.py Outdated

def eigs(self,
A: Callable,
args: List,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have the default of args be None and then have the check

if args is None:
  args = []

That allows us to avoid the annoying eigs(matvec, args=[])

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's true, I'll fix it

@chaserileyroberts chaserileyroberts merged commit 6b02b0c into google:master May 12, 2020
@mganahl mganahl deleted the eigs branch June 3, 2020 19:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants