-
Notifications
You must be signed in to change notification settings - Fork 150
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
Base.stack of staticarrays creates non-static array #1272
Comments
Not so clear what the input is on that Enzyme issue, but the output is a Matrix. But xref JuliaLang/julia#52590, where the output is an MMatrix: julia> stack([SA[1,2], SA[3,4], SA[5,6]])
2×3 Matrix{Int64}:
1 3 5
2 4 6
julia> stack(SA[SA[1,2], SA[3,4], SA[5,6]])
2×3 MMatrix{2, 3, Int64, 6} with indices SOneTo(2)×SOneTo(3):
1 3 5
2 4 6 |
@mcabbott how would you go about handling the |
I'm not so sure what you mean. Can you specify what the input is? All legal values of
To make this return an SArray not MArray, it may make sense to just use Base's code path & convert the object before it's returned? But note that in any case it cannot be type-stable, since Edit: Without |
Yeah that would be the goal
I hadn't thought of that... @wsmoses do you think it is better to have |
The default choice in StaticArrays.jl is to return |
Yeah I hadn't realized that |
Note that Note also that many examples above with |
x/ref EnzymeAD/Enzyme.jl#1714
The text was updated successfully, but these errors were encountered: