Package space.kscience.kmath.structures

Types

LazyStructureND
Link copied to clipboard
class LazyStructureND<out T>(scope: CoroutineScope, shape: IntArray, function: suspend (IntArray) -> T) : StructureND<T>

Functions

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