Casting |
Controls what kind of data casting may occur when copying. enum class Casting |
KindSort |
Sorting algorithm. STABLE and MERGESORT use timsort under the covers. enum class KindSort |
LibraryLoader |
Object that provides loading of the native ktnumpy and python library. object LibraryLoader |
Mode |
Specifies how indices outside enum class Mode |
Order |
Specifies the order of iterations over an array. enum class Order |
OSType |
Type of current operating system. enum class OSType |
PythonConf |
A configuration object for Python. data class PythonConf |
Side |
used in searchSorted enum class Side |
NumKtException |
class NumKtException : Exception |
append |
Append values to the end of an array. fun <T : Any> append(arr: KtNDArray<T>, values: KtNDArray<T>, axis: Int? = null): KtNDArray<T> |
arange |
Return evenly spaced values within a given interval. fun <T : Number> arange(start: Number, stop: Number, step: Number): KtNDArray<T>
Return evenly spaced values in the interval of 0 to range. fun <T : Number> arange(range: T): KtNDArray<T> |
argMax |
Returns the index of the maximum value along the flattened array. fun <T : Number> argMax(a: KtNDArray<T>): Long
Returns the indices of the maximum values along an axis. fun <T : Number> argMax(a: KtNDArray<T>, axis: Int): KtNDArray<Long> |
argMin |
Returns the index of the maximum value along the flattened array. fun <T : Number> argMin(a: KtNDArray<T>): Long
Returns the indices of the minimum values along an axis. fun <T : Number> argMin(a: KtNDArray<T>, axis: Int): KtNDArray<Long> |
argPartition |
Perform an indirect partition along the given axis using the algorithm specified by the kind keyword. fun <T : Any> argPartition(a: KtNDArray<T>, kth: Int, axis: Int = -1, kind: String = "introselect"): KtNDArray<Long> |
argSort |
Returns the indices that would sort an array. fun <T : Any> argSort(a: KtNDArray<T>, axis: Int = -1, kind: KindSort? = null): KtNDArray<Long> |
array |
Create an flattened array. fun <T : Any> array(arr: Array<T>, order: Order = Order.K, subok: Boolean = false, ndmin: Int = 0): KtNDArray<T>
Create an array. Dimension is set by nesting lists. fun <T : Any> array(arr: List<Any>, order: Order = Order.K, subok: Boolean = false, ndmin: Int = 0): KtNDArray<T> |
asAnyArray |
Convert the input Array to an KtNDArray. fun <T : Any> asAnyArray(a: Array<out Any>, order: Order? = null): KtNDArray<T>
Convert the input List to an KtNDArray. fun <T : Any> asAnyArray(a: List<Any>, order: Order? = null): KtNDArray<T>
Convert the input KtNDArray to an KtNDArray of type T. fun <T : Any> asAnyArray(a: KtNDArray<out Any>, order: Order? = null): KtNDArray<T> |
asArray |
Convert the input list to an KtNDArray. fun <T : Any> asArray(a: List<Any>, order: Order? = null): KtNDArray<T> |
asContiguousArray |
Return a contiguous array. fun <T : Any> asContiguousArray(a: KtNDArray<out Any>): KtNDArray<T> |
asFArray |
Return an array converted to a float type. fun <T : Any> asFArray(a: KtNDArray<T>): KtNDArray<Double> |
atleast1D |
Inputs are converted to list 1-dim KtNDArray. fun atleast1D(vararg arys: Any): List<KtNDArray<Any>> |
atleast2D |
Inputs are converted to list 2-dim KtNDArray. fun atleast2D(vararg arys: Any): List<KtNDArray<Any>> |
atleast3D |
Inputs are converted to list 1-dim KtNDArray. fun atleast3D(vararg arys: Any): List<KtNDArray<Any>> |
binaryRepr |
Return the binary representation of the input number as a string. fun binaryRepr(num: Int, width: Int? = null): String |
bitwiseAnd |
Compute the bit-wise AND of two arrays element-wise. fun bitwiseAnd(x1: KtNDArray<Boolean>, x2: KtNDArray<Boolean>): KtNDArray<Boolean> fun bitwiseAnd(x1: KtNDArray<Boolean>, x2: KtNDArray<Byte>): KtNDArray<Byte> fun bitwiseAnd(x1: KtNDArray<Boolean>, x2: KtNDArray<Short>): KtNDArray<Short> fun bitwiseAnd(x1: KtNDArray<Boolean>, x2: KtNDArray<Int>): KtNDArray<Int> fun bitwiseAnd(x1: KtNDArray<Boolean>, x2: KtNDArray<Long>): KtNDArray<Long> fun bitwiseAnd(x1: KtNDArray<Byte>, x2: KtNDArray<Boolean>): KtNDArray<Byte> fun bitwiseAnd(x1: KtNDArray<Short>, x2: KtNDArray<Boolean>): KtNDArray<Short> fun bitwiseAnd(x1: KtNDArray<Int>, x2: KtNDArray<Boolean>): KtNDArray<Int> fun bitwiseAnd(x1: KtNDArray<Long>, x2: KtNDArray<Boolean>): KtNDArray<Long> fun bitwiseAnd(x1: KtNDArray<Byte>, x2: KtNDArray<Byte>): KtNDArray<Byte> fun bitwiseAnd(x1: KtNDArray<Short>, x2: KtNDArray<Byte>): KtNDArray<Short> fun bitwiseAnd(x1: KtNDArray<Int>, x2: KtNDArray<Byte>): KtNDArray<Int> fun bitwiseAnd(x1: KtNDArray<Long>, x2: KtNDArray<Byte>): KtNDArray<Long> fun bitwiseAnd(x1: KtNDArray<Byte>, x2: KtNDArray<Short>): KtNDArray<Short> fun bitwiseAnd(x1: KtNDArray<Short>, x2: KtNDArray<Short>): KtNDArray<Short> fun bitwiseAnd(x1: KtNDArray<Int>, x2: KtNDArray<Short>): KtNDArray<Int> fun bitwiseAnd(x1: KtNDArray<Long>, x2: KtNDArray<Short>): KtNDArray<Long> fun bitwiseAnd(x1: KtNDArray<Byte>, x2: KtNDArray<Int>): KtNDArray<Int> fun bitwiseAnd(x1: KtNDArray<Short>, x2: KtNDArray<Int>): KtNDArray<Int> fun bitwiseAnd(x1: KtNDArray<Int>, x2: KtNDArray<Int>): KtNDArray<Int> fun bitwiseAnd(x1: KtNDArray<Long>, x2: KtNDArray<Int>): KtNDArray<Long> fun bitwiseAnd(x1: KtNDArray<Byte>, x2: KtNDArray<Long>): KtNDArray<Long> fun bitwiseAnd(x1: KtNDArray<Short>, x2: KtNDArray<Long>): KtNDArray<Long> fun bitwiseAnd(x1: KtNDArray<Int>, x2: KtNDArray<Long>): KtNDArray<Long> fun bitwiseAnd(x1: KtNDArray<Long>, x2: KtNDArray<Long>): KtNDArray<Long> |
bitwiseOr |
Compute the bit-wise OR of two arrays element-wise. fun bitwiseOr(x1: KtNDArray<Boolean>, x2: KtNDArray<Boolean>): KtNDArray<Boolean> fun bitwiseOr(x1: KtNDArray<Boolean>, x2: KtNDArray<Byte>): KtNDArray<Byte> fun bitwiseOr(x1: KtNDArray<Boolean>, x2: KtNDArray<Short>): KtNDArray<Short> fun bitwiseOr(x1: KtNDArray<Boolean>, x2: KtNDArray<Int>): KtNDArray<Int> fun bitwiseOr(x1: KtNDArray<Boolean>, x2: KtNDArray<Long>): KtNDArray<Long> fun bitwiseOr(x1: KtNDArray<Byte>, x2: KtNDArray<Boolean>): KtNDArray<Byte> fun bitwiseOr(x1: KtNDArray<Short>, x2: KtNDArray<Boolean>): KtNDArray<Short> fun bitwiseOr(x1: KtNDArray<Int>, x2: KtNDArray<Boolean>): KtNDArray<Int> fun bitwiseOr(x1: KtNDArray<Long>, x2: KtNDArray<Boolean>): KtNDArray<Long> fun bitwiseOr(x1: KtNDArray<Byte>, x2: KtNDArray<Byte>): KtNDArray<Byte> fun bitwiseOr(x1: KtNDArray<Short>, x2: KtNDArray<Byte>): KtNDArray<Short> fun bitwiseOr(x1: KtNDArray<Int>, x2: KtNDArray<Byte>): KtNDArray<Int> fun bitwiseOr(x1: KtNDArray<Long>, x2: KtNDArray<Byte>): KtNDArray<Long> fun bitwiseOr(x1: KtNDArray<Byte>, x2: KtNDArray<Short>): KtNDArray<Short> fun bitwiseOr(x1: KtNDArray<Short>, x2: KtNDArray<Short>): KtNDArray<Short> fun bitwiseOr(x1: KtNDArray<Int>, x2: KtNDArray<Short>): KtNDArray<Int> fun bitwiseOr(x1: KtNDArray<Long>, x2: KtNDArray<Short>): KtNDArray<Long> fun bitwiseOr(x1: KtNDArray<Byte>, x2: KtNDArray<Int>): KtNDArray<Int> fun bitwiseOr(x1: KtNDArray<Short>, x2: KtNDArray<Int>): KtNDArray<Int> fun bitwiseOr(x1: KtNDArray<Int>, x2: KtNDArray<Int>): KtNDArray<Int> fun bitwiseOr(x1: KtNDArray<Long>, x2: KtNDArray<Int>): KtNDArray<Long> fun bitwiseOr(x1: KtNDArray<Byte>, x2: KtNDArray<Long>): KtNDArray<Long> fun bitwiseOr(x1: KtNDArray<Short>, x2: KtNDArray<Long>): KtNDArray<Long> fun bitwiseOr(x1: KtNDArray<Int>, x2: KtNDArray<Long>): KtNDArray<Long> fun bitwiseOr(x1: KtNDArray<Long>, x2: KtNDArray<Long>): KtNDArray<Long> |
bitwiseXor |
Compute the bit-wise XOR of two arrays element-wise. fun bitwiseXor(x1: KtNDArray<Boolean>, x2: KtNDArray<Boolean>): KtNDArray<Boolean> fun bitwiseXor(x1: KtNDArray<Boolean>, x2: KtNDArray<Byte>): KtNDArray<Byte> fun bitwiseXor(x1: KtNDArray<Boolean>, x2: KtNDArray<Short>): KtNDArray<Short> fun bitwiseXor(x1: KtNDArray<Boolean>, x2: KtNDArray<Int>): KtNDArray<Int> fun bitwiseXor(x1: KtNDArray<Boolean>, x2: KtNDArray<Long>): KtNDArray<Long> fun bitwiseXor(x1: KtNDArray<Byte>, x2: KtNDArray<Boolean>): KtNDArray<Byte> fun bitwiseXor(x1: KtNDArray<Short>, x2: KtNDArray<Boolean>): KtNDArray<Short> fun bitwiseXor(x1: KtNDArray<Int>, x2: KtNDArray<Boolean>): KtNDArray<Int> fun bitwiseXor(x1: KtNDArray<Long>, x2: KtNDArray<Boolean>): KtNDArray<Long> fun bitwiseXor(x1: KtNDArray<Byte>, x2: KtNDArray<Byte>): KtNDArray<Byte> fun bitwiseXor(x1: KtNDArray<Short>, x2: KtNDArray<Byte>): KtNDArray<Short> fun bitwiseXor(x1: KtNDArray<Int>, x2: KtNDArray<Byte>): KtNDArray<Int> fun bitwiseXor(x1: KtNDArray<Long>, x2: KtNDArray<Byte>): KtNDArray<Long> fun bitwiseXor(x1: KtNDArray<Byte>, x2: KtNDArray<Short>): KtNDArray<Short> fun bitwiseXor(x1: KtNDArray<Short>, x2: KtNDArray<Short>): KtNDArray<Short> fun bitwiseXor(x1: KtNDArray<Int>, x2: KtNDArray<Short>): KtNDArray<Int> fun bitwiseXor(x1: KtNDArray<Long>, x2: KtNDArray<Short>): KtNDArray<Long> fun bitwiseXor(x1: KtNDArray<Byte>, x2: KtNDArray<Int>): KtNDArray<Int> fun bitwiseXor(x1: KtNDArray<Short>, x2: KtNDArray<Int>): KtNDArray<Int> fun bitwiseXor(x1: KtNDArray<Int>, x2: KtNDArray<Int>): KtNDArray<Int> fun bitwiseXor(x1: KtNDArray<Long>, x2: KtNDArray<Int>): KtNDArray<Long> fun bitwiseXor(x1: KtNDArray<Byte>, x2: KtNDArray<Long>): KtNDArray<Long> fun bitwiseXor(x1: KtNDArray<Short>, x2: KtNDArray<Long>): KtNDArray<Long> fun bitwiseXor(x1: KtNDArray<Int>, x2: KtNDArray<Long>): KtNDArray<Long> fun bitwiseXor(x1: KtNDArray<Long>, x2: KtNDArray<Long>): KtNDArray<Long> |
block |
Assemble an KtNDArray from nested lists of blocks. fun <T : Any> block(list: List<KtNDArray<T>>): KtNDArray<T> |
bmat |
Build a matrix object from a List. fun <T : Any> bmat(data: List<KtNDArray<T>>): KtNDArray<T>
Build a matrix object from a List of List. fun <T : Any> bmat(data: List<List<KtNDArray<T>>>): KtNDArray<T> |
callFunc |
Wrapper over a call to a numpy method that return an KtNDArray. fun <T : Any> callFunc(nameMethod: Array<String>, args: Array<out Any>? = null, out: KtNDArray<T>? = null, where: BooleanArray? = null, axes: List<Int>? = null, axis: Int? = null, keepdims: Boolean? = null, casting: Casting? = null, order: Order? = null, dtype: KClass<out Any>? = null, subok: Boolean? = null, shape: IntArray? = null, ndmin: Int? = null): KtNDArray<T>
Wrapper over a call to a numpy method that returns an object of a given type. fun <T : Any> callFunc(nameMethod: Array<String>, args: Array<out Any>? = null, out: KtNDArray<T>? = null, where: BooleanArray? = null, axes: List<Int>? = null, axis: Int? = null, keepdims: Boolean? = null, casting: Casting? = null, order: Order? = null, dtype: KClass<Any>? = null, subok: Boolean? = null, kClass: KClass<out T>): T |
columnStack |
Stack 1-D arrays as columns into a 2-D array. fun <T : Any> columnStack(vararg tup: KtNDArray<T>): KtNDArray<T> |
concatenate |
Join a sequence of arrays along an existing axis. fun <T : Any> concatenate(vararg arrs: KtNDArray<T>, axis: Int = 0): KtNDArray<T> |
copy |
Return an array copy of the given object. fun <T : Any> copy(a: KtNDArray<T>, order: Order = Order.K): KtNDArray<T> |
copyto |
Copies values from one array to another, broadcasting as necessary. fun <R : Any, T : Any> copyto(dst: KtNDArray<R>, src: KtNDArray<T>, casting: Casting = Casting.SAME_KIND): Unit |
countNonZero |
Counts the number of non-zero values in the array a. fun <T : Any> countNonZero(a: KtNDArray<T>): Long
Counts the number of non-zero values in the array a along a given axis. fun <T : Any> countNonZero(a: KtNDArray<T>, axis: Int): KtNDArray<Long> |
delete |
Return a new array with sub-arrays along an axis deleted. For a one dimensional array, this returns those entries not returned by arr.get(obj). fun <T : Any> delete(arr: KtNDArray<T>, obj: Int, axis: Int? = null): KtNDArray<T> fun <T : Any> delete(arr: KtNDArray<T>, obj: IntArray, axis: Int? = null): KtNDArray<T> fun <T : Any> delete(arr: KtNDArray<T>, obj: Array<Slice>, axis: Int? = null): KtNDArray<T> |
diag |
Extract a diagonal or construct a diagonal array. fun <T : Number> diag(vararg v: T, k: Int = 0): KtNDArray<T> fun <T : Number> diag(v: KtNDArray<T>, k: Int = 0): KtNDArray<T> |
diagflat |
Create a 2-D array with the flattened input as a diagonal. fun <T : Number> diagflat(v: KtNDArray<T>, k: Int = 0): KtNDArray<T> fun <T : Number> diagflat(v: List<Any>, k: Int = 0): KtNDArray<T> |
dstack |
Stack arrays in sequence depth wise (along third axis). fun <T : Any> dstack(vararg tup: KtNDArray<T>): KtNDArray<T> |
empty |
Return a new array of given shape and T type, without initializing entries. fun <T : Any> empty(vararg shape: Int, order: Order = Order.C): KtNDArray<T> |
emptyLike |
Return a new array with the same shape and T type as a given array. fun <T : Any> emptyLike(prototype: KtNDArray<T>, order: Order = Order.K, subok: Boolean = true, shape: IntArray? = null): KtNDArray<T> |
eye |
Return a 2-D array with ones on the diagonal and zeros elsewhere. fun <T : Any> eye(n: Int, m: Int? = null, k: Int = 0, order: Order = Order.C): KtNDArray<T> |
flatNoneZero |
Return indices that are non-zero in the flattened version of a. fun <T : Number> flatNoneZero(a: KtNDArray<T>): KtNDArray<Long> |
flip |
Reverse the order of elements in an array along the given axis. fun <T : Any> flip(m: KtNDArray<T>, vararg axis: Int? = emptyArray()): KtNDArray<T> |
fliplr |
Flip array in the left/right direction. fun <T : Any> fliplr(m: KtNDArray<T>): KtNDArray<T> |
flipud |
Flip array in the up/down direction. fun <T : Any> flipud(m: KtNDArray<T>): KtNDArray<T> |
fromfile |
Construct an array from data in a text or binary file. fun <T : Any> fromfile(file: File, count: Int = -1, sep: String = "", offset: Int = 0): KtNDArray<T> fun <T : Any> fromfile(file: String, count: Int = -1, sep: String = "", offset: Int = 0): KtNDArray<T> |
fromstring |
A new 1-D array initialized from text data in a string. fun <T : Any> fromstring(string: String, count: Int = -1, sep: String): KtNDArray<T> |
full |
Return a new array of given shape and T type, filled with fill_value. fun <T : Any> full(shape: IntArray, fillValue: T, order: Order = Order.C): KtNDArray<T> |
fullLike |
Return a full array with the same shape and T type as a given array. fun <T : Any> fullLike(prototype: KtNDArray<T>, fillValue: T, order: Order = Order.K, subok: Boolean = true, shape: IntArray? = null): KtNDArray<T> |
geomspace |
Return numbers spaced evenly on a geometric progression. fun <T : Number> geomspace(start: Number, stop: Number, num: Int = 50, endpoint: Boolean = true, axis: Int = 0): KtNDArray<T> |
hsplit |
Split an array into multiple sub-arrays horizontally (column-wise). fun <T : Any> hsplit(arr: KtNDArray<T>, idx: Int): List<KtNDArray<T>> |
hstack |
Stack arrays in sequence horizontally (column wise). fun <T : Any> hstack(vararg tup: KtNDArray<T>): KtNDArray<T> |
identity |
Return the identity array. fun <T : Any> identity(n: Int): KtNDArray<T> |
insert |
Insert values along the given axis before the given indices. fun <T : Any> insert(arr: KtNDArray<T>, obj: Int, values: KtNDArray<T>, axis: Int? = null): KtNDArray<T> fun <T : Any> insert(arr: KtNDArray<T>, obj: IntArray, values: KtNDArray<T>, axis: Int? = null): KtNDArray<T> fun <T : Any> insert(arr: KtNDArray<T>, obj: Array<Slice>, values: KtNDArray<T>, axis: Int? = null): KtNDArray<T> |
invert |
Compute bit-wise inversion, or bit-wise NOT, element-wise. fun invert(x: KtNDArray<Boolean>): KtNDArray<Boolean> fun invert(x: KtNDArray<Byte>): KtNDArray<Byte> fun invert(x: KtNDArray<Short>): KtNDArray<Short> fun invert(x: KtNDArray<Int>): KtNDArray<Int> fun invert(x: KtNDArray<Long>): KtNDArray<Long> |
leftShift |
Shift the bits of an integer to the left. fun leftShift(x1: KtNDArray<Byte>, x2: KtNDArray<Byte>): KtNDArray<Byte> fun leftShift(x1: KtNDArray<Short>, x2: KtNDArray<Byte>): KtNDArray<Short> fun leftShift(x1: KtNDArray<Int>, x2: KtNDArray<Byte>): KtNDArray<Int> fun leftShift(x1: KtNDArray<Long>, x2: KtNDArray<Byte>): KtNDArray<Long> fun leftShift(x1: KtNDArray<Byte>, x2: KtNDArray<Short>): KtNDArray<Short> fun leftShift(x1: KtNDArray<Short>, x2: KtNDArray<Short>): KtNDArray<Short> fun leftShift(x1: KtNDArray<Int>, x2: KtNDArray<Short>): KtNDArray<Int> fun leftShift(x1: KtNDArray<Long>, x2: KtNDArray<Short>): KtNDArray<Long> fun leftShift(x1: KtNDArray<Byte>, x2: KtNDArray<Int>): KtNDArray<Int> fun leftShift(x1: KtNDArray<Short>, x2: KtNDArray<Int>): KtNDArray<Int> fun leftShift(x1: KtNDArray<Int>, x2: KtNDArray<Int>): KtNDArray<Int> fun leftShift(x1: KtNDArray<Long>, x2: KtNDArray<Int>): KtNDArray<Long> fun leftShift(x1: KtNDArray<Byte>, x2: KtNDArray<Long>): KtNDArray<Long> fun leftShift(x1: KtNDArray<Short>, x2: KtNDArray<Long>): KtNDArray<Long> fun leftShift(x1: KtNDArray<Int>, x2: KtNDArray<Long>): KtNDArray<Long> fun leftShift(x1: KtNDArray<Long>, x2: KtNDArray<Long>): KtNDArray<Long> |
lexSort |
Perform an indirect stable sort using a sequence of keys. fun <T : Any> lexSort(keys: Array<KtNDArray<T>>, axis: Int = -1): KtNDArray<Long> |
linspace |
Return evenly spaced numbers over a specified interval. fun <T : Number> linspace(start: Number, stop: Number, num: Int = 50, endpoint: Boolean = true, retstep: Boolean = false, axis: Int = 0): KtNDArray<T> |
loadtxt |
Load data from a text file. fun <T : Any> loadtxt(fname: String, comments: String = "#", delimiter: String? = null, converters: Map<Any, Any>? = null, skiprows: Int = 0, usecols: IntArray? = null, unpack: Boolean = false, ndmin: Int = 0, encoding: String = "bytes", max_rows: Int? = null): KtNDArray<T> |
logspace |
fun <T : Number> logspace(start: Number, stop: Number, num: Int = 50, endpoint: Boolean = true, base: Double = 10.0, axis: Int = 0): KtNDArray<T> |
mat |
Interpret the input as a matrix (2-D KtNDArray). fun <T : Any> mat(data: List<T>): KtNDArray<T> fun <T : Any> mat(data: List<List<T>>): KtNDArray<T> fun <T : Any> mat(data: String): KtNDArray<T> |
meshgrid |
Return coordinate matrices from coordinate vectors. fun <T : Number> meshgrid(vararg xi: KtNDArray<T>): List<KtNDArray<T>> |
moveAxis |
Move axis of an array to new positions. Other axis remain in their original order. fun <T : Any> moveAxis(a: KtNDArray<T>, source: Int, destination: Int): KtNDArray<T> fun <T : Any> moveAxis(a: KtNDArray<T>, source: IntArray, destination: IntArray): KtNDArray<T> |
msort |
Return of an array sorted along the first axis. fun <T : Any> msort(a: KtNDArray<T>): KtNDArray<T> |
nanArgMax |
Return the indices of the maximum values in the specified axis ignoring Double.NaN. fun <T : Number> nanArgMax(a: KtNDArray<T>): Long fun <T : Number> nanArgMax(a: KtNDArray<T>, axis: Int): KtNDArray<Long> |
nanArgMin |
Return the indices of the minimum values in the specified axis ignoring Double.NaN. fun <T : Number> nanArgMin(a: KtNDArray<T>): Long fun <T : Number> nanArgMin(a: KtNDArray<T>, axis: Int): KtNDArray<Long> |
nonZero |
Return the indices of the elements that are non-zero. fun <T : Any> nonZero(a: KtNDArray<T>): Array<Any> |
ones |
Return a new array of given shape and T type, filled with ones. fun <T : Any> ones(vararg shape: Int, order: Order = Order.C): KtNDArray<T> |
onesLike |
Return an array of ones with the same shape and T type as a given array. fun <T : Any> onesLike(prototype: KtNDArray<T>, order: Order = Order.K, subok: Boolean = true, shape: IntArray? = null): KtNDArray<T> |
packbits |
Packs the elements of a binary-valued array into bits in a uint8 array. fun packbits(x: KtNDArray<Boolean>, axis: Int? = null, bitorder: String = "big"): KtNDArray<Byte> fun packbits(x: KtNDArray<Byte>, axis: Int? = null, bitorder: String = "big"): KtNDArray<Byte> fun packbits(x: KtNDArray<Short>, axis: Int? = null, bitorder: String = "big"): KtNDArray<Byte> fun packbits(x: KtNDArray<Int>, axis: Int? = null, bitorder: String = "big"): KtNDArray<Byte> fun packbits(x: KtNDArray<Long>, axis: Int? = null, bitorder: String = "big"): KtNDArray<Byte> |
partition |
Return a partitioned copy of an array. fun <T : Any> partition(a: KtNDArray<T>, kth: Int, axis: Int = -1, kind: String = "introselect"): KtNDArray<T> |
ravel |
Return a contiguous flattened array. fun <T : Any> ravel(a: KtNDArray<T>, order: Order = Order.C): KtNDArray<T> |
repeat |
Repeat elements of an array. fun <T : Any> repeat(a: KtNDArray<T>, reps: Int, axis: Int? = null): KtNDArray<T> fun <T : Any> repeat(a: KtNDArray<T>, reps: IntArray, axis: Int? = null): KtNDArray<T> |
reshape |
Gives a new shape to an array without changing its data. fun <T : Any> reshape(a: KtNDArray<T>, vararg newshape: Int, order: Order = Order.C): KtNDArray<T> |
resize |
Return a new array with the specified shape. fun <T : Any> resize(a: KtNDArray<T>, vararg newshape: Int): KtNDArray<T> |
rightShift |
Shift the bits of an integer to the right. fun rightShift(x1: KtNDArray<Byte>, x2: KtNDArray<Byte>): KtNDArray<Byte> fun rightShift(x1: KtNDArray<Short>, x2: KtNDArray<Byte>): KtNDArray<Short> fun rightShift(x1: KtNDArray<Int>, x2: KtNDArray<Byte>): KtNDArray<Int> fun rightShift(x1: KtNDArray<Long>, x2: KtNDArray<Byte>): KtNDArray<Long> fun rightShift(x1: KtNDArray<Byte>, x2: KtNDArray<Short>): KtNDArray<Short> fun rightShift(x1: KtNDArray<Short>, x2: KtNDArray<Short>): KtNDArray<Short> fun rightShift(x1: KtNDArray<Int>, x2: KtNDArray<Short>): KtNDArray<Int> fun rightShift(x1: KtNDArray<Long>, x2: KtNDArray<Short>): KtNDArray<Long> fun rightShift(x1: KtNDArray<Byte>, x2: KtNDArray<Int>): KtNDArray<Int> fun rightShift(x1: KtNDArray<Short>, x2: KtNDArray<Int>): KtNDArray<Int> fun rightShift(x1: KtNDArray<Int>, x2: KtNDArray<Int>): KtNDArray<Int> fun rightShift(x1: KtNDArray<Long>, x2: KtNDArray<Int>): KtNDArray<Long> fun rightShift(x1: KtNDArray<Byte>, x2: KtNDArray<Long>): KtNDArray<Long> fun rightShift(x1: KtNDArray<Short>, x2: KtNDArray<Long>): KtNDArray<Long> fun rightShift(x1: KtNDArray<Int>, x2: KtNDArray<Long>): KtNDArray<Long> fun rightShift(x1: KtNDArray<Long>, x2: KtNDArray<Long>): KtNDArray<Long> |
roll |
Roll array elements along a given axis. fun <T : Any> roll(a: KtNDArray<T>, shift: IntArray, axes: IntArray? = null): KtNDArray<T> |
rollAxis |
Roll the specified axis backwards, until it lies in a given position. fun <T : Any> rollAxis(a: KtNDArray<T>, axis: Int, start: Int = 0): KtNDArray<T> |
rot90 |
Rotate an array by 90 degrees in the plane specified by axes. fun <T : Any> rot90(m: KtNDArray<T>, k: Int = 1, axes: IntArray = intArrayOf(0, 1)): KtNDArray<T> |
searchSorted |
Find indices where elements should be inserted to maintain order. fun <T : Number> searchSorted(a: KtNDArray<T>, v: T, side: Side = Side.LEFT): Long fun <T : Number> searchSorted(a: KtNDArray<T>, v: KtNDArray<T>, side: Side = Side.LEFT): KtNDArray<Long> |
sort |
Return a sorted copy of an array. fun <T : Any> sort(a: KtNDArray<T>, axis: Int = -1, kind: KindSort? = null): KtNDArray<T> |
stack |
Join a sequence of arrays along a new axis. fun <T : Any> stack(vararg arrs: KtNDArray<T>, axis: Int = 0): KtNDArray<T> |
swapAxes |
Interchange two axes of an array. fun <T : Any> swapAxes(a: KtNDArray<T>, axis1: Int, axis2: Int): KtNDArray<T> |
tile |
Construct an array by repeating a the number of times given by reps. fun <T : Any> tile(a: KtNDArray<T>, reps: Int): KtNDArray<T> fun <T : Any> tile(a: KtNDArray<T>, reps: IntArray): KtNDArray<T> |
transpose |
Permute the dimensions of an array. fun <T : Any> transpose(a: KtNDArray<T>, vararg axis: Int? = emptyArray()): KtNDArray<T> |
tri |
An array with ones at and below the given diagonal and zeros elsewhere. fun <T : Any> tri(n: Int, m: Int? = null, k: Int = 0): KtNDArray<T> |
tril |
Lower triangle of an array. fun tril(m: List<List<Byte>>, k: Int = 0): KtNDArray<Long> fun tril(m: List<List<Short>>, k: Int = 0): KtNDArray<Long> fun tril(m: List<List<Int>>, k: Int = 0): KtNDArray<Long> fun tril(m: List<List<Long>>, k: Int = 0): KtNDArray<Long> fun tril(m: List<List<Float>>, k: Int = 0): KtNDArray<Double> fun tril(m: List<List<Double>>, k: Int = 0): KtNDArray<Double> |
trimZeros |
Trim the leading and/or trailing zeros from a 1-D array or sequence. fun <T : Any> trimZeros(filt: KtNDArray<T>, trim: String = "fb"): KtNDArray<T> |
triu |
Upper triangle of an array. fun triu(m: List<List<Byte>>, k: Int = 0): KtNDArray<Long> fun triu(m: List<List<Short>>, k: Int = 0): KtNDArray<Long> fun triu(m: List<List<Int>>, k: Int = 0): KtNDArray<Long> fun triu(m: List<List<Long>>, k: Int = 0): KtNDArray<Long> fun triu(m: List<List<Float>>, k: Int = 0): KtNDArray<Double> fun triu(m: List<List<Double>>, k: Int = 0): KtNDArray<Double> |
type |
Return KtNDArray type. fun <T : Any> type(l: KtNDArray<T>): Class<T> |
unique |
Find the unique elements of an array. fun <T : Any> unique(ar: KtNDArray<T>, returnIndex: Boolean = false, returnInverse: Boolean = false, returnCounts: Boolean = false, axis: Int? = null): KtNDArray<Long> |
unpackbits |
Unpacks elements of a uint8 array into a binary-valued output array. fun unpackbits(a: KtNDArray<Byte>, axis: Int? = null, count: Int? = null, bitorder: String = "big"): KtNDArray<Byte> |
vander |
Generate a Vandermonde matrix. fun <T : Number> vander(x: KtNDArray<T>, n: Int? = null, increasing: Boolean = false): KtNDArray<T> fun <T : Number> vander(x: Array<T>, n: Int? = null, increasing: Boolean = false): KtNDArray<T> fun <T : Number> vander(x: List<T>, n: Int? = null, increasing: Boolean = false): KtNDArray<T> |
vstack |
Stack arrays in sequence vertically (row wise). fun <T : Any> vstack(vararg tup: KtNDArray<T>): KtNDArray<T> |
zeros |
Return a new array of given shape and T type, filled with zeros. fun <T : Any> zeros(vararg shape: Int, order: Order = Order.C): KtNDArray<T> |
zerosLike |
Return an array of zeros with the same shape and T type as a given array. fun <T : Any> zerosLike(prototype: KtNDArray<T>, order: Order = Order.K, subok: Boolean = true, shape: IntArray? = null): KtNDArray<T> |