MCPcopy Create free account
hub / github.com/YuminosukeSato/ironkernel / len

Method len

src/buffer/inner.rs:64–66  ·  view source on GitHub ↗

Total number of elements.

(&self)

Source from the content-addressed store, hash-verified

62impl BufferInner {
63 /// Total number of elements.
64 pub fn len(&self) -> usize {
65 self.shape.iter().product()
66 }
67
68 /// Whether the buffer is empty.
69 pub fn is_empty(&self) -> bool {

Callers 11

__len__Method · 0.80
execute_mapFunction · 0.80
eval_reduceFunction · 0.80
infer_output_lenFunction · 0.80
is_emptyMethod · 0.80
byte_lenMethod · 0.80
as_f64_sliceMethod · 0.80
from_f64_vecMethod · 0.80

Calls

no outgoing calls