ShapeND

value class ShapeND(array: IntArray)(source)

A read-only ND shape

Constructors

Link copied to clipboard
constructor(array: IntArray)

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun ShapeND.component1(): Int
Link copied to clipboard
operator fun ShapeND.component2(): Int
Link copied to clipboard
operator fun ShapeND.component3(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A shape including first n dimensions of this shape

Link copied to clipboard
inline fun ShapeND.forEach(block: (value: Int) -> Unit)
Link copied to clipboard
inline fun ShapeND.forEachIndexed(block: (index: Int, value: Int) -> Unit)
Link copied to clipboard
operator fun get(index: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A shape including last n dimensions of this shape

Link copied to clipboard
operator fun ShapeND.plus(add: IntArray): ShapeND
operator fun ShapeND.plus(add: ShapeND): ShapeND
Link copied to clipboard
Link copied to clipboard

Convert to array with protective copy

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val size: Int