kotlin-numpy / org.jetbrains.numkt.core / Slice

Slice

class Slice (source)

eq. python slice. 1:2:3 ~ 1..2..3

Properties

slice

string representation.

val slice: String

start

starting integer where the slicing of the object starts.

val start: Int?

step

integer value which determines the increment between each index for slicing.

val step: Int?

stop

integer until which the slicing takes place.

val stop: Int?

Functions

rangeTo

operator fun rangeTo(step: Int): Slice
operator fun rangeTo(step: None.Companion): Slice

toString

fun toString(): String

Companion Object Functions

fromClosedSlice

fun fromClosedSlice(sliceStart: Int?, sliceEnd: Int?, step: Int?): Slice