count

inline fun <T, D : Dimension> MultiArray<T, D>.count(): Int

Returns the number of elements in an ndarray.


inline fun <T, D : Dimension> MultiArray<T, D>.count(predicate: (T) -> Boolean): Int

Returns the number of elements matching the given predicate.