Skip to content

add package extension for VectorInterface - #984

Open
simeonschaub wants to merge 1 commit into
JuliaApproximation:masterfrom
simeonschaub:sds/vectorinterface
Open

add package extension for VectorInterface#984
simeonschaub wants to merge 1 commit into
JuliaApproximation:masterfrom
simeonschaub:sds/vectorinterface

Conversation

@simeonschaub

Copy link
Copy Markdown

This allows Fun to 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

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant