add package extension for VectorInterface - #984
Open
simeonschaub wants to merge 1 commit into
Open
Conversation
Implements the VectorInterface.jl API (scalartype, zerovector, scale, add families and inner) for Fun, so Fun can be used directly as a vector type with packages like KrylovKit without type piracy. In-place variants operate on the coefficient vectors of Funs in compatible spaces; the !! variants fall back to out-of-place versions on space mismatch or scalar type promotion. Assisted-by: Claude Fable 5 <noreply@anthropic.com>
simeonschaub
force-pushed
the
sds/vectorinterface
branch
from
August 4, 2026 08:53
318feed to
3ca2be0
Compare
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.
This allows
Funto be used as bases within KrylovKit.jl for example and allows writing generic (skew-)orthogonalization routines that work over function spaces as well. (Doesn't make much sense for the default weights of course, but allows to (skew-)orthogonalize w.r.t. arbitrary weights.) I thought it made more sense for this to live in ApproxFun instead of VectorInterface, but let me know if I should try to submit this to VectorInterface instead.Assisted-by: Claude Fable 5 noreply@anthropic.com