We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
to_indices
The to_indices docs state that:
The returned tuple must only contain either Ints or AbstractArrays of scalar indices that are supported by array A
But StaticIndexing is not either:
StaticIndexing
StaticArrays.jl/src/indexing.jl
Lines 213 to 221 in 217e6f1
See discourse: https://discourse.julialang.org/t/a-sparse-matrix-cannot-be-indexed-by-a-svector/104265/5
The text was updated successfully, but these errors were encountered:
scalar indices that are supported by array A
This is exactly why the machinery passes A itself so deeply into the call stack here. Simple fix would be something like:
A
KnownStaticFriendlyArrays = Union{StaticArray, Array, #= others? ... =#} static_index(A::KnownStaticFriendlyArray, ind) = StaticIndexing(ind) static_index(A, ind) = ind # ... return map(i->static_index(A, i), inds)
Sorry, something went wrong.
Probably duplicate of #878? See also #879.
@mbauman the docs still says AbstractArray of scalar indices even for known friendly types ;)
AbstractArray
But absolutely, limiting it as to_indices(A::StaticArray, ... would fix the problem.
to_indices(A::StaticArray, ...
No branches or pull requests
The
to_indices
docs state that:But
StaticIndexing
is not either:StaticArrays.jl/src/indexing.jl
Lines 213 to 221 in 217e6f1
See discourse:
https://discourse.julialang.org/t/a-sparse-matrix-cannot-be-indexed-by-a-svector/104265/5
The text was updated successfully, but these errors were encountered: