size

Returns the total number of elements in a slice

pure
size
(
S
)
(
S s
)

Parameters

s S

array

Return Value

Type: auto

total number of elements in a slice

Examples

import mir.ndslice.topology : iota;

auto e = iota(2, 3, 1, 3);
assert(e.size == (2 * 3 * 1 * 3));

Meta