Package space.kscience.kmath.structures

Types

LazyNDStructure
Link copied to clipboard
class LazyNDStructure<T>(scope: CoroutineScope, shape: IntArray, function: suspend (IntArray) -> T) : NDStructure<T>

Functions

await
Link copied to clipboard
suspend fun <T> NDStructure<T>.await(index: IntArray): T
deferred
Link copied to clipboard
fun <T> NDStructure<T>.deferred(index: IntArray): Deferred<T>
mapAsync
Link copied to clipboard
inline fun <T, R> NDStructure<T>.mapAsync(scope: CoroutineScope, crossinline function: suspend (T) -> R): LazyNDStructure<R>
mapAsyncIndexed
Link copied to clipboard
inline fun <T, R> NDStructure<T>.mapAsyncIndexed(scope: CoroutineScope, crossinline function: suspend (T, index: IntArray) -> R): LazyNDStructure<R>
PENDING would benefit from KEEP-176