LazyStructureND

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

Functions

Link copied to clipboard
suspend fun await(index: IntArray): T
Link copied to clipboard
fun deferred(index: IntArray): Deferred<T>
Link copied to clipboard
open override fun elements(): Sequence<Pair<IntArray, T>>
Link copied to clipboard
open operator override fun get(index: IntArray): T
Link copied to clipboard
open override fun <F : StructureFeature> getFeature(type: KClass<out F>): F?

Properties

Link copied to clipboard
val cache: MutableMap<IntArray, Deferred<T>>
Link copied to clipboard
open val dimension: Int
Link copied to clipboard
val function: suspend (IntArray) -> T
Link copied to clipboard
open val indices: ShapeIndexer
Link copied to clipboard
val scope: CoroutineScope
Link copied to clipboard
open override val shape: IntArray

Sources

Link copied to clipboard