Package space.kscience.kmath.misc

Types

UnstableKMathAPI
Link copied to clipboard
common
annotation class UnstableKMathAPI

Functions

cumulative
Link copied to clipboard
common
inline fun <T, R> Iterable<T>.cumulative(initial: R, crossinline operation: (R, T) -> R): Iterable<R>
fun <T, R> List<T>.cumulative(initial: R, operation: (R, T) -> R): List<R>
inline fun <T, R> Sequence<T>.cumulative(initial: R, crossinline operation: (R, T) -> R): Sequence<R>
inline fun <T, R> Iterator<T>.cumulative(initial: R, crossinline operation: (R, T) -> R): Iterator<R>
Generic cumulative operation on iterator.
cumulativeSum
Link copied to clipboard
common
@JvmName(name = "cumulativeSumOfDouble")
fun Iterable<Double>.cumulativeSum(): Iterable<Double>
@JvmName(name = "cumulativeSumOfInt")
fun Iterable<Int>.cumulativeSum(): Iterable<Int>
@JvmName(name = "cumulativeSumOfLong")
fun Iterable<Long>.cumulativeSum(): Iterable<Long>
@JvmName(name = "cumulativeSumOfDouble")
fun List<Double>.cumulativeSum(): List<Double>
@JvmName(name = "cumulativeSumOfInt")
fun List<Int>.cumulativeSum(): List<Int>
@JvmName(name = "cumulativeSumOfLong")
fun List<Long>.cumulativeSum(): List<Long>
@JvmName(name = "cumulativeSumOfDouble")
fun Sequence<Double>.cumulativeSum(): Sequence<Double>
@JvmName(name = "cumulativeSumOfInt")
fun Sequence<Int>.cumulativeSum(): Sequence<Int>
@JvmName(name = "cumulativeSumOfLong")
fun Sequence<Long>.cumulativeSum(): Sequence<Long>
fun <T> List<T>.cumulativeSum(space: Space<T>): List<T>
fun <T> Sequence<T>.cumulativeSum(space: Space<T>): Sequence<T>
fun <T> Iterable<T>.cumulativeSum(space: Space<T>): Iterable<T>
Cumulative sum with custom space