Strides

interface Strides

A way to convert ND indices to linear one and back.

Functions

index
Link copied to clipboard
common
abstract fun index(offset: Int): IntArray
Get multidimensional from linear
indices
Link copied to clipboard
common
open fun indices(): Sequence<IntArray>
Iterate over ND indices in a natural order
offset
Link copied to clipboard
common
open 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: IntArray
Shape of NDStructure
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