numberOfElements property
int
numberOfElements
Returns the number of elements in the tensor.
Implementation
int get numberOfElements =>
x * (y == 0 ? 1 : y) * (z == 0 ? 1 : z) * (w == 0 ? 1 : w);
Returns the number of elements in the tensor.
int get numberOfElements =>
x * (y == 0 ? 1 : y) * (z == 0 ? 1 : z) * (w == 0 ? 1 : w);