NumericIterableExtension<T> extension
Extension providing numeric operations on Iterables.
- on
-
- Iterable<
T>
- Iterable<
Methods
-
accumulate(
T init, [T op(T, T)?]) → T -
Available on Iterable<
Sums up or folds the elements in the range, starting withT> , provided by the NumericIterableExtension extensioninit. -
adjacentDifference(
[T op(T, T)?]) → List< T> -
Available on Iterable<
Computes the differences between adjacent elements.T> , provided by the NumericIterableExtension extension -
cppReduce(
[T op(T, T)?]) → T -
Available on Iterable<
Computes a result using an operation over the elements.T> , provided by the NumericIterableExtension extension -
innerProduct(
Iterable< T> other, T init, {T op1(T, T)?, T op2(T, T)?}) → T -
Available on Iterable<
Computes the inner product (dot product) of two ranges.T> , provided by the NumericIterableExtension extension -
partialSum(
[T op(T, T)?]) → List< T> -
Available on Iterable<
Computes the prefix sums (partial sums).T> , provided by the NumericIterableExtension extension