MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / dimensions

Method dimensions

src/buffer.rs:233–235  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

231 /// May be 0 to indicate a single scalar value.
232 #[inline]
233 pub fn dimensions(&self) -> usize {
234 self.0.ndim as usize
235 }
236
237 /// Returns an array of length `dimensions`. `shape()[i]` is the length of the array in dimension number `i`.
238 ///

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected