Shape

class Shape

Types

Companion
Link copied to clipboard
object Companion

Functions

drop
Link copied to clipboard
fun drop(n: Int): Shape
dropLast
Link copied to clipboard
fun dropLast(n: Int): Shape
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
get
Link copied to clipboard
operator fun get(idx: Int): Int
hashCode
Link copied to clipboard
open override fun hashCode(): Int
isPrefix
Link copied to clipboard
fun isPrefix(other: Shape): Boolean
plus
Link copied to clipboard
operator fun plus(right: Int): Shape
operator fun plus(right: Shape): Shape
prepend
Link copied to clipboard
fun prepend(right: Int): Shape
product
Link copied to clipboard
fun product(): Int
remove
Link copied to clipboard
fun remove(axis: Int): Shape
reversed
Link copied to clipboard
fun reversed(): Shape
take
Link copied to clipboard
fun take(n: Int): Shape
toString
Link copied to clipboard
open override fun toString(): String
updated
Link copied to clipboard
fun updated(axis: Int, newDim: Int): Shape

Properties

dims
Link copied to clipboard
val dims: IntArray
first
Link copied to clipboard
val first: Int
indices
Link copied to clipboard
val indices: IntRange
isScalar
Link copied to clipboard
val isScalar: Boolean
last
Link copied to clipboard
val last: Int
product
Link copied to clipboard
val product: Int
rank
Link copied to clipboard
val rank: Int