@@ -3102,7 +3102,13 @@ impl<A, D: Dimension> ArrayRef<A, D>
3102
3102
Zip :: from ( self . lanes_mut ( axis) ) . map_collect ( mapping)
3103
3103
}
3104
3104
}
3105
+ }
3105
3106
3107
+ impl < A , S , D > ArrayBase < S , D >
3108
+ where
3109
+ S : DataOwned < Elem = A > + DataMut ,
3110
+ D : Dimension ,
3111
+ {
3106
3112
/// Remove the `index`th elements along `axis` and shift down elements from higher indexes.
3107
3113
///
3108
3114
/// Note that this "removes" the elements by swapping them around to the end of the axis and
@@ -3115,7 +3121,6 @@ impl<A, D: Dimension> ArrayRef<A, D>
3115
3121
/// ***Panics*** if `axis` is out of bounds<br>
3116
3122
/// ***Panics*** if not `index < self.len_of(axis)`.
3117
3123
pub fn remove_index ( & mut self , axis : Axis , index : usize )
3118
- // TODO: Check whether this needed to be DataOwned
3119
3124
{
3120
3125
assert ! ( index < self . len_of( axis) , "index {} must be less than length of Axis({})" ,
3121
3126
index, axis. index( ) ) ;
@@ -3125,7 +3130,10 @@ impl<A, D: Dimension> ArrayRef<A, D>
3125
3130
// then slice the axis in place to cut out the removed final element
3126
3131
self . slice_axis_inplace ( axis, Slice :: new ( 0 , Some ( -1 ) , 1 ) ) ;
3127
3132
}
3133
+ }
3128
3134
3135
+ impl < A , D : Dimension > ArrayRef < A , D >
3136
+ {
3129
3137
/// Iterates over pairs of consecutive elements along the axis.
3130
3138
///
3131
3139
/// The first argument to the closure is an element, and the second
0 commit comments