-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SelectionRule template parameter #61
Comments
Yeah, viewed from today, the original design may be questionable. I recall that when I wrote this library, I was standing at the user's point of view. Typically when you want to compute eigenvalues, you already have a well-defined problem. You know you need the largest, or the smallest ones. But I agree that writing a wrapper is an issue. I believe moving the selection rule to |
I was wondering why the selection rule was chosen to be a template parameter instead of a constructor argument (or function argument to
init()
orcompute()
)?I'm trying to write a C API around Spectra and this makes it hard to create the eigensolver. The solution (or hack) used in RSpectra (i.e. generating all code in a switch statement using macros) is rather inflexible and could be avoided if only
SelectionRule
wasn't a template parameter.The text was updated successfully, but these errors were encountered: