LazyStructureND

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

Functions

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

Properties

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

Sources

jvm source
Link copied to clipboard