-
Notifications
You must be signed in to change notification settings - Fork 340
Add support for inserting new axes while slicing #570
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
24a3299
Rename SliceOrIndex to AxisSliceInfo
jturner314 6a16b88
Switch from Dimension::SliceArg to CanSlice trait
jturner314 546b69c
Add support for inserting new axes while slicing
jturner314 6e335ca
Rename SliceInfo generic params to Din and Dout
jturner314 d6b9cb0
Improve code style
jturner314 438d69a
Derive Clone, Copy, and Debug for NewAxis
jturner314 6050df3
Use stringify! for string literal of type name
jturner314 8d45268
Make step_by panic for variants other than Slice
jturner314 1d15275
Add DimAdd trait
jturner314 41cc4a1
Replace SliceNextIn/OutDim with SliceArg trait
jturner314 c66ad8c
Combine DimAdd impls for Ix0
jturner314 7776bfc
Implement CanSlice<IxDyn> for [AxisSliceInfo]
jturner314 ab79d28
Change SliceInfo to be repr(transparent)
jturner314 615113e
Add debug assertions to SliceInfo::new_unchecked
jturner314 e66e3c8
Fix safety of SliceInfo::new
jturner314 3ba6ceb
Add some impls of TryFrom for SliceInfo
jturner314 815e708
Make slice_move not call slice_collapse
jturner314 25a7bb0
Make slice_collapse return Err(_) for NewAxis
jturner314 5202a50
Expose CanSlice trait in public API
jturner314 319701d
Expose MultiSlice trait in public API
jturner314 d5d6482
Add DimAdd bounds to Dimension trait
jturner314 9614b13
Revert "Make slice_collapse return Err(_) for NewAxis"
jturner314 61cf7c0
Make slice_collapse panic on NewAxis
jturner314 91dbf3f
Rename DimAdd::Out to DimAdd::Output
jturner314 5dc77bd
Rename SliceArg to SliceNextDim
jturner314 87515c6
Rename CanSlice to SliceArg
jturner314 c4efbbf
Rename MultiSlice to MultiSliceArg
jturner314 7506f90
Clarify docs of .slice_collapse()
jturner314 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Change SliceInfo to be repr(transparent)
- Loading branch information
commit ab79d2857b8fcd8ab5d86558590f48aa87b46c61
There are no files selected for viewing
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.