Strides

abstract class Strides : ShapeIndex

Linear transformation of indexes

Constructors

Strides
Link copied to clipboard
common
fun Strides()

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
open override fun indices(): Sequence<IntArray>
Iterate over ND indices in a natural order
offset
Link copied to clipboard
common
open override 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
strides
Link copied to clipboard
common
abstract val strides: IntArray
Array strides

Inheritors

DefaultStrides
Link copied to clipboard

Sources

common source
Link copied to clipboard