MCPcopy Create free account
hub / github.com/PyO3/rust-numpy / transpose

Method transpose

src/array.rs:1214–1219  ·  view source on GitHub ↗

Special case of [`permute`][Self::permute] which reverses the order the axes.

(&self)

Source from the content-addressed store, hash-verified

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`

Callers 1

permute_and_transposeFunction · 0.80

Implementers 1

array.rssrc/array.rs

Calls

no outgoing calls

Tested by 1

permute_and_transposeFunction · 0.64