Package org.jetbrains.kotlinx.multik.api.math

Types

Link copied to clipboard
interface Math

Mathematical methods interface.

Link copied to clipboard
interface MathEx

Extension interface for Math for improved type support.

Functions

Link copied to clipboard
fun <T : Number, D : Dimension> MultiArray<T, D>.argMax(): Int

Returns flat index of maximum element in an ndarray.

Link copied to clipboard
fun <T : Number, D : Dimension> MultiArray<T, D>.argMin(): Int

Returns flat index of minimum element in an ndarray.

Link copied to clipboard
@JvmName(name = "cosTD")
fun <T : Number, D : Dimension> MultiArray<T, D>.cos(): NDArray<Double, D>

Returns an ndarray of Double from the given ndarray to each element of which a cos function has been applied.

@JvmName(name = "cosFloatD")
fun <D : Dimension> MultiArray<Float, D>.cos(): NDArray<Float, D>

Returns an ndarray of Float from the given ndarray to each element of which a cos function has been applied.

@JvmName(name = "cosComplexDoubleD")
fun <D : Dimension> MultiArray<ComplexDouble, D>.cos(): NDArray<ComplexDouble, D>
@JvmName(name = "cosComplexFloatD")
fun <D : Dimension> MultiArray<ComplexFloat, D>.cos(): NDArray<ComplexFloat, D>

Returns an ndarray of ComplexFloat from the given ndarray to each element of which a cos function has been applied.

@JvmName(name = "cos")
fun <T : Number, D : Dimension> Math.cos(a: MultiArray<T, D>): NDArray<Double, D>

Returns a ndarray of Double from the given ndarray to each element of which a cos function has been applied.

@JvmName(name = "cosFloat")
fun <D : Dimension> Math.cos(a: MultiArray<Float, D>): NDArray<Float, D>

Returns a ndarray of Float from the given ndarray to each element of which a cos function has been applied.

@JvmName(name = "cosComplexDouble")
fun <D : Dimension> Math.cos(a: MultiArray<ComplexDouble, D>): NDArray<ComplexDouble, D>

Returns a ndarray of ComplexDouble from the given ndarray to each element of which a cos function has been applied.

@JvmName(name = "cosComplexFloat")
fun <D : Dimension> Math.cos(a: MultiArray<ComplexFloat, D>): NDArray<ComplexFloat, D>

Returns a ndarray of ComplexFloat from the given ndarray to each element of which a cos function has been applied.

Link copied to clipboard
fun <T : Number, D : Dimension> MultiArray<T, D>.cumSum(): D1Array<T>

Returns cumulative sum of all elements in the given ndarray.

Link copied to clipboard
@JvmName(name = "expTD")
fun <T : Number, D : Dimension> MultiArray<T, D>.exp(): NDArray<Double, D>

Returns an ndarray of Double from the given ndarray to each element of which an exp function has been applied.

@JvmName(name = "expFloatD")
fun <D : Dimension> MultiArray<Float, D>.exp(): NDArray<Float, D>

Returns an ndarray of Float from the given ndarray to each element of which an exp function has been applied.

@JvmName(name = "expComplexDoubleD")
fun <D : Dimension> MultiArray<ComplexDouble, D>.exp(): NDArray<ComplexDouble, D>

Returns an ndarray of ComplexDouble from the given ndarray to each element of which an exp function has been applied.

@JvmName(name = "expComplexFloatD")
fun <D : Dimension> MultiArray<ComplexFloat, D>.exp(): NDArray<ComplexFloat, D>

Returns an ndarray of ComplexFloat from the given ndarray to each element of which an exp function has been applied.

@JvmName(name = "exp")
fun <T : Number, D : Dimension> Math.exp(a: MultiArray<T, D>): NDArray<Double, D>

Returns a ndarray of Double from the given ndarray to each element of which an exp function has been applied.

@JvmName(name = "expFloat")
fun <D : Dimension> Math.exp(a: MultiArray<Float, D>): NDArray<Float, D>

Returns a ndarray of Float from the given ndarray to each element of which an exp function has been applied.

@JvmName(name = "expComplexDouble")
fun <D : Dimension> Math.exp(a: MultiArray<ComplexDouble, D>): NDArray<ComplexDouble, D>

Returns a ndarray of ComplexDouble from the given ndarray to each element of which an exp function has been applied.

@JvmName(name = "expComplexFloat")
fun <D : Dimension> Math.exp(a: MultiArray<ComplexFloat, D>): NDArray<ComplexFloat, D>

Returns a ndarray of ComplexFloat from the given ndarray to each element of which an exp function has been applied.

Link copied to clipboard
@JvmName(name = "logTD")
fun <T : Number, D : Dimension> MultiArray<T, D>.log(): NDArray<Double, D>

Returns an ndarray of Double from the given ndarray to each element of which a log function has been applied.

@JvmName(name = "logFloatD")
fun <D : Dimension> MultiArray<Float, D>.log(): NDArray<Float, D>

Returns an ndarray of Float from the given ndarray to each element of which a log function has been applied.

@JvmName(name = "logComplexDoubleD")
fun <D : Dimension> MultiArray<ComplexDouble, D>.log(): NDArray<ComplexDouble, D>

Returns an ndarray of ComplexDouble from the given ndarray to each element of which a log function has been applied.

@JvmName(name = "logComplexFloatD")
fun <D : Dimension> MultiArray<ComplexFloat, D>.log(): NDArray<ComplexFloat, D>

Returns an ndarray of ComplexFloat from the given ndarray to each element of which a log function has been applied.

@JvmName(name = "log")
fun <T : Number, D : Dimension> Math.log(a: MultiArray<T, D>): NDArray<Double, D>

Returns a ndarray of Double from the given ndarray to each element of which a log function has been applied.

@JvmName(name = "logFloat")
fun <D : Dimension> Math.log(a: MultiArray<Float, D>): NDArray<Float, D>

Returns a ndarray of Float from the given ndarray to each element of which a log function has been applied.

@JvmName(name = "logComplexDouble")
fun <D : Dimension> Math.log(a: MultiArray<ComplexDouble, D>): NDArray<ComplexDouble, D>

Returns a ndarray of ComplexDouble from the given ndarray to each element of which a log function has been applied.

@JvmName(name = "logComplexFloat")
fun <D : Dimension> Math.log(a: MultiArray<ComplexFloat, D>): NDArray<ComplexFloat, D>

Returns a ndarray of ComplexFloat from the given ndarray to each element of which a log function has been applied.

Link copied to clipboard
@JvmName(name = "sinTD")
fun <T : Number, D : Dimension> MultiArray<T, D>.sin(): NDArray<Double, D>
@JvmName(name = "sin")
fun <T : Number, D : Dimension> Math.sin(a: MultiArray<T, D>): NDArray<Double, D>

Returns an ndarray of Double from the given ndarray to each element of which a sin function has been applied.

@JvmName(name = "sinFloatD")
fun <D : Dimension> MultiArray<Float, D>.sin(): NDArray<Float, D>
@JvmName(name = "sinFloat")
fun <D : Dimension> Math.sin(a: MultiArray<Float, D>): NDArray<Float, D>

Returns an ndarray of Float from the given ndarray to each element of which a sin function has been applied.

@JvmName(name = "sinComplexDoubleD")
fun <D : Dimension> MultiArray<ComplexDouble, D>.sin(): NDArray<ComplexDouble, D>
@JvmName(name = "sinComplexDouble")
fun <D : Dimension> Math.sin(a: MultiArray<ComplexDouble, D>): NDArray<ComplexDouble, D>

Returns an ndarray of ComplexDouble from the given ndarray to each element of which a sin function has been applied.

@JvmName(name = "sinComplexFloatD")
fun <D : Dimension> MultiArray<ComplexFloat, D>.sin(): NDArray<ComplexFloat, D>
@JvmName(name = "sinComplexFloat")
fun <D : Dimension> Math.sin(a: MultiArray<ComplexFloat, D>): NDArray<ComplexFloat, D>

Returns an ndarray of ComplexFloat from the given ndarray to each element of which a sin function has been applied.