Package org. jetbrains. kotlinx. multik. api
Types
Engine type for default implementation.
Type engine implementations.
Engine type for "pure kotlin" implementation.
The basic object through which calls all ndarray functions. Gives access to ndarray creation and interfaces Math, LinAlg and Statistics. Calling Multik will load the engine. The default is "DEFAULT". If no engine is found, then an exception is thrown only when you call an implementation that requires the engine.
Engine type for implementation with OpenBLAS.
Functions
Returns evenly spaced values within a given interval, where start of interval is 0 and the step is Double. see Multik.arange
Returns evenly spaced values within a given interval, where start of interval is 0. see Multik.arange
Returns evenly spaced values within a given interval, where step is Double.
Returns evenly spaced values within a given interval, where step is Integer.
Returns a new array with the specified shape, where each element is calculated by calling the specified init function.
Returns a new zero array with the specified shape.
Returns a new zero array of type dtype with the specified shape.
Engine provider.
Engine Provider for JS.
Engine Provider for JVM.
Engine Provider for Kotlin/Native targets.
Returns evenly spaced values within a given interval start, stop, more precisely than arange.
Returns an D2Array from Array
Returns an D2Array from Array
Returns an D2Array from Array
Returns an D2Array from Array
Returns an D2Array from Array
Returns an D2Array from Array
Returns a new 1-dimension array from ByteArray.
Returns a new 1-dimension array from DoubleArray.
Returns a new 1-dimension array from FloatArray.
Returns a new 1-dimension array from IntArray.
Returns a new 1-dimension array from LongArray.
Returns a new 1-dimension array from ShortArray.
Returns a new 1-dimension array given shape from a collection.
Creates the 1-dimension array from arg of Number type.
Creates the 1-dimension array from arg of Complex type.
Creates the 2-dimension array from arg of Number type.
Creates the 2-dimension array from arg of Complex type.
Creates the 3-dimension array from arg of Number type.
Creates the 3-dimension array from arg of Complex type.
Creates the 4-dimension array from arg of Number type.
Creates the 4-dimension array from arg of Complex type.
Returns a new 1-dimension array from ComplexDoubleArray.
Returns a new 1-dimension array from ComplexFloatArray.
Returns a new array given shape from collection.
Returns a new 2-dimensions array from ByteArray.
Returns a new 2-dimensions array from DoubleArray.
Returns a new 2-dimensions array from FloatArray.
Returns a new 2-dimensions array from IntArray.
Returns a new 2-dimensions array from LongArray.
Returns a new 2-dimensions array from ShortArray.
Returns a new 2-dimensions array given shape from a collection.
Returns a new array given shape and dimension from collection.
Returns a new 2-dimensions array from ComplexDoubleArray.
Returns a new 2-dimensions array from ComplexFloatArray.
Returns a new 3-dimensions array from ByteArray.
Returns a new 3-dimensions array from DoubleArray.
Returns a new 3-dimensions array from FloatArray.
Returns a new 3-dimensions array from IntArray.
Returns a new 3-dimensions array from LongArray.
Returns a new 3-dimensions array from ShortArray.
Returns a new 3-dimensions array given shape from a collection.
Returns a new 3-dimensions array from ComplexDoubleArray.
Returns a new 3-dimensions array from ComplexFloatArray.
Returns a new 4-dimensions array from ByteArray.
Returns a new 4-dimensions array from DoubleArray.
Returns a new 4-dimensions array from FloatArray.
Returns a new 4-dimensions array from IntArray.
Returns a new 4-dimensions array from LongArray.
Returns a new 4-dimensions array from ShortArray.
Returns a new 4-dimensions array given shape from a collection.
Returns a new 4-dimensions array from ComplexDoubleArray.
Returns a new 4-dimensions array from ComplexFloatArray.
Returns a new n-dimension array from ByteArray.
Returns a new n-dimension array from DoubleArray.
Returns a new n-dimension array from FloatArray.
Returns a new n-dimension array from IntArray.
Returns a new n-dimension array from LongArray.
Returns a new n-dimension array from ShortArray.
Returns a new n-dimension array given shape from a collection.
Returns a new n-dimension array from ComplexDoubleArray.
Returns a new n-dimension array from ComplexFloatArray.
Returns a new 1-dimension array from items.
Returns a new ones array of N dim of type T with specify shape.
Returns a vector of the specified size filled with random numbers uniformly distributed for: Int - [Int.MIN_VALUE, Int.MAX_VALUE) Long - [Long.MIN_VALUE, Long.MAX_VALUE) Float - [0f, 1f) Double - [0.0, 1.0)
Returns an NDArray of the specified shape filled with random numbers uniformly distributed for: Int - [Int.MIN_VALUE, Int.MAX_VALUE) Long - [Long.MIN_VALUE, Long.MAX_VALUE) Float - [0f, 1f) Double - [0.0, 1.0)
Returns a matrix of the specified shape filled with random numbers uniformly distributed for: Int - [Int.MIN_VALUE, Int.MAX_VALUE) Long - [Long.MIN_VALUE, Long.MAX_VALUE) Float - [0f, 1f) Double - [0.0, 1.0)
Returns an NDArray of the specified shape filled with number uniformly distributed between [from, until)
Returns an NDArray of the specified shape filled with number uniformly distributed between [from, until) with the specified seed.
Returns an D2Array.
Returns D1Array containing all elements.
Returns D2Array containing all elements.
Returns D3Array containing all elements.
Returns D4Array containing all elements.
Returns a new zero array of type T with specify shape.