@@ -928,7 +928,7 @@ where
928
928
/// Iterator element is `ArrayView1<A>` (1D array view).
929
929
///
930
930
/// ```
931
- /// use ndarray::{ arr3, Axis, arr1} ;
931
+ /// use ndarray::arr3;
932
932
///
933
933
/// let a = arr3(&[[[ 0, 1, 2], // -- row 0, 0
934
934
/// [ 3, 4, 5]], // -- row 0, 1
@@ -996,7 +996,7 @@ where
996
996
/// Iterator element is `ArrayView1<A>` (1D array view).
997
997
///
998
998
/// ```
999
- /// use ndarray::{ arr3, Axis, arr1} ;
999
+ /// use ndarray::arr3;
1000
1000
///
1001
1001
/// // The generalized columns of a 3D array:
1002
1002
/// // are directed along the 0th axis: 0 and 6, 1 and 7 and so on...
@@ -1177,7 +1177,6 @@ where
1177
1177
/// ```
1178
1178
/// use ndarray::Array;
1179
1179
/// use ndarray::{arr3, Axis};
1180
- /// use std::iter::FromIterator;
1181
1180
///
1182
1181
/// let a = Array::from_iter(0..28).into_shape((2, 7, 2)).unwrap();
1183
1182
/// let mut iter = a.axis_chunks_iter(Axis(1), 2);
@@ -2397,10 +2396,10 @@ where
2397
2396
/// Elements are visited in arbitrary order.
2398
2397
///
2399
2398
/// ```
2399
+ /// # #[cfg(feature = "approx")] {
2400
2400
/// use approx::assert_abs_diff_eq;
2401
2401
/// use ndarray::arr2;
2402
2402
///
2403
- /// # #[cfg(feature = "approx")] {
2404
2403
/// let mut a = arr2(&[[ 0., 1.],
2405
2404
/// [-1., 2.]]);
2406
2405
/// a.mapv_inplace(f32::exp);
0 commit comments