Add EigenvalueProblem, EigenvalueSolution, and EigenvalueTarget#1417
Merged
Conversation
| SmallestRealPart | ||
| "Eigenvalues with the largest (most positive) imaginary part (symbol `:LI`)." | ||
| LargestImaginaryPart | ||
| "Eigenvalues with the smallest (most negative) imaginary part (symbol `:SI`)." |
Member
There was a problem hiding this comment.
get rid of the symbols, use the enums
|
|
||
| - `A`: the operator whose eigenvalues are sought. | ||
| - `B`: the second operator for a generalized problem, or `nothing` for a standard one. | ||
| - `nev`: the requested number of eigenpairs. |
| - `A`: the operator whose eigenvalues are sought. | ||
| - `B`: the second operator for a generalized problem, or `nothing` for a standard one. | ||
| - `nev`: the requested number of eigenpairs. | ||
| - `which`: the [`EigenvalueTarget`](@ref) selecting the part of the spectrum. |
| - `B`: the second operator for a generalized problem, or `nothing` for a standard one. | ||
| - `nev`: the requested number of eigenpairs. | ||
| - `which`: the [`EigenvalueTarget`](@ref) selecting the part of the spectrum. | ||
| - `sigma`: the shift for shift-and-invert, or `nothing`. |
Comment on lines
+71
to
+73
| - `which`: which part of the spectrum to return, as an [`EigenvalueTarget`](@ref). An | ||
| ARPACK-style `Symbol` (`:LM`, `:SM`, `:LR`, `:SR`, `:LI`, `:SI`) is also accepted and | ||
| converted to the corresponding `EigenvalueTarget`. Defaults to the eigenvalues of |
Comment on lines
+52
to
+53
| ```math | ||
| A v = \lambda B v |
Member
There was a problem hiding this comment.
Should define the default typing rules. If u0 is provided, then typeof(v) = typeof(u0). Otherwise it's the dense type of a row of A. Meanwhile, typeof(lambda) = eltype(A).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
EigenvalueProblem,EigenvalueSolution, and theEigenvalueTargetenum, mirroring the existingLinearProblem/LinearSolutionpattern.AbstractEigenvalueProblem/AbstractEigenvalueSolutionabstract types andbuild_eigenvalue_solution.whichnormalization (Symbol→EigenvalueTarget), and error handling.Enables SciML/LinearSolve.jl's new
EigenvalueProblemsupport (dense, Arpack, ArnoldiMethod, KrylovKit, JacobiDavidson backends) to share one canonical definition instead of duplicating it downstream.AI Usage: Usead Claude Sonnet 5
Part of SciML/LinearSolve.jl#143