MCPcopy Create free account
hub / github.com/Raibows/MLinRust / index_base_sizes

Method index_base_sizes

src/ndarray/mod.rs:221–230  ·  view source on GitHub ↗

return the index bases for each dimension by given the shape Example: - shape: \[2, 3, 4\] - return: \[12, 4, 1\] - use: get the data of a index \[0, 1, 2\] by indexing data\[0x12 + 1x4 + 2x1\]

(shape: &Vec<usize>)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected