@@ -456,15 +456,6 @@ where
456
456
} ) ;
457
457
}
458
458
459
- /// Slice the array in place without changing the number of dimensions.
460
- ///
461
- /// **Panics** if an index is out of bounds or step size is zero.<br>
462
- /// (**Panics** if `D` is `IxDyn` and `indices` does not match the number of array axes.)
463
- #[ deprecated( note = "renamed to `slice_collapse`" , since = "0.12.1" ) ]
464
- pub fn slice_inplace ( & mut self , indices : & D :: SliceArg ) {
465
- self . slice_collapse ( indices)
466
- }
467
-
468
459
/// Return a view of the array, sliced along the specified axis.
469
460
///
470
461
/// **Panics** if an index is out of bounds or step size is zero.<br>
@@ -759,51 +750,6 @@ where
759
750
debug_assert ! ( self . pointer_is_inbounds( ) ) ;
760
751
}
761
752
762
- /// Along `axis`, select the subview `index` and return a
763
- /// view with that axis removed.
764
- ///
765
- /// **Panics** if `axis` or `index` is out of bounds.
766
- #[ deprecated( note = "renamed to `index_axis`" , since = "0.12.1" ) ]
767
- pub fn subview ( & self , axis : Axis , index : Ix ) -> ArrayView < ' _ , A , D :: Smaller >
768
- where
769
- S : Data ,
770
- D : RemoveAxis ,
771
- {
772
- self . index_axis ( axis, index)
773
- }
774
-
775
- /// Along `axis`, select the subview `index` and return a read-write view
776
- /// with the axis removed.
777
- ///
778
- /// **Panics** if `axis` or `index` is out of bounds.
779
- #[ deprecated( note = "renamed to `index_axis_mut`" , since = "0.12.1" ) ]
780
- pub fn subview_mut ( & mut self , axis : Axis , index : Ix ) -> ArrayViewMut < ' _ , A , D :: Smaller >
781
- where
782
- S : DataMut ,
783
- D : RemoveAxis ,
784
- {
785
- self . index_axis_mut ( axis, index)
786
- }
787
-
788
- /// Collapse dimension `axis` into length one,
789
- /// and select the subview of `index` along that axis.
790
- ///
791
- /// **Panics** if `index` is past the length of the axis.
792
- #[ deprecated( note = "renamed to `collapse_axis`" , since = "0.12.1" ) ]
793
- pub fn subview_inplace ( & mut self , axis : Axis , index : Ix ) {
794
- self . collapse_axis ( axis, index)
795
- }
796
-
797
- /// Along `axis`, select the subview `index` and return `self`
798
- /// with that axis removed.
799
- #[ deprecated( note = "renamed to `index_axis_move`" , since = "0.12.1" ) ]
800
- pub fn into_subview ( self , axis : Axis , index : Ix ) -> ArrayBase < S , D :: Smaller >
801
- where
802
- D : RemoveAxis ,
803
- {
804
- self . index_axis_move ( axis, index)
805
- }
806
-
807
753
/// Along `axis`, select arbitrary subviews corresponding to `indices`
808
754
/// and and copy them into a new array.
809
755
///
@@ -1886,8 +1832,10 @@ where
1886
1832
1887
1833
/// Remove array axis `axis` and return the result.
1888
1834
///
1835
+ /// This is equivalent to `.index-axis_move(axis, 0)` and makes most sense to use if the
1836
+ /// axis to remove is of length 1.
1837
+ ///
1889
1838
/// **Panics** if the axis is out of bounds or its length is zero.
1890
- #[ deprecated( note = "use `.index_axis_move(Axis(_), 0)` instead" , since = "0.12.1" ) ]
1891
1839
pub fn remove_axis ( self , axis : Axis ) -> ArrayBase < S , D :: Smaller >
1892
1840
where
1893
1841
D : RemoveAxis ,
0 commit comments