MCPcopy Index your code
hub / github.com/arrayfire/arrayfire-rust / elements

Method elements

src/core/dim4.rs:95–97  ·  view source on GitHub ↗

Get the number of elements represented by Dim4 object

(&self)

Source from the content-addressed store, hash-verified

93
94 /// Get the number of elements represented by Dim4 object
95 pub fn elements(&self) -> u64 {
96 self.dims[0] * self.dims[1] * self.dims[2] * self.dims[3]
97 }
98
99 /// Get the number of dimensions of Dim4
100 pub fn ndims(&self) -> usize {

Callers 1

ndimsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected