ShapeIndexer

interface ShapeIndexer : Iterable<IntArray>

A converter from linear index to multivariate index

Functions

Link copied to clipboard
abstract fun asSequence(): Sequence<IntArray>

Iterate over ND indices in a natural order

Link copied to clipboard
abstract operator override fun equals(other: Any?): Boolean
Link copied to clipboard
abstract override fun hashCode(): Int
Link copied to clipboard
abstract fun index(offset: Int): IntArray

Get multidimensional from linear

Link copied to clipboard
open operator override fun iterator(): Iterator<IntArray>
Link copied to clipboard
abstract fun offset(index: IntArray): Int

Get linear index from multidimensional index

Properties

Link copied to clipboard
abstract val linearSize: Int

The size of linear buffer to accommodate all elements of ND-structure corresponding to strides

Link copied to clipboard
abstract val shape: Shape

Inheritors

Link copied to clipboard

Sources

Link copied to clipboard