LazyNDStructure

class LazyNDStructure<T>(scope: CoroutineScope, shape: IntArray, function: suspend (IntArray) -> T) : NDStructure<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>>
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
get
Link copied to clipboard
open operator override fun get(index: IntArray): T
getFeature
Link copied to clipboard
open fun <F : Any> getFeature(type: KClass<F>): F?
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

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