Nd4jArrayStructure

sealed class Nd4jArrayStructure<T> : MutableStructureND<T>

Represents a StructureND wrapping an INDArray object.

Parameters

T

the type of items.

Functions

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

Properties

Link copied to clipboard
open val dimension: Int
Link copied to clipboard
open val indices: ShapeIndexer
Link copied to clipboard
abstract val ndArray: INDArray

The wrapped INDArray. Since KMath uses Int indexes, assuming the size of INDArray is less or equal to Int.MAX_VALUE.

Link copied to clipboard
open override val shape: IntArray

Sources

Link copied to clipboard