Skip to content

feat: Package extension for StaticArray#39

Merged
lkdvos merged 2 commits into
mainfrom
staticarrays
May 22, 2026
Merged

feat: Package extension for StaticArray#39
lkdvos merged 2 commits into
mainfrom
staticarrays

Conversation

@lkdvos
Copy link
Copy Markdown
Member

@lkdvos lkdvos commented May 21, 2026

This PR fixes #32 by adding a package extension that dispatches the f!! functions to the f instead of f! ones.

I just did the minimal amount of work + tests to make this work, but if we ever run into more of these issues, it might be easier to just generalize this and have some trait-based system to more generally handle this.

@lkdvos lkdvos requested a review from kshyatt May 21, 2026 16:42
@kshyatt
Copy link
Copy Markdown
Member

kshyatt commented May 22, 2026

LGTM. Do you think it might be worth testing how SArray interacts with the AD stuff?

@lkdvos
Copy link
Copy Markdown
Member Author

lkdvos commented May 22, 2026

Maybe, but I seem to recall that Mooncake had some issues with it and I'm not sure I really have the bandwidth to start tackling that right now anyways

@lkdvos lkdvos merged commit e2a21f2 into main May 22, 2026
4 checks passed
@lkdvos lkdvos deleted the staticarrays branch May 22, 2026 11:03
@Jutho
Copy link
Copy Markdown
Member

Jutho commented May 22, 2026

Thanks; this went quick and looks surprisingly simple.

I haven't had time for any code reviews since yesterday yet. I always kinda felt like StaticArrays should have a VectorInterface extension, but since this is outside my control, I guess a StaticArrays extension was unavoidable.

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.

Support bang-bang methods for StaticArrays

3 participants