ShapeIndex

interface ShapeIndex

A converter from linear index to multivariate index

Functions

equals
Link copied to clipboard
common
abstract operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
abstract override fun hashCode(): Int
index
Link copied to clipboard
common
abstract fun index(offset: Int): IntArray
Get multidimensional from linear
indices
Link copied to clipboard
common
abstract fun indices(): Sequence<IntArray>
Iterate over ND indices in a natural order
offset
Link copied to clipboard
common
abstract fun offset(index: IntArray): Int
Get linear index from multidimensional index

Properties

linearSize
Link copied to clipboard
common
abstract val linearSize: Int
The size of linear buffer to accommodate all elements of ND-structure corresponding to strides
shape
Link copied to clipboard
common
abstract val shape: Shape

Inheritors

Strides
Link copied to clipboard

Sources

common source
Link copied to clipboard