-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
deleteat!
by CartesianIndex
#41170
Comments
This might not be as useful as you thought it be. Although there're some intersections, |
@johnnychen94 Thanks for your reply. Specializing
I think that |
By saying A similar case to this is JuliaArrays/OffsetArrays.jl#137.
Both of these are doable, one could convert a CartesianIndex into a LinearIndex, e.g., by calling It's just my two cents and people may disagree, though. |
@johnnychen94 Thanks for your patience. Maybe you're right. |
I try to remove the item of vector at a
CartesianIndex
, likeIt seems that a
CartesianIndex
is treated as an iterator of indices instead of an index, and there is not a method likedeleteat!(a::Vector, ind:: CartesianIndex)
.Is it possible to add a method
deleteat!(a::Vector, ind:: CartesianIndex)
?The text was updated successfully, but these errors were encountered: