Special case of [`permute`][Self::permute] which reverses the order the axes.
(&self)
| 1212 | |
| 1213 | /// Special case of [`permute`][Self::permute] which reverses the order the axes. |
| 1214 | fn transpose(&self) -> PyResult<Bound<'py, PyArray<T, D>>> |
| 1215 | where |
| 1216 | T: Element, |
| 1217 | { |
| 1218 | self.permute::<()>(None) |
| 1219 | } |
| 1220 | |
| 1221 | /// Construct a new array which has same values as `self`, |
| 1222 | /// but has different dimensions specified by `shape` |
no outgoing calls