Package space.kscience.kmath.misc

Types

Feature
Link copied to clipboard
common
interface Feature<F : Feature<F>>
Featured
Link copied to clipboard
common
interface Featured<F : Any>
A entity that contains a set of features defined by their types
FeatureKey
Link copied to clipboard
common
typealias FeatureKey<T> = KClass<out T>
FeatureSet
Link copied to clipboard
common
value class FeatureSet<F : Feature<F>> : Featured<F>
A container for a set of features
Loggable
Link copied to clipboard
common
fun fun interface Loggable
PerformancePitfall
Link copied to clipboard
common
annotation class PerformancePitfall(message: String)
Marks API that could cause performance problems.
UnstableKMathAPI
Link copied to clipboard
common
annotation class UnstableKMathAPI
Marks declarations that are still experimental in the KMath APIs, which means that the design of the corresponding declarations has open issues that may (or may not) lead to their changes in the future.

Functions

cumulative
Link copied to clipboard
common
inline fun <T, R> Iterable<T>.cumulative(initial: R, crossinline operation: (R, T) -> R): Iterable<R>
inline fun <T, R> List<T>.cumulative(initial: R, crossinline 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(group: Ring<T>): List<T>
fun <T> Sequence<T>.cumulativeSum(group: Ring<T>): Sequence<T>
fun <T> Iterable<T>.cumulativeSum(group: Ring<T>): Iterable<T>
Cumulative sum with custom space
log
Link copied to clipboard
common
fun Loggable.log(block: () -> String)
toIntExact
Link copied to clipboard
common
fun Long.toIntExact(): Int