Strides

interface Strides

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

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open 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 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
toString
Link copied to clipboard
common
open fun toString(): String

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: List<Int>
Array strides

Inheritors

DefaultStrides
Link copied to clipboard