forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds methods for getindex and setindex! with Colon
Adds optimized methods for getindex and setindex for Array, BitArray, SubArray with ::Colon. Adds a simple sparse matrix fallback methods to translate Colons into ranges Internal method changes: * Augments Base.index_shape to support ::Colon * Adds a Base.index_lengths that returns the lengths of each index (without dropping trailing scalars) * Base.setindex_shape_check now takes the index lengths (instead of the indices themselves)
- Loading branch information
Showing
10 changed files
with
132 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.