Skip to content

Commit

Permalink
Merge pull request #1294 from WillAyd/update-docs
Browse files Browse the repository at this point in the history
Added select example to numpy user docs
  • Loading branch information
Nil Goyette committed Jun 9, 2023
2 parents 9dc4247 + a7680ad commit 7342ca8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/doc/ndarray_for_numpy_users/mod.rs
Expand Up @@ -258,6 +258,7 @@
//! `a[-5:]` or `a[-5:, :]` | [`a.slice(s![-5.., ..])`][.slice()] or [`a.slice_axis(Axis(0), Slice::from(-5..))`][.slice_axis()] | get the last 5 rows of a 2-D array
//! `a[:3, 4:9]` | [`a.slice(s![..3, 4..9])`][.slice()] | columns 4, 5, 6, 7, and 8 of the first 3 rows
//! `a[1:4:2, ::-1]` | [`a.slice(s![1..4;2, ..;-1])`][.slice()] | rows 1 and 3 with the columns in reverse order
//! `a.take([4, 2])` | `a.select(Axis(0), &[4, 2])` | rows 4 and 2 of the array
//!
//! ## Shape and strides
//!
Expand Down

0 comments on commit 7342ca8

Please sign in to comment.