Strides

abstract class Strides : ShapeIndexer

Linear transformation of indexes

Constructors

Link copied to clipboard
fun Strides()

Functions

Link copied to clipboard
open override 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
open override 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
Link copied to clipboard
abstract val strides: IntArray

Array strides

Inheritors

Link copied to clipboard

Sources

Link copied to clipboard