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

KtNDArray

class KtNDArray<T : Any> (source)

Wrapper over numpy.ndarray. Stores a pointer to ndarray and DirectBuffer above the memory allocated by numpy for the array.

Properties

base

Base object. Currently a stub.

var base: KtNDArray<*>?

data

ByteBuffer of array's data.

val data: ByteBuffer?

dtype

Type of array's elements.

val dtype: Class<T>

itemsize

Length of one array element in bytes.

val itemsize: Int

ndim

Number of array dimensions.

val ndim: Int

scalar

If the array is a scalar, contains it, otherwise null.

var scalar: T?

shape

IntArray of array dimensions.

val shape: IntArray

size

Number of elements in the array.

val size: Int

strides

IntArray of bytes to step in each dimension when traversing an array.

val strides: IntArray

t

The transposed array

val t: KtNDArray<T>

Functions

equals

Uses arrayEqual

fun equals(other: Any?): Boolean

finalize

If the array is not a scalar, the counter of the array decreases by one. If the counter is zero, python will free up memory.

fun finalize(): Unit

flatIter

Returns FlatIterator.

fun flatIter(): Iterator<T>

get

operator fun get(vararg index: Int): KtNDArray<T>
operator fun get(vararg index: Long): KtNDArray<T>
operator fun get(vararg slices: Slice): KtNDArray<T>
operator fun get(intRange: IntRange): KtNDArray<T>
operator fun get(vararg indexes: Any): KtNDArray<T>

hashCode

fun hashCode(): Int

isNotScalar

fun isNotScalar(): Boolean

isScalar

fun isScalar(): Boolean

iterator

Iterator over ndarray elements.

operator fun iterator(): Iterator<KtNDArray<T>>

set

operator fun set(vararg index: Int, element: T): Unit
operator fun set(indexes: IntArray, element: T): Unit
operator fun set(vararg slices: Slice, element: T): Unit
operator fun set(vararg indexes: Int, element: KtNDArray<T>): Unit
operator fun set(vararg indexes: Any, element: KtNDArray<T>): Unit

toList

Returns 1-D List.

fun toList(): List<T>

toList2d

Returns 2-D List.

fun toList2d(): List<List<T>>

toList3d

Returns 3-D List.

fun toList3d(): List<List<List<T>>>

toString

fun toString(): String

Extension Functions

**

Pow operator

infix fun <T : Number> KtNDArray<T>.**(other: Byte): KtNDArray<T>infix fun <T : Number> KtNDArray<T>.**(other: Short): KtNDArray<T>
infix fun <T : Number> KtNDArray<T>.**(other: Int): KtNDArray<T>
infix fun <T : Number> KtNDArray<T>.**(other: Long): KtNDArray<T>
infix fun <T : Number> KtNDArray<T>.**(other: Float): KtNDArray<Float>
infix fun <T : Number> KtNDArray<T>.**(other: Double): KtNDArray<Double>

@

Alias for dot.

infix fun <T : Number> KtNDArray<T>.@(other: KtNDArray<T>): KtNDArray<T>

all

Test whether all array elements along a given axis evaluate to true.

fun <T : Any> KtNDArray<T>.all(): Booleanfun <T : Any> KtNDArray<T>.all(vararg axis: Int): KtNDArray<Boolean>

Returns true if all elements satisfy the predicate. Using buffer.

fun <T : Any> KtNDArray<T>.all(predicate: (T) -> Boolean): Boolean

any

Test whether any array element along a given axis evaluates to true.

fun <T : Any> KtNDArray<T>.any(): Booleanfun <T : Any> KtNDArray<T>.any(vararg axis: Int): KtNDArray<Boolean>

Returns 'true' if any element satisfy the predicate.

fun <T : Any> KtNDArray<T>.any(predicate: (T) -> Boolean): Boolean

argMax

Returns the indices of the maximum values along an axis.

fun <T : Number> KtNDArray<T>.argMax(): Longfun <T : Number> KtNDArray<T>.argMax(axis: Int): KtNDArray<Long>

argMin

Return the indices of the minimum values along the given axis of array.

fun <T : Number> KtNDArray<T>.argMin(): Longfun <T : Number> KtNDArray<T>.argMin(axis: Int): KtNDArray<Long>

argPartition

Returns the indices that would partition this array.

fun <T : Any> KtNDArray<T>.argPartition(kth: IntArray, axis: Int? = -1, kind: String = "introselect"): KtNDArray<Long>

argSort

Returns the indices that would sort this array.

fun <T : Any> KtNDArray<T>.argSort(axis: Int? = -1, kind: String? = null): KtNDArray<Long>

asType

Copy of the array, cast to a specified type.

fun <T : Any, R : Any> KtNDArray<T>.asType(order: Order = Order.K, casting: Casting = Casting.UNSAFE, subok: Boolean = true, copy: Boolean = true): KtNDArray<R>

byteSwap

Swap the bytes of the array elements.

fun <T : Any> KtNDArray<T>.byteSwap(inplace: Boolean = false): KtNDArray<T>

choose

Use an index array to construct a new array from a set of choices.

fun <E : Number, T : Number> KtNDArray<T>.choose(choices: Array<E>, mode: Mode = Mode.RAISE): KtNDArray<T>fun <E : Number, T : Number> KtNDArray<T>.choose(choices: List<E>, mode: Mode = Mode.RAISE): KtNDArray<T>
fun <E : Number, T : Number> KtNDArray<T>.choose(choices: KtNDArray<E>, mode: Mode = Mode.RAISE): KtNDArray<T>

clip

Return an array whose values are limited to (min, max). One of max or min must be given.

fun <T : Any> KtNDArray<T>.clip(min: T? = null, max: T? = null): KtNDArray<T>

compress

Return selected slices of this array along given axis.

fun <T : Any> KtNDArray<T>.compress(condition: BooleanArray, axis: Int? = null): KtNDArray<T>

copy

Return a copy of the array.

fun <T : Any> KtNDArray<T>.copy(order: Order = Order.C): KtNDArray<T>

cumProd

Return the cumulative product of the elements along the given axis.

fun <T : Any> KtNDArray<T>.cumProd(axis: Int? = null): KtNDArray<T>

cumSum

Return the cumulative sum of the elements along the given axis.

fun <T : Any> KtNDArray<T>.cumSum(axis: Int? = null): KtNDArray<T>

diagonal

Return specified diagonals.

fun <T : Any> KtNDArray<T>.diagonal(offset: Int = 0, axis1: Int = 0, axis2: Int = 1): KtNDArray<T>

div

Divide. Returns KtNDArray.

operator fun <T : Number, T1 : Number, L : KtNDArray<T>, R : KtNDArray<T1>> L.div(other: R): KtNDArray<Double>operator fun <T : Number, T1 : Number, L : KtNDArray<T>> L.div(other: T1): KtNDArray<Double>
operator fun KtNDArray<Byte>.div(other: KtNDArray<Float>): KtNDArray<Float>
operator fun KtNDArray<Short>.div(other: KtNDArray<Float>): KtNDArray<Float>
operator fun KtNDArray<Float>.div(other: KtNDArray<Byte>): KtNDArray<Float>
operator fun KtNDArray<Float>.div(other: KtNDArray<Short>): KtNDArray<Float>
operator fun KtNDArray<Float>.div(other: KtNDArray<Float>): KtNDArray<Float>
operator fun <T : Number> KtNDArray<Float>.div(other: T): KtNDArray<Float>

divAssign

Divide. In-place operation.

operator fun KtNDArray<Byte>.divAssign(other: KtNDArray<Byte>): Unitoperator fun KtNDArray<Byte>.divAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Byte>.divAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Byte>.divAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Byte>.divAssign(other: Byte): Unit
operator fun KtNDArray<Byte>.divAssign(other: Short): Unit
operator fun KtNDArray<Byte>.divAssign(other: Int): Unit
operator fun KtNDArray<Byte>.divAssign(other: Long): Unit
operator fun KtNDArray<Short>.divAssign(other: KtNDArray<Byte>): Unit
operator fun KtNDArray<Short>.divAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Short>.divAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Short>.divAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Short>.divAssign(other: Byte): Unit
operator fun KtNDArray<Short>.divAssign(other: Short): Unit
operator fun KtNDArray<Short>.divAssign(other: Int): Unit
operator fun KtNDArray<Short>.divAssign(other: Long): Unit
operator fun KtNDArray<Int>.divAssign(other: KtNDArray<Byte>): Unit
operator fun KtNDArray<Int>.divAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Int>.divAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Int>.divAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Int>.divAssign(other: Byte): Unit
operator fun KtNDArray<Int>.divAssign(other: Short): Unit
operator fun KtNDArray<Int>.divAssign(other: Int): Unit
operator fun KtNDArray<Int>.divAssign(other: Long): Unit
operator fun KtNDArray<Long>.divAssign(other: KtNDArray<Byte>): Unit
operator fun KtNDArray<Long>.divAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Long>.divAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Long>.divAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Long>.divAssign(other: Byte): Unit
operator fun KtNDArray<Long>.divAssign(other: Short): Unit
operator fun KtNDArray<Long>.divAssign(other: Int): Unit
operator fun KtNDArray<Long>.divAssign(other: Long): Unit
operator fun KtNDArray<Float>.divAssign(other: KtNDArray<Byte>): Unit
operator fun KtNDArray<Float>.divAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Float>.divAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Float>.divAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Float>.divAssign(other: KtNDArray<Float>): Unit
operator fun KtNDArray<Float>.divAssign(other: KtNDArray<Double>): Unit
operator fun KtNDArray<Float>.divAssign(other: Byte): Unit
operator fun KtNDArray<Float>.divAssign(other: Short): Unit
operator fun KtNDArray<Float>.divAssign(other: Int): Unit
operator fun KtNDArray<Float>.divAssign(other: Long): Unit
operator fun KtNDArray<Float>.divAssign(other: Float): Unit
operator fun KtNDArray<Float>.divAssign(other: Double): Unit
operator fun KtNDArray<Double>.divAssign(other: KtNDArray<Byte>): Unit
operator fun KtNDArray<Double>.divAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Double>.divAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Double>.divAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Double>.divAssign(other: KtNDArray<Float>): Unit
operator fun KtNDArray<Double>.divAssign(other: KtNDArray<Double>): Unit
operator fun KtNDArray<Double>.divAssign(other: Byte): Unit
operator fun KtNDArray<Double>.divAssign(other: Short): Unit
operator fun KtNDArray<Double>.divAssign(other: Int): Unit
operator fun KtNDArray<Double>.divAssign(other: Long): Unit
operator fun KtNDArray<Double>.divAssign(other: Float): Unit
operator fun KtNDArray<Double>.divAssign(other: Double): Unit

dot

Dot product of two arrays.

fun <T : Number> KtNDArray<Byte>.dot(b: KtNDArray<T>): KtNDArray<T>fun KtNDArray<Short>.dot(b: KtNDArray<Byte>): KtNDArray<Short>
fun <T : Number> KtNDArray<Short>.dot(b: KtNDArray<T>): KtNDArray<T>
fun KtNDArray<Int>.dot(b: KtNDArray<Byte>): KtNDArray<Int>
fun KtNDArray<Int>.dot(b: KtNDArray<Short>): KtNDArray<Short>
fun KtNDArray<Int>.dot(b: KtNDArray<Float>): KtNDArray<Double>
fun <T : Number> KtNDArray<Int>.dot(b: KtNDArray<T>): KtNDArray<T>
fun KtNDArray<Long>.dot(b: KtNDArray<Byte>): KtNDArray<Long>
fun KtNDArray<Long>.dot(b: KtNDArray<Short>): KtNDArray<Long>
fun KtNDArray<Long>.dot(b: KtNDArray<Int>): KtNDArray<Long>
fun KtNDArray<Long>.dot(b: KtNDArray<Float>): KtNDArray<Double>
fun <T : Number> KtNDArray<Long>.dot(b: KtNDArray<T>): KtNDArray<T>
fun KtNDArray<Float>.dot(b: KtNDArray<Byte>): KtNDArray<Float>
fun KtNDArray<Float>.dot(b: KtNDArray<Short>): KtNDArray<Float>
fun KtNDArray<Float>.dot(b: KtNDArray<Float>): KtNDArray<Float>
fun <T : Number> KtNDArray<Float>.dot(b: KtNDArray<T>): KtNDArray<Double>
fun <T : Number> KtNDArray<Double>.dot(b: KtNDArray<T>): KtNDArray<Double>

dump

Dump a pickle of the array to the specified file.

fun <T : Any> KtNDArray<T>.dump(file: String): Unit

dumps

Returns the pickle of the array as a string.

fun <T : Any> KtNDArray<T>.dumps(): String

eq

==

infix fun <T : Any, C : Number> KtNDArray<T>.eq(other: C): KtNDArray<Boolean>infix fun <T : Any> KtNDArray<T>.eq(other: KtNDArray<T>): KtNDArray<Boolean>

fill

Fill the array with a scalar value.

fun <T : Any> KtNDArray<T>.fill(value: T): Unit

flatten

Return a copy of the array collapsed into one dimension.

fun <T : Any> KtNDArray<T>.flatten(order: Order = Order.C): KtNDArray<T>

ge

=

infix fun <T : Any, C : Number> KtNDArray<T>.ge(other: C): KtNDArray<Boolean>infix fun <T : Any> KtNDArray<T>.ge(other: KtNDArray<T>): KtNDArray<Boolean>

getfield

Returns a field of the given array as a certain type. A field is a view of the array data with a given data-type.

fun <T : Any, R : Any> KtNDArray<T>.getfield(offset: Int = 0): KtNDArray<R>

gt

infix fun <T : Any, C : Number> KtNDArray<T>.gt(other: C): KtNDArray<Boolean>
infix fun <T : Any> KtNDArray<T>.gt(other: KtNDArray<T>): KtNDArray<Boolean>

item

Copy an element of an array to a standard Python/Java scalar and return it.

fun <T : Any> KtNDArray<T>.item(vararg arg: Int): T

itemset

Insert scalar into an array (scalar is cast to array’s dtype, if possible) faster than set()

fun <T : Any> KtNDArray<T>.itemset(vararg indices: Long, element: T): Unit

le

<=

infix fun <T : Any, C : Number> KtNDArray<T>.le(other: C): KtNDArray<T>infix fun <T : Any> KtNDArray<T>.le(other: KtNDArray<T>): KtNDArray<T>

lt

<

infix fun <T : Any, C : Number> KtNDArray<T>.lt(other: C): KtNDArray<Boolean>infix fun <T : Any> KtNDArray<T>.lt(other: KtNDArray<T>): KtNDArray<Boolean>

max

Maximum of an array or maximum along an axis.

fun <T : Number> KtNDArray<T>.max(): T?fun <T : Any> KtNDArray<T>.max(vararg axis: Int): KtNDArray<T>

mean

Returns the average of the array elements along given axis.

fun <T : Number> KtNDArray<T>.mean(): Doublefun <T : Number> KtNDArray<T>.mean(vararg axis: Int): KtNDArray<Double>

min

Return the minimum along a given axis.

fun <T : Any> KtNDArray<T>.min(): T?fun <T : Any> KtNDArray<T>.min(vararg axis: Int): KtNDArray<T>

minus

Subtract. Returns KtNDArray.

operator fun KtNDArray<Byte>.minus(other: KtNDArray<Byte>): KtNDArray<Byte>operator fun KtNDArray<Byte>.minus(other: KtNDArray<Short>): KtNDArray<Short>
operator fun KtNDArray<Byte>.minus(other: KtNDArray<Int>): KtNDArray<Int>
operator fun KtNDArray<Byte>.minus(other: KtNDArray<Long>): KtNDArray<Long>
operator fun KtNDArray<Byte>.minus(other: KtNDArray<Float>): KtNDArray<Float>
operator fun KtNDArray<Byte>.minus(other: KtNDArray<Double>): KtNDArray<Double>
operator fun KtNDArray<Byte>.minus(other: Byte): KtNDArray<Byte>
operator fun KtNDArray<Byte>.minus(other: Short): KtNDArray<Byte>
operator fun KtNDArray<Byte>.minus(other: Int): KtNDArray<Byte>
operator fun KtNDArray<Byte>.minus(other: Long): KtNDArray<Byte>
operator fun KtNDArray<Byte>.minus(other: Float): KtNDArray<Double>
operator fun KtNDArray<Byte>.minus(other: Double): KtNDArray<Double>
operator fun KtNDArray<Short>.minus(other: KtNDArray<Byte>): KtNDArray<Short>
operator fun KtNDArray<Short>.minus(other: KtNDArray<Short>): KtNDArray<Short>
operator fun KtNDArray<Short>.minus(other: KtNDArray<Int>): KtNDArray<Int>
operator fun KtNDArray<Short>.minus(other: KtNDArray<Long>): KtNDArray<Long>
operator fun KtNDArray<Short>.minus(other: KtNDArray<Float>): KtNDArray<Float>
operator fun KtNDArray<Short>.minus(other: KtNDArray<Double>): KtNDArray<Double>
operator fun KtNDArray<Short>.minus(other: Byte): KtNDArray<Short>
operator fun KtNDArray<Short>.minus(other: Short): KtNDArray<Short>
operator fun KtNDArray<Short>.minus(other: Int): KtNDArray<Short>
operator fun KtNDArray<Short>.minus(other: Long): KtNDArray<Short>
operator fun KtNDArray<Short>.minus(other: Float): KtNDArray<Double>
operator fun KtNDArray<Short>.minus(other: Double): KtNDArray<Double>
operator fun KtNDArray<Int>.minus(other: KtNDArray<Byte>): KtNDArray<Int>
operator fun KtNDArray<Int>.minus(other: KtNDArray<Short>): KtNDArray<Int>
operator fun KtNDArray<Int>.minus(other: KtNDArray<Int>): KtNDArray<Int>
operator fun KtNDArray<Int>.minus(other: KtNDArray<Long>): KtNDArray<Long>
operator fun KtNDArray<Int>.minus(other: KtNDArray<Float>): KtNDArray<Double>
operator fun KtNDArray<Int>.minus(other: KtNDArray<Double>): KtNDArray<Double>
operator fun KtNDArray<Int>.minus(other: Byte): KtNDArray<Int>
operator fun KtNDArray<Int>.minus(other: Short): KtNDArray<Int>
operator fun KtNDArray<Int>.minus(other: Int): KtNDArray<Int>
operator fun KtNDArray<Int>.minus(other: Long): KtNDArray<Int>
operator fun KtNDArray<Int>.minus(other: Float): KtNDArray<Double>
operator fun KtNDArray<Int>.minus(other: Double): KtNDArray<Double>
operator fun KtNDArray<Long>.minus(other: KtNDArray<Byte>): KtNDArray<Long>
operator fun KtNDArray<Long>.minus(other: KtNDArray<Short>): KtNDArray<Long>
operator fun KtNDArray<Long>.minus(other: KtNDArray<Int>): KtNDArray<Long>
operator fun KtNDArray<Long>.minus(other: KtNDArray<Long>): KtNDArray<Long>
operator fun KtNDArray<Long>.minus(other: KtNDArray<Float>): KtNDArray<Double>
operator fun KtNDArray<Long>.minus(other: KtNDArray<Double>): KtNDArray<Double>
operator fun KtNDArray<Long>.minus(other: Byte): KtNDArray<Long>
operator fun KtNDArray<Long>.minus(other: Short): KtNDArray<Long>
operator fun KtNDArray<Long>.minus(other: Int): KtNDArray<Long>
operator fun KtNDArray<Long>.minus(other: Long): KtNDArray<Long>
operator fun KtNDArray<Long>.minus(other: Float): KtNDArray<Double>
operator fun KtNDArray<Long>.minus(other: Double): KtNDArray<Double>
operator fun KtNDArray<Float>.minus(other: KtNDArray<Byte>): KtNDArray<Float>
operator fun KtNDArray<Float>.minus(other: KtNDArray<Short>): KtNDArray<Float>
operator fun KtNDArray<Float>.minus(other: KtNDArray<Int>): KtNDArray<Double>
operator fun KtNDArray<Float>.minus(other: KtNDArray<Long>): KtNDArray<Double>
operator fun KtNDArray<Float>.minus(other: KtNDArray<Float>): KtNDArray<Float>
operator fun KtNDArray<Float>.minus(other: KtNDArray<Double>): KtNDArray<Double>
operator fun KtNDArray<Float>.minus(other: Byte): KtNDArray<Float>
operator fun KtNDArray<Float>.minus(other: Short): KtNDArray<Float>
operator fun KtNDArray<Float>.minus(other: Int): KtNDArray<Float>
operator fun KtNDArray<Float>.minus(other: Long): KtNDArray<Float>
operator fun KtNDArray<Float>.minus(other: Float): KtNDArray<Float>
operator fun KtNDArray<Float>.minus(other: Double): KtNDArray<Float>
operator fun KtNDArray<Double>.minus(other: KtNDArray<Byte>): KtNDArray<Double>
operator fun KtNDArray<Double>.minus(other: KtNDArray<Short>): KtNDArray<Double>
operator fun KtNDArray<Double>.minus(other: KtNDArray<Int>): KtNDArray<Double>
operator fun KtNDArray<Double>.minus(other: KtNDArray<Long>): KtNDArray<Double>
operator fun KtNDArray<Double>.minus(other: KtNDArray<Float>): KtNDArray<Double>
operator fun KtNDArray<Double>.minus(other: KtNDArray<Double>): KtNDArray<Double>
operator fun KtNDArray<Double>.minus(other: Byte): KtNDArray<Double>
operator fun KtNDArray<Double>.minus(other: Short): KtNDArray<Double>
operator fun KtNDArray<Double>.minus(other: Int): KtNDArray<Double>
operator fun KtNDArray<Double>.minus(other: Long): KtNDArray<Double>
operator fun KtNDArray<Double>.minus(other: Float): KtNDArray<Double>
operator fun KtNDArray<Double>.minus(other: Double): KtNDArray<Double>

minusAssign

Subtract. In-place operation.

operator fun KtNDArray<Byte>.minusAssign(other: KtNDArray<Byte>): Unitoperator fun KtNDArray<Byte>.minusAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Byte>.minusAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Byte>.minusAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Byte>.minusAssign(other: Byte): Unit
operator fun KtNDArray<Byte>.minusAssign(other: Short): Unit
operator fun KtNDArray<Byte>.minusAssign(other: Int): Unit
operator fun KtNDArray<Byte>.minusAssign(other: Long): Unit
operator fun KtNDArray<Short>.minusAssign(other: KtNDArray<Byte>): Unit
operator fun KtNDArray<Short>.minusAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Short>.minusAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Short>.minusAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Short>.minusAssign(other: Byte): Unit
operator fun KtNDArray<Short>.minusAssign(other: Short): Unit
operator fun KtNDArray<Short>.minusAssign(other: Int): Unit
operator fun KtNDArray<Short>.minusAssign(other: Long): Unit
operator fun KtNDArray<Int>.minusAssign(other: KtNDArray<Byte>): Unit
operator fun KtNDArray<Int>.minusAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Int>.minusAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Int>.minusAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Int>.minusAssign(other: Byte): Unit
operator fun KtNDArray<Int>.minusAssign(other: Short): Unit
operator fun KtNDArray<Int>.minusAssign(other: Int): Unit
operator fun KtNDArray<Int>.minusAssign(other: Long): Unit
operator fun KtNDArray<Long>.minusAssign(other: KtNDArray<Byte>): Unit
operator fun KtNDArray<Long>.minusAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Long>.minusAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Long>.minusAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Long>.minusAssign(other: Byte): Unit
operator fun KtNDArray<Long>.minusAssign(other: Short): Unit
operator fun KtNDArray<Long>.minusAssign(other: Int): Unit
operator fun KtNDArray<Long>.minusAssign(other: Long): Unit
operator fun KtNDArray<Float>.minusAssign(other: KtNDArray<Byte>): Unit
operator fun KtNDArray<Float>.minusAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Float>.minusAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Float>.minusAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Float>.minusAssign(other: KtNDArray<Float>): Unit
operator fun KtNDArray<Float>.minusAssign(other: KtNDArray<Double>): Unit
operator fun KtNDArray<Float>.minusAssign(other: Byte): Unit
operator fun KtNDArray<Float>.minusAssign(other: Short): Unit
operator fun KtNDArray<Float>.minusAssign(other: Int): Unit
operator fun KtNDArray<Float>.minusAssign(other: Long): Unit
operator fun KtNDArray<Float>.minusAssign(other: Float): Unit
operator fun KtNDArray<Float>.minusAssign(other: Double): Unit
operator fun KtNDArray<Double>.minusAssign(other: KtNDArray<Byte>): Unit
operator fun KtNDArray<Double>.minusAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Double>.minusAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Double>.minusAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Double>.minusAssign(other: KtNDArray<Float>): Unit
operator fun KtNDArray<Double>.minusAssign(other: KtNDArray<Double>): Unit
operator fun KtNDArray<Double>.minusAssign(other: Byte): Unit
operator fun KtNDArray<Double>.minusAssign(other: Short): Unit
operator fun KtNDArray<Double>.minusAssign(other: Int): Unit
operator fun KtNDArray<Double>.minusAssign(other: Long): Unit
operator fun KtNDArray<Double>.minusAssign(other: Float): Unit
operator fun KtNDArray<Double>.minusAssign(other: Double): Unit

ne

!=

infix fun <T : Any, C : Number> KtNDArray<T>.ne(other: C): KtNDArray<Boolean>infix fun <T : Any> KtNDArray<T>.ne(other: KtNDArray<T>): KtNDArray<Boolean>

newByteOrder

Return the array with the same data viewed with a different byte order.

fun <T : Any> KtNDArray<T>.newByteOrder(newOrder: Char = 'S'): KtNDArray<T>

nonZero

Return the indices of the elements that are non-zero.

fun <T : Any> KtNDArray<T>.nonZero(): Array<Any>

partition

Rearranges the elements in the array in such a way that the value of the element in kth position is in the position it would be in a sorted array.

fun <T : Any> KtNDArray<T>.partition(kth: IntArray, axis: Int = -1, kind: String = "introselect"): Unit

plus

Plus. Returns new KtNDArray.

operator fun KtNDArray<Byte>.plus(other: KtNDArray<Byte>): KtNDArray<Byte>operator fun KtNDArray<Byte>.plus(other: KtNDArray<Short>): KtNDArray<Short>
operator fun KtNDArray<Byte>.plus(other: KtNDArray<Int>): KtNDArray<Int>
operator fun KtNDArray<Byte>.plus(other: KtNDArray<Long>): KtNDArray<Long>
operator fun KtNDArray<Byte>.plus(other: KtNDArray<Float>): KtNDArray<Float>
operator fun KtNDArray<Byte>.plus(other: KtNDArray<Double>): KtNDArray<Double>
operator fun KtNDArray<Byte>.plus(other: Byte): KtNDArray<Byte>
operator fun KtNDArray<Byte>.plus(other: Short): KtNDArray<Byte>
operator fun KtNDArray<Byte>.plus(other: Int): KtNDArray<Byte>
operator fun KtNDArray<Byte>.plus(other: Long): KtNDArray<Byte>
operator fun KtNDArray<Byte>.plus(other: Float): KtNDArray<Double>
operator fun KtNDArray<Byte>.plus(other: Double): KtNDArray<Double>
operator fun KtNDArray<Short>.plus(other: KtNDArray<Byte>): KtNDArray<Short>
operator fun KtNDArray<Short>.plus(other: KtNDArray<Short>): KtNDArray<Short>
operator fun KtNDArray<Short>.plus(other: KtNDArray<Int>): KtNDArray<Int>
operator fun KtNDArray<Short>.plus(other: KtNDArray<Long>): KtNDArray<Long>
operator fun KtNDArray<Short>.plus(other: KtNDArray<Float>): KtNDArray<Float>
operator fun KtNDArray<Short>.plus(other: KtNDArray<Double>): KtNDArray<Double>
operator fun KtNDArray<Short>.plus(other: Byte): KtNDArray<Short>
operator fun KtNDArray<Short>.plus(other: Short): KtNDArray<Short>
operator fun KtNDArray<Short>.plus(other: Int): KtNDArray<Short>
operator fun KtNDArray<Short>.plus(other: Long): KtNDArray<Short>
operator fun KtNDArray<Short>.plus(other: Float): KtNDArray<Double>
operator fun KtNDArray<Short>.plus(other: Double): KtNDArray<Double>
operator fun KtNDArray<Int>.plus(other: KtNDArray<Byte>): KtNDArray<Int>
operator fun KtNDArray<Int>.plus(other: KtNDArray<Short>): KtNDArray<Int>
operator fun KtNDArray<Int>.plus(other: KtNDArray<Int>): KtNDArray<Int>
operator fun KtNDArray<Int>.plus(other: KtNDArray<Long>): KtNDArray<Long>
operator fun KtNDArray<Int>.plus(other: KtNDArray<Float>): KtNDArray<Double>
operator fun KtNDArray<Int>.plus(other: KtNDArray<Double>): KtNDArray<Double>
operator fun KtNDArray<Int>.plus(other: Byte): KtNDArray<Int>
operator fun KtNDArray<Int>.plus(other: Short): KtNDArray<Int>
operator fun KtNDArray<Int>.plus(other: Int): KtNDArray<Int>
operator fun KtNDArray<Int>.plus(other: Long): KtNDArray<Int>
operator fun KtNDArray<Int>.plus(other: Float): KtNDArray<Double>
operator fun KtNDArray<Int>.plus(other: Double): KtNDArray<Double>
operator fun KtNDArray<Long>.plus(other: KtNDArray<Byte>): KtNDArray<Long>
operator fun KtNDArray<Long>.plus(other: KtNDArray<Short>): KtNDArray<Long>
operator fun KtNDArray<Long>.plus(other: KtNDArray<Int>): KtNDArray<Long>
operator fun KtNDArray<Long>.plus(other: KtNDArray<Long>): KtNDArray<Long>
operator fun KtNDArray<Long>.plus(other: KtNDArray<Float>): KtNDArray<Double>
operator fun KtNDArray<Long>.plus(other: KtNDArray<Double>): KtNDArray<Double>
operator fun KtNDArray<Long>.plus(other: Byte): KtNDArray<Long>
operator fun KtNDArray<Long>.plus(other: Short): KtNDArray<Long>
operator fun KtNDArray<Long>.plus(other: Int): KtNDArray<Long>
operator fun KtNDArray<Long>.plus(other: Long): KtNDArray<Long>
operator fun KtNDArray<Long>.plus(other: Float): KtNDArray<Double>
operator fun KtNDArray<Long>.plus(other: Double): KtNDArray<Double>
operator fun KtNDArray<Float>.plus(other: KtNDArray<Byte>): KtNDArray<Float>
operator fun KtNDArray<Float>.plus(other: KtNDArray<Short>): KtNDArray<Float>
operator fun KtNDArray<Float>.plus(other: KtNDArray<Int>): KtNDArray<Double>
operator fun KtNDArray<Float>.plus(other: KtNDArray<Long>): KtNDArray<Double>
operator fun KtNDArray<Float>.plus(other: KtNDArray<Float>): KtNDArray<Float>
operator fun KtNDArray<Float>.plus(other: KtNDArray<Double>): KtNDArray<Double>
operator fun KtNDArray<Float>.plus(other: Byte): KtNDArray<Float>
operator fun KtNDArray<Float>.plus(other: Short): KtNDArray<Float>
operator fun KtNDArray<Float>.plus(other: Int): KtNDArray<Float>
operator fun KtNDArray<Float>.plus(other: Long): KtNDArray<Float>
operator fun KtNDArray<Float>.plus(other: Float): KtNDArray<Float>
operator fun KtNDArray<Float>.plus(other: Double): KtNDArray<Float>
operator fun KtNDArray<Double>.plus(other: KtNDArray<Byte>): KtNDArray<Double>
operator fun KtNDArray<Double>.plus(other: KtNDArray<Short>): KtNDArray<Double>
operator fun KtNDArray<Double>.plus(other: KtNDArray<Int>): KtNDArray<Double>
operator fun KtNDArray<Double>.plus(other: KtNDArray<Long>): KtNDArray<Double>
operator fun KtNDArray<Double>.plus(other: KtNDArray<Float>): KtNDArray<Double>
operator fun KtNDArray<Double>.plus(other: KtNDArray<Double>): KtNDArray<Double>
operator fun KtNDArray<Double>.plus(other: Byte): KtNDArray<Double>
operator fun KtNDArray<Double>.plus(other: Short): KtNDArray<Double>
operator fun KtNDArray<Double>.plus(other: Int): KtNDArray<Double>
operator fun KtNDArray<Double>.plus(other: Long): KtNDArray<Double>
operator fun KtNDArray<Double>.plus(other: Float): KtNDArray<Double>
operator fun KtNDArray<Double>.plus(other: Double): KtNDArray<Double>

plusAssign

Plus. In-place operation.

operator fun KtNDArray<Byte>.plusAssign(other: KtNDArray<Byte>): Unitoperator fun KtNDArray<Byte>.plusAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Byte>.plusAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Byte>.plusAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Byte>.plusAssign(other: Byte): Unit
operator fun KtNDArray<Byte>.plusAssign(other: Short): Unit
operator fun KtNDArray<Byte>.plusAssign(other: Int): Unit
operator fun KtNDArray<Byte>.plusAssign(other: Long): Unit
operator fun KtNDArray<Short>.plusAssign(other: KtNDArray<Byte>): Unit
operator fun KtNDArray<Short>.plusAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Short>.plusAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Short>.plusAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Short>.plusAssign(other: Byte): Unit
operator fun KtNDArray<Short>.plusAssign(other: Short): Unit
operator fun KtNDArray<Short>.plusAssign(other: Int): Unit
operator fun KtNDArray<Short>.plusAssign(other: Long): Unit
operator fun KtNDArray<Int>.plusAssign(other: KtNDArray<Byte>): Unit
operator fun KtNDArray<Int>.plusAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Int>.plusAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Int>.plusAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Int>.plusAssign(other: Byte): Unit
operator fun KtNDArray<Int>.plusAssign(other: Short): Unit
operator fun KtNDArray<Int>.plusAssign(other: Int): Unit
operator fun KtNDArray<Int>.plusAssign(other: Long): Unit
operator fun KtNDArray<Long>.plusAssign(other: KtNDArray<Byte>): Unit
operator fun KtNDArray<Long>.plusAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Long>.plusAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Long>.plusAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Long>.plusAssign(other: Byte): Unit
operator fun KtNDArray<Long>.plusAssign(other: Short): Unit
operator fun KtNDArray<Long>.plusAssign(other: Int): Unit
operator fun KtNDArray<Long>.plusAssign(other: Long): Unit
operator fun KtNDArray<Float>.plusAssign(other: KtNDArray<Byte>): Unit
operator fun KtNDArray<Float>.plusAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Float>.plusAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Float>.plusAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Float>.plusAssign(other: KtNDArray<Float>): Unit
operator fun KtNDArray<Float>.plusAssign(other: KtNDArray<Double>): Unit
operator fun KtNDArray<Float>.plusAssign(other: Byte): Unit
operator fun KtNDArray<Float>.plusAssign(other: Short): Unit
operator fun KtNDArray<Float>.plusAssign(other: Int): Unit
operator fun KtNDArray<Float>.plusAssign(other: Long): Unit
operator fun KtNDArray<Float>.plusAssign(other: Float): Unit
operator fun KtNDArray<Float>.plusAssign(other: Double): Unit
operator fun KtNDArray<Double>.plusAssign(other: KtNDArray<Byte>): Unit
operator fun KtNDArray<Double>.plusAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Double>.plusAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Double>.plusAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Double>.plusAssign(other: KtNDArray<Float>): Unit
operator fun KtNDArray<Double>.plusAssign(other: KtNDArray<Double>): Unit
operator fun KtNDArray<Double>.plusAssign(other: Byte): Unit
operator fun KtNDArray<Double>.plusAssign(other: Short): Unit
operator fun KtNDArray<Double>.plusAssign(other: Int): Unit
operator fun KtNDArray<Double>.plusAssign(other: Long): Unit
operator fun KtNDArray<Double>.plusAssign(other: Float): Unit
operator fun KtNDArray<Double>.plusAssign(other: Double): Unit

prod

Return the product of the array elements over the given axis.

fun <T : Number> KtNDArray<T>.prod(): Tfun <T : Number> KtNDArray<T>.prod(vararg axis: Int): KtNDArray<T>

ptp

Peak to peak (maximum - minimum) value along a given axis.

fun <T : Number> KtNDArray<T>.ptp(vararg axis: Int? = emptyArray()): KtNDArray<T>

put

Set array.flat.set(n) = values.set(n) for all n in indices.

fun <T : Any> KtNDArray<T>.put(indices: IntArray, values: Array<T>, mode: Mode = Mode.RAISE): Unit

ravel

Return a flattened array.

fun <T : Any> KtNDArray<T>.ravel(order: Order = Order.C): KtNDArray<T>

repeat

Repeat elements of an array.

fun <T : Any> KtNDArray<T>.repeat(repeats: Int, axis: Int? = null): KtNDArray<T>fun <T : Any> KtNDArray<T>.repeat(repeats: IntArray, axis: Int? = null): KtNDArray<T>

reshape

Returns an array containing the same data with a new shape.

fun <T : Any> KtNDArray<T>.reshape(vararg dims: Int, order: Order = Order.C): KtNDArray<T>

resize

Change shape and size of array in-place.

fun <T : Any> KtNDArray<T>.resize(vararg dims: Int): Unit

round

Return a with each element rounded to the given number of decimals.

fun <T : Number> KtNDArray<T>.round(decimals: Int = 0): KtNDArray<T>

searchSorted

Find indices where elements of v should be inserted in a to maintain order.

fun <T : Any> KtNDArray<T>.searchSorted(v: Int, side: String = "left"): Longfun <T : Any> KtNDArray<T>.searchSorted(v: Long, side: String = "left"): Long
fun <T : Any> KtNDArray<T>.searchSorted(v: KtNDArray<Long>, side: String = "left"): KtNDArray<Long>

setfield

Put a value into a specified place in a field defined by a data-type.

fun <T : Any, R : Any> KtNDArray<T>.setfield(value: R, offset: Int = 0): Unit

setFlags

Set array flags WRITEABLE, ALIGNED, (WRITEBACKIFCOPY and UPDATEIFCOPY), respectively.

fun <T : Any> KtNDArray<T>.setFlags(write: Int? = null, align: Int? = null, uic: Int? = null): Unit

sort

Sort an array, in-place.

fun <T : Any> KtNDArray<T>.sort(axis: Int = -1, kind: KindSort? = null): Unit

squeeze

Remove single-dimensional entries from the shape of a.

fun <T : Any> KtNDArray<T>.squeeze(axis: Int? = null): KtNDArray<T>

std

Returns the standard deviation of the array elements along given axis.

fun <T : Number> KtNDArray<T>.std(ddof: Int = 0): Doublefun <T : Number> KtNDArray<T>.std(axis: Int, ddof: Int = 0): KtNDArray<Double>

sum

Sum of array elements over a given axis.

fun <T : Number> KtNDArray<T>.sum(): T?fun <T : Number> KtNDArray<T>.sum(axis: Int): KtNDArray<T>

swapAxes

Return a view of the array with axis1 and axis2 interchanged.

fun <T : Any> KtNDArray<T>.swapAxes(axis1: Int, axis2: Int): KtNDArray<T>

take

Return an array formed from the elements of a at the given indices.

fun <T : Any> KtNDArray<T>.take(indices: KtNDArray<Long>, axis: Int? = null, mode: Mode = Mode.RAISE): KtNDArray<T>fun <T : Any> KtNDArray<T>.take(indices: Array<Int>, axis: Int? = null, mode: Mode = Mode.RAISE): KtNDArray<T>
fun <T : Any> KtNDArray<T>.take(indices: List<Int>, axis: Int? = null, mode: Mode = Mode.RAISE): KtNDArray<T>

times

Multiply. Returns KtNDArray.

operator fun KtNDArray<Byte>.times(other: KtNDArray<Byte>): KtNDArray<Byte>operator fun KtNDArray<Byte>.times(other: KtNDArray<Short>): KtNDArray<Short>
operator fun KtNDArray<Byte>.times(other: KtNDArray<Int>): KtNDArray<Int>
operator fun KtNDArray<Byte>.times(other: KtNDArray<Long>): KtNDArray<Long>
operator fun KtNDArray<Byte>.times(other: KtNDArray<Float>): KtNDArray<Float>
operator fun KtNDArray<Byte>.times(other: KtNDArray<Double>): KtNDArray<Double>
operator fun KtNDArray<Byte>.times(other: Byte): KtNDArray<Byte>
operator fun KtNDArray<Byte>.times(other: Short): KtNDArray<Byte>
operator fun KtNDArray<Byte>.times(other: Int): KtNDArray<Byte>
operator fun KtNDArray<Byte>.times(other: Long): KtNDArray<Byte>
operator fun KtNDArray<Byte>.times(other: Float): KtNDArray<Double>
operator fun KtNDArray<Byte>.times(other: Double): KtNDArray<Double>
operator fun KtNDArray<Short>.times(other: KtNDArray<Byte>): KtNDArray<Short>
operator fun KtNDArray<Short>.times(other: KtNDArray<Short>): KtNDArray<Short>
operator fun KtNDArray<Short>.times(other: KtNDArray<Int>): KtNDArray<Int>
operator fun KtNDArray<Short>.times(other: KtNDArray<Long>): KtNDArray<Long>
operator fun KtNDArray<Short>.times(other: KtNDArray<Float>): KtNDArray<Float>
operator fun KtNDArray<Short>.times(other: KtNDArray<Double>): KtNDArray<Double>
operator fun KtNDArray<Short>.times(other: Byte): KtNDArray<Short>
operator fun KtNDArray<Short>.times(other: Short): KtNDArray<Short>
operator fun KtNDArray<Short>.times(other: Int): KtNDArray<Short>
operator fun KtNDArray<Short>.times(other: Long): KtNDArray<Short>
operator fun KtNDArray<Short>.times(other: Float): KtNDArray<Double>
operator fun KtNDArray<Short>.times(other: Double): KtNDArray<Double>
operator fun KtNDArray<Int>.times(other: KtNDArray<Byte>): KtNDArray<Int>
operator fun KtNDArray<Int>.times(other: KtNDArray<Short>): KtNDArray<Int>
operator fun KtNDArray<Int>.times(other: KtNDArray<Int>): KtNDArray<Int>
operator fun KtNDArray<Int>.times(other: KtNDArray<Long>): KtNDArray<Long>
operator fun KtNDArray<Int>.times(other: KtNDArray<Float>): KtNDArray<Double>
operator fun KtNDArray<Int>.times(other: KtNDArray<Double>): KtNDArray<Double>
operator fun KtNDArray<Int>.times(other: Byte): KtNDArray<Int>
operator fun KtNDArray<Int>.times(other: Short): KtNDArray<Int>
operator fun KtNDArray<Int>.times(other: Int): KtNDArray<Int>
operator fun KtNDArray<Int>.times(other: Long): KtNDArray<Int>
operator fun KtNDArray<Int>.times(other: Float): KtNDArray<Double>
operator fun KtNDArray<Int>.times(other: Double): KtNDArray<Double>
operator fun KtNDArray<Long>.times(other: KtNDArray<Byte>): KtNDArray<Long>
operator fun KtNDArray<Long>.times(other: KtNDArray<Short>): KtNDArray<Long>
operator fun KtNDArray<Long>.times(other: KtNDArray<Int>): KtNDArray<Long>
operator fun KtNDArray<Long>.times(other: KtNDArray<Long>): KtNDArray<Long>
operator fun KtNDArray<Long>.times(other: KtNDArray<Float>): KtNDArray<Double>
operator fun KtNDArray<Long>.times(other: KtNDArray<Double>): KtNDArray<Double>
operator fun KtNDArray<Long>.times(other: Byte): KtNDArray<Long>
operator fun KtNDArray<Long>.times(other: Short): KtNDArray<Long>
operator fun KtNDArray<Long>.times(other: Int): KtNDArray<Long>
operator fun KtNDArray<Long>.times(other: Long): KtNDArray<Long>
operator fun KtNDArray<Long>.times(other: Float): KtNDArray<Double>
operator fun KtNDArray<Long>.times(other: Double): KtNDArray<Double>
operator fun KtNDArray<Float>.times(other: KtNDArray<Byte>): KtNDArray<Float>
operator fun KtNDArray<Float>.times(other: KtNDArray<Short>): KtNDArray<Float>
operator fun KtNDArray<Float>.times(other: KtNDArray<Int>): KtNDArray<Double>
operator fun KtNDArray<Float>.times(other: KtNDArray<Long>): KtNDArray<Double>
operator fun KtNDArray<Float>.times(other: KtNDArray<Float>): KtNDArray<Float>
operator fun KtNDArray<Float>.times(other: KtNDArray<Double>): KtNDArray<Double>
operator fun KtNDArray<Float>.times(other: Byte): KtNDArray<Float>
operator fun KtNDArray<Float>.times(other: Short): KtNDArray<Float>
operator fun KtNDArray<Float>.times(other: Int): KtNDArray<Float>
operator fun KtNDArray<Float>.times(other: Long): KtNDArray<Float>
operator fun KtNDArray<Float>.times(other: Float): KtNDArray<Float>
operator fun KtNDArray<Float>.times(other: Double): KtNDArray<Float>
operator fun KtNDArray<Double>.times(other: KtNDArray<Byte>): KtNDArray<Double>
operator fun KtNDArray<Double>.times(other: KtNDArray<Short>): KtNDArray<Double>
operator fun KtNDArray<Double>.times(other: KtNDArray<Int>): KtNDArray<Double>
operator fun KtNDArray<Double>.times(other: KtNDArray<Long>): KtNDArray<Double>
operator fun KtNDArray<Double>.times(other: KtNDArray<Float>): KtNDArray<Double>
operator fun KtNDArray<Double>.times(other: KtNDArray<Double>): KtNDArray<Double>
operator fun KtNDArray<Double>.times(other: Byte): KtNDArray<Double>
operator fun KtNDArray<Double>.times(other: Short): KtNDArray<Double>
operator fun KtNDArray<Double>.times(other: Int): KtNDArray<Double>
operator fun KtNDArray<Double>.times(other: Long): KtNDArray<Double>
operator fun KtNDArray<Double>.times(other: Float): KtNDArray<Double>
operator fun KtNDArray<Double>.times(other: Double): KtNDArray<Double>

timesAssign

Multiply. In-place operation.

operator fun KtNDArray<Byte>.timesAssign(other: KtNDArray<Byte>): Unitoperator fun KtNDArray<Byte>.timesAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Byte>.timesAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Byte>.timesAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Byte>.timesAssign(other: Byte): Unit
operator fun KtNDArray<Byte>.timesAssign(other: Short): Unit
operator fun KtNDArray<Byte>.timesAssign(other: Int): Unit
operator fun KtNDArray<Byte>.timesAssign(other: Long): Unit
operator fun KtNDArray<Short>.timesAssign(other: KtNDArray<Byte>): Unit
operator fun KtNDArray<Short>.timesAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Short>.timesAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Short>.timesAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Short>.timesAssign(other: Byte): Unit
operator fun KtNDArray<Short>.timesAssign(other: Short): Unit
operator fun KtNDArray<Short>.timesAssign(other: Int): Unit
operator fun KtNDArray<Short>.timesAssign(other: Long): Unit
operator fun KtNDArray<Int>.timesAssign(other: KtNDArray<Byte>): Unit
operator fun KtNDArray<Int>.timesAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Int>.timesAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Int>.timesAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Int>.timesAssign(other: Byte): Unit
operator fun KtNDArray<Int>.timesAssign(other: Short): Unit
operator fun KtNDArray<Int>.timesAssign(other: Int): Unit
operator fun KtNDArray<Int>.timesAssign(other: Long): Unit
operator fun KtNDArray<Long>.timesAssign(other: KtNDArray<Byte>): Unit
operator fun KtNDArray<Long>.timesAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Long>.timesAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Long>.timesAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Long>.timesAssign(other: Byte): Unit
operator fun KtNDArray<Long>.timesAssign(other: Short): Unit
operator fun KtNDArray<Long>.timesAssign(other: Int): Unit
operator fun KtNDArray<Long>.timesAssign(other: Long): Unit
operator fun KtNDArray<Float>.timesAssign(other: KtNDArray<Byte>): Unit
operator fun KtNDArray<Float>.timesAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Float>.timesAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Float>.timesAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Float>.timesAssign(other: KtNDArray<Float>): Unit
operator fun KtNDArray<Float>.timesAssign(other: KtNDArray<Double>): Unit
operator fun KtNDArray<Float>.timesAssign(other: Byte): Unit
operator fun KtNDArray<Float>.timesAssign(other: Short): Unit
operator fun KtNDArray<Float>.timesAssign(other: Int): Unit
operator fun KtNDArray<Float>.timesAssign(other: Long): Unit
operator fun KtNDArray<Float>.timesAssign(other: Float): Unit
operator fun KtNDArray<Float>.timesAssign(other: Double): Unit
operator fun KtNDArray<Double>.timesAssign(other: KtNDArray<Byte>): Unit
operator fun KtNDArray<Double>.timesAssign(other: KtNDArray<Short>): Unit
operator fun KtNDArray<Double>.timesAssign(other: KtNDArray<Int>): Unit
operator fun KtNDArray<Double>.timesAssign(other: KtNDArray<Long>): Unit
operator fun KtNDArray<Double>.timesAssign(other: KtNDArray<Float>): Unit
operator fun KtNDArray<Double>.timesAssign(other: KtNDArray<Double>): Unit
operator fun KtNDArray<Double>.timesAssign(other: Byte): Unit
operator fun KtNDArray<Double>.timesAssign(other: Short): Unit
operator fun KtNDArray<Double>.timesAssign(other: Int): Unit
operator fun KtNDArray<Double>.timesAssign(other: Long): Unit
operator fun KtNDArray<Double>.timesAssign(other: Float): Unit
operator fun KtNDArray<Double>.timesAssign(other: Double): Unit

toBytes

Construct Python bytes containing the raw data bytes in the array.

fun <T : Any> KtNDArray<T>.toBytes(order: Order = Order.C): ByteArray

toFile

Write array to a file as text or binary (default).

fun <T : Any> KtNDArray<T>.toFile(fid: String, sep: String = "", format: String = "%s"): Unit

trace

Return the sum along diagonals of the array.

fun <T : Any> KtNDArray<T>.trace(offset: Int = 0, axis1: Int = 0, axis2: Int = 1): KtNDArray<T>

transpose

Returns a view of the array with axes transposed.

fun <T : Any> KtNDArray<T>.transpose(vararg axes: Int? = emptyArray()): KtNDArray<T>

unaryMinus

operator fun <T : Number> KtNDArray<T>.unaryMinus(): KtNDArray<T>

unaryPlus

operator fun <T : Number> KtNDArray<T>.unaryPlus(): KtNDArray<T>

var

Returns the variance of the array elements, along given axis.

fun <T : Number> KtNDArray<T>.var(ddof: Int = 0): Doublefun <T : Number> KtNDArray<T>.var(vararg axis: Int, ddof: Int = 0): KtNDArray<Double>

view

New view of array with the same data.

fun <T : Any, NT : Any> KtNDArray<T>.view(): KtNDArray<NT>