@@ -118,18 +118,13 @@ use std::marker::PhantomData;
118
118
use std:: sync:: Arc ;
119
119
120
120
pub use crate :: dimension:: dim:: * ;
121
- pub use crate :: dimension:: {
122
- slices_intersect, Axis , AxisDescription , Dimension , IntoDimension , RemoveAxis ,
123
- } ;
121
+ pub use crate :: dimension:: { Axis , AxisDescription , Dimension , IntoDimension , RemoveAxis } ;
124
122
125
123
pub use crate :: dimension:: IxDynImpl ;
126
124
pub use crate :: dimension:: NdIndex ;
127
125
pub use crate :: error:: { ErrorKind , ShapeError } ;
128
126
pub use crate :: indexes:: { indices, indices_of} ;
129
- pub use crate :: slice:: {
130
- deref_raw_view_mut_into_view_mut_with_life, deref_raw_view_mut_into_view_with_life,
131
- life_of_view_mut, Slice , SliceInfo , SliceNextDim , SliceOrIndex ,
132
- } ;
127
+ pub use crate :: slice:: { Slice , SliceInfo , SliceNextDim , SliceOrIndex } ;
133
128
134
129
use crate :: iterators:: Baseiter ;
135
130
use crate :: iterators:: { ElementsBase , ElementsBaseMut , Iter , IterMut , Lanes , LanesMut } ;
@@ -478,13 +473,10 @@ pub type Ixs = isize;
478
473
/// [`.slice_move()`]: #method.slice_move
479
474
/// [`.slice_collapse()`]: #method.slice_collapse
480
475
///
481
- /// It's possible to take multiple simultaneous *mutable* slices with the
482
- /// [`multislice!()`](macro.multislice!.html) macro.
483
- ///
484
476
/// ```
485
477
/// extern crate ndarray;
486
478
///
487
- /// use ndarray::{arr2, arr3, multislice, s};
479
+ /// use ndarray::{arr2, arr3, s};
488
480
///
489
481
/// fn main() {
490
482
///
@@ -531,20 +523,6 @@ pub type Ixs = isize;
531
523
/// [12, 11, 10]]);
532
524
/// assert_eq!(f, g);
533
525
/// assert_eq!(f.shape(), &[2, 3]);
534
- ///
535
- /// // Let's take two disjoint, mutable slices of a matrix with
536
- /// //
537
- /// // - One containing all the even-index columns in the matrix
538
- /// // - One containing all the odd-index columns in the matrix
539
- /// let mut h = arr2(&[[0, 1, 2, 3],
540
- /// [4, 5, 6, 7]]);
541
- /// let (s0, s1) = multislice!(h, mut [.., ..;2], mut [.., 1..;2]);
542
- /// let i = arr2(&[[0, 2],
543
- /// [4, 6]]);
544
- /// let j = arr2(&[[1, 3],
545
- /// [5, 7]]);
546
- /// assert_eq!(s0, i);
547
- /// assert_eq!(s1, j);
548
526
/// }
549
527
/// ```
550
528
///
0 commit comments