DefaultStrides

class DefaultStrides : Strides

Simple implementation of Strides.

Types

Link copied to clipboard
object Companion

Functions

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

Iterate over ND indices in a natural order

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override 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
open override val linearSize: Int

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

Link copied to clipboard
open override val shape: IntArray
Link copied to clipboard
open override val strides: IntArray

Strides for memory access

Sources

Link copied to clipboard