Package koma.extensions
Extensions for External Classes
Name | Summary |
---|---|
kotlin.Double | |
kotlin.Int |
Functions
Name | Summary |
---|---|
all | fun Matrix < Double >.all(f: ( Double ) -> Boolean ): Boolean fun Matrix < Float >.all(f: ( Float ) -> Boolean ): Boolean fun <T> Matrix < T >.all(f: ( T ) -> Boolean ): Boolean fun Matrix < Int >.all(f: ( Int ) -> Boolean ): Boolean Checks to see if all elements cause f to return true. |
allClose | fun Matrix < Double >.allClose(other: Matrix < Double >, rtol: Double = 1e-05, atol: Double = 1e-08): Boolean fun Matrix < Float >.allClose(other: Matrix < Float >, rtol: Double = 1e-05, atol: Double = 1e-08): Boolean |
any | fun Matrix < Double >.any(f: ( Double ) -> Boolean ): Boolean fun Matrix < Float >.any(f: ( Float ) -> Boolean ): Boolean fun <T> Matrix < T >.any(f: ( T ) -> Boolean ): Boolean fun Matrix < Int >.any(f: ( Int ) -> Boolean ): Boolean Checks to see if any element in the matrix causes f to return true. |
create | fun NumericalNDArrayFactory < Byte >.create(vararg lengths: Int , filler: (idx: IntArray ) -> Byte ): NDArray < Byte > fun NumericalNDArrayFactory < Double >.create(vararg lengths: Int , filler: (idx: IntArray ) -> Double ): NDArray < Double > fun NumericalNDArrayFactory < Float >.create(vararg lengths: Int , filler: (idx: IntArray ) -> Float ): NDArray < Float > fun <T> GenericNDArrayFactory < T >.create(vararg lengths: Int , filler: (idx: IntArray ) -> T ): DefaultGenericNDArray < T > fun NumericalNDArrayFactory < Int >.create(vararg lengths: Int , filler: (idx: IntArray ) -> Int ): NDArray < Int > fun NumericalNDArrayFactory < Long >.create(vararg lengths: Int , filler: (idx: IntArray ) -> Long ): NDArray < Long > fun NumericalNDArrayFactory < Short >.create(vararg lengths: Int , filler: (idx: IntArray ) -> Short ): NDArray < Short > |
div | operator fun NDArray < Byte >.div(other: Byte ): NDArray < Byte > operator fun NDArray < Double >.div(other: Double ): NDArray < Double > operator fun NDArray < Float >.div(other: Float ): NDArray < Float > operator fun NDArray < Int >.div(other: Int ): NDArray < Int > operator fun NDArray < Long >.div(other: Long ): NDArray < Long > operator fun NDArray < Short >.div(other: Short ): NDArray < Short > |
emul | infix fun Matrix < Double >.emul(other: Matrix < Double >): Matrix < Double > Allow infix operator "a emul b" to be element-wise multiplication of two matrices. |
fill | fun Matrix < Double >.fill(f: (row: Int , col: Int ) -> Double ): Matrix < Double > fun Matrix < Float >.fill(f: (row: Int , col: Int ) -> Float ): Matrix < Float > fun <T> Matrix < T >.fill(f: (row: Int , col: Int ) -> T ): Matrix < T > fun Matrix < Int >.fill(f: (row: Int , col: Int ) -> Int ): Matrix < Int > Fills the matrix with the values returned by the input function. fun NDArray < Byte >.fill(f: (idx: IntArray ) -> Byte ): NDArray < Byte > fun NDArray < Double >.fill(f: (idx: IntArray ) -> Double ): NDArray < Double > fun NDArray < Float >.fill(f: (idx: IntArray ) -> Float ): NDArray < Float > fun <T> NDArray < T >.fill(f: (idx: IntArray ) -> T ): NDArray < T > fun NDArray < Int >.fill(f: (idx: IntArray ) -> Int ): NDArray < Int > fun NDArray < Long >.fill(f: (idx: IntArray ) -> Long ): NDArray < Long > fun NDArray < Short >.fill(f: (idx: IntArray ) -> Short ): NDArray < Short > |
fillBoth | fun NDArray < Byte >.fillBoth(f: (nd: IntArray , linear: Int ) -> Byte ): NDArray < Byte > fun NDArray < Double >.fillBoth(f: (nd: IntArray , linear: Int ) -> Double ): NDArray < Double > fun NDArray < Float >.fillBoth(f: (nd: IntArray , linear: Int ) -> Float ): NDArray < Float > fun <T> NDArray < T >.fillBoth(f: (nd: IntArray , linear: Int ) -> T ): NDArray < T > fun NDArray < Int >.fillBoth(f: (nd: IntArray , linear: Int ) -> Int ): NDArray < Int > fun NDArray < Long >.fillBoth(f: (nd: IntArray , linear: Int ) -> Long ): NDArray < Long > fun NDArray < Short >.fillBoth(f: (nd: IntArray , linear: Int ) -> Short ): NDArray < Short > |
fillLinear | fun NDArray < Byte >.fillLinear(f: (idx: Int ) -> Byte ): NDArray < Byte > fun NDArray < Double >.fillLinear(f: (idx: Int ) -> Double ): NDArray < Double > fun NDArray < Float >.fillLinear(f: (idx: Int ) -> Float ): NDArray < Float > fun <T> NDArray < T >.fillLinear(f: (idx: Int ) -> T ): NDArray < T > fun NDArray < Int >.fillLinear(f: (idx: Int ) -> Int ): NDArray < Int > fun NDArray < Long >.fillLinear(f: (idx: Int ) -> Long ): NDArray < Long > fun NDArray < Short >.fillLinear(f: (idx: Int ) -> Short ): NDArray < Short > |
forEach | fun Matrix < Double >.forEach(f: ( Double ) -> Unit ): Unit fun Matrix < Float >.forEach(f: ( Float ) -> Unit ): Unit fun <T> Matrix < T >.forEach(f: ( T ) -> Unit ): Unit fun Matrix < Int >.forEach(f: ( Int ) -> Unit ): Unit Passes each element in row major order into a function. fun NDArray < Byte >.forEach(f: (ele: Byte ) -> Unit ): Unit fun NDArray < Double >.forEach(f: (ele: Double ) -> Unit ): Unit fun NDArray < Float >.forEach(f: (ele: Float ) -> Unit ): Unit fun <T> NDArray < T >.forEach(f: (ele: T ) -> Unit ): Unit fun NDArray < Int >.forEach(f: (ele: Int ) -> Unit ): Unit fun NDArray < Long >.forEach(f: (ele: Long ) -> Unit ): Unit fun NDArray < Short >.forEach(f: (ele: Short ) -> Unit ): Unit Takes each element in a NDArray and passes them through f. |
forEachIndexed | fun Matrix < Double >.forEachIndexed(f: (row: Int , col: Int , ele: Double ) -> Unit ): Unit fun Matrix < Float >.forEachIndexed(f: (row: Int , col: Int , ele: Float ) -> Unit ): Unit fun <T> Matrix < T >.forEachIndexed(f: (row: Int , col: Int , ele: T ) -> Unit ): Unit fun Matrix < Int >.forEachIndexed(f: (row: Int , col: Int , ele: Int ) -> Unit ): Unit Passes each element in row major order into a function along with its index location. fun NDArray < Byte >.forEachIndexed(f: (idx: Int , ele: Byte ) -> Unit ): Unit fun NDArray < Double >.forEachIndexed(f: (idx: Int , ele: Double ) -> Unit ): Unit fun NDArray < Float >.forEachIndexed(f: (idx: Int , ele: Float ) -> Unit ): Unit fun <T> NDArray < T >.forEachIndexed(f: (idx: Int , ele: T ) -> Unit ): Unit fun NDArray < Int >.forEachIndexed(f: (idx: Int , ele: Int ) -> Unit ): Unit fun NDArray < Long >.forEachIndexed(f: (idx: Int , ele: Long ) -> Unit ): Unit fun NDArray < Short >.forEachIndexed(f: (idx: Int , ele: Short ) -> Unit ): Unit Takes each element in a NDArray and passes them through f. Index given to f is a linear index, depending on the underlying storage major dimension. |
forEachIndexedN | fun NDArray < Byte >.forEachIndexedN(f: (idx: IntArray , ele: Byte ) -> Unit ): Unit fun NDArray < Double >.forEachIndexedN(f: (idx: IntArray , ele: Double ) -> Unit ): Unit fun NDArray < Float >.forEachIndexedN(f: (idx: IntArray , ele: Float ) -> Unit ): Unit fun <T> NDArray < T >.forEachIndexedN(f: (idx: IntArray , ele: T ) -> Unit ): Unit fun NDArray < Int >.forEachIndexedN(f: (idx: IntArray , ele: Int ) -> Unit ): Unit fun NDArray < Long >.forEachIndexedN(f: (idx: IntArray , ele: Long ) -> Unit ): Unit fun NDArray < Short >.forEachIndexedN(f: (idx: IntArray , ele: Short ) -> Unit ): Unit Takes each element in a NDArray and passes them through f. Index given to f is the full ND index of the element. |
get | operator fun Matrix < Double >.get(i: Int , j: Int ): Double operator fun Matrix < Float >.get(i: Int , j: Int ): Float operator fun <T> Matrix < T >.get(i: Int , j: Int ): T operator fun Matrix < Int >.get(i: Int , j: Int ): Int operator fun NDArray < Byte >.get(vararg indices: IntRange ): NDArray < Byte > operator fun NDArray < Byte >.get(vararg indices: Int ): Byte operator fun NDArray < Double >.get(vararg indices: IntRange ): NDArray < Double > operator fun NDArray < Double >.get(vararg indices: Int ): Double operator fun NDArray < Float >.get(vararg indices: IntRange ): NDArray < Float > operator fun NDArray < Float >.get(vararg indices: Int ): Float operator fun <T> NDArray < T >.get(vararg indices: IntRange ): NDArray < T > operator fun <T> NDArray < T >.get(vararg indices: Int ): T operator fun NDArray < Int >.get(vararg indices: IntRange ): NDArray < Int > operator fun NDArray < Int >.get(vararg indices: Int ): Int operator fun NDArray < Long >.get(vararg indices: IntRange ): NDArray < Long > operator fun NDArray < Long >.get(vararg indices: Int ): Long operator fun NDArray < Short >.get(vararg indices: IntRange ): NDArray < Short > operator fun NDArray < Short >.get(vararg indices: Int ): Short operator fun Matrix < Double >.get(i: Int ): Double operator fun Matrix < Float >.get(i: Int ): Float operator fun <T> Matrix < T >.get(i: Int ): T operator fun Matrix < Int >.get(i: Int ): Int Gets the ith element in the matrix. If 2D, selects elements in row-major order. operator fun Matrix < Double >.get(rows: IntRange , cols: IntRange ): Matrix < Double > operator fun Matrix < Float >.get(rows: IntRange , cols: IntRange ): Matrix < Float > operator fun <T> Matrix < T >.get(rows: IntRange , cols: IntRange ): Matrix < T > operator fun Matrix < Int >.get(rows: IntRange , cols: IntRange ): Matrix < Int > Allow slicing, e.g. matrix[1..2, 3..4] . Note that the range 1..2 is inclusive, so it will retrieve row 1 and 2. Use 1.until(2) for a non-inclusive range.operator fun Matrix < Double >.get(rows: IntRange , cols: Int ): Matrix < Double > operator fun Matrix < Float >.get(rows: IntRange , cols: Int ): Matrix < Float > operator fun <T> Matrix < T >.get(rows: IntRange , cols: Int ): Matrix < T > operator fun Matrix < Int >.get(rows: IntRange , cols: Int ): Matrix < Int > Allows for slicing of the rows and selection of a single column operator fun Matrix < Double >.get(rows: Int , cols: IntRange ): Matrix < Double > operator fun Matrix < Float >.get(rows: Int , cols: IntRange ): Matrix < Float > operator fun <T> Matrix < T >.get(rows: Int , cols: IntRange ): Matrix < T > operator fun Matrix < Int >.get(rows: Int , cols: IntRange ): Matrix < Int > Allows for slicing of the cols and selection of a single row |
map | fun Matrix < Double >.map(f: ( Double ) -> Double ): Matrix < Double > fun Matrix < Float >.map(f: ( Float ) -> Float ): Matrix < Float > fun <T> Matrix < T >.map(f: ( T ) -> T ): Matrix < T > fun Matrix < Int >.map(f: ( Int ) -> Int ): Matrix < Int > Takes each element in a matrix, passes them through f, and puts the output of f into an output matrix. This process is done in row-major order. fun NDArray < Byte >.map(f: ( Byte ) -> Byte ): NDArray < Byte > fun NDArray < Double >.map(f: ( Double ) -> Double ): NDArray < Double > fun NDArray < Float >.map(f: ( Float ) -> Float ): NDArray < Float > fun <T> NDArray < T >.map(f: ( T ) -> T ): DefaultGenericNDArray < T > fun NDArray < Int >.map(f: ( Int ) -> Int ): NDArray < Int > fun NDArray < Long >.map(f: ( Long ) -> Long ): NDArray < Long > fun NDArray < Short >.map(f: ( Short ) -> Short ): NDArray < Short > Takes each element in a NDArray, passes them through f, and puts the output of f into an output NDArray. |
mapIndexed | fun Matrix < Double >.mapIndexed(f: (row: Int , col: Int , ele: Double ) -> Double ): Matrix < Double > fun Matrix < Float >.mapIndexed(f: (row: Int , col: Int , ele: Float ) -> Float ): Matrix < Float > fun <T> Matrix < T >.mapIndexed(f: (row: Int , col: Int , ele: T ) -> T ): Matrix < T > fun Matrix < Int >.mapIndexed(f: (row: Int , col: Int , ele: Int ) -> Int ): Matrix < Int > Takes each element in a matrix, passes them through f, and puts the output of f into an output matrix. This process is done in row-major order. fun NDArray < Byte >.mapIndexed(f: (idx: Int , ele: Byte ) -> Byte ): NDArray < Byte > fun NDArray < Double >.mapIndexed(f: (idx: Int , ele: Double ) -> Double ): NDArray < Double > fun NDArray < Float >.mapIndexed(f: (idx: Int , ele: Float ) -> Float ): NDArray < Float > fun <T> NDArray < T >.mapIndexed(f: (idx: Int , ele: T ) -> T ): DefaultGenericNDArray < T > fun NDArray < Int >.mapIndexed(f: (idx: Int , ele: Int ) -> Int ): NDArray < Int > fun NDArray < Long >.mapIndexed(f: (idx: Int , ele: Long ) -> Long ): NDArray < Long > fun NDArray < Short >.mapIndexed(f: (idx: Int , ele: Short ) -> Short ): NDArray < Short > Takes each element in a NDArray, passes them through f, and puts the output of f into an output NDArray. Index given to f is a linear index, depending on the underlying storage major dimension. |
mapIndexedN | fun NDArray < Byte >.mapIndexedN(f: (idx: IntArray , ele: Byte ) -> Byte ): NDArray < Byte > fun NDArray < Double >.mapIndexedN(f: (idx: IntArray , ele: Double ) -> Double ): NDArray < Double > fun NDArray < Float >.mapIndexedN(f: (idx: IntArray , ele: Float ) -> Float ): NDArray < Float > fun <T> NDArray < T >.mapIndexedN(f: (idx: IntArray , ele: T ) -> T ): NDArray < T > fun NDArray < Int >.mapIndexedN(f: (idx: IntArray , ele: Int ) -> Int ): NDArray < Int > fun NDArray < Long >.mapIndexedN(f: (idx: IntArray , ele: Long ) -> Long ): NDArray < Long > fun NDArray < Short >.mapIndexedN(f: (idx: IntArray , ele: Short ) -> Short ): NDArray < Short > Takes each element in a NDArray, passes them through f, and puts the output of f into an output NDArray. Index given to f is the full ND index of the element. |
minus | operator fun NDArray < Byte >.minus(other: Byte ): NDArray < Byte > operator fun NDArray < Byte >.minus(other: NDArray < Byte >): NDArray < Byte > operator fun NDArray < Double >.minus(other: Double ): NDArray < Double > operator fun NDArray < Double >.minus(other: NDArray < Double >): NDArray < Double > operator fun NDArray < Float >.minus(other: Float ): NDArray < Float > operator fun NDArray < Float >.minus(other: NDArray < Float >): NDArray < Float > operator fun NDArray < Int >.minus(other: Int ): NDArray < Int > operator fun NDArray < Int >.minus(other: NDArray < Int >): NDArray < Int > operator fun NDArray < Long >.minus(other: Long ): NDArray < Long > operator fun NDArray < Long >.minus(other: NDArray < Long >): NDArray < Long > operator fun NDArray < Short >.minus(other: Short ): NDArray < Short > operator fun NDArray < Short >.minus(other: NDArray < Short >): NDArray < Short >``operator fun Matrix < Double >.minus(value: Int ): Matrix < Double > Allow operator overloading with non-Double scalars |
plus | operator fun NDArray < Byte >.plus(other: Byte ): NDArray < Byte > operator fun NDArray < Byte >.plus(other: NDArray < Byte >): NDArray < Byte > operator fun NDArray < Double >.plus(other: Double ): NDArray < Double > operator fun NDArray < Double >.plus(other: NDArray < Double >): NDArray < Double > operator fun NDArray < Float >.plus(other: Float ): NDArray < Float > operator fun NDArray < Float >.plus(other: NDArray < Float >): NDArray < Float > operator fun NDArray < Int >.plus(other: Int ): NDArray < Int > operator fun NDArray < Int >.plus(other: NDArray < Int >): NDArray < Int > operator fun NDArray < Long >.plus(other: Long ): NDArray < Long > operator fun NDArray < Long >.plus(other: NDArray < Long >): NDArray < Long > operator fun NDArray < Short >.plus(other: Short ): NDArray < Short > operator fun NDArray < Short >.plus(other: NDArray < Short >): NDArray < Short >``operator fun Matrix < Double >.plus(value: Int ): Matrix < Double > Allow operator overloading with non-Double scalars |
pow | infix fun NDArray < Byte >.pow(exponent: Int ): NDArray < Byte > infix fun NDArray < Double >.pow(exponent: Int ): NDArray < Double > infix fun NDArray < Float >.pow(exponent: Int ): NDArray < Float > infix fun NDArray < Int >.pow(exponent: Int ): NDArray < Int > infix fun NDArray < Long >.pow(exponent: Int ): NDArray < Long > infix fun NDArray < Short >.pow(exponent: Int ): NDArray < Short > |
reshape | fun NDArray < Double >.reshape(rows: Int , cols: Int ): Matrix < Double > fun NDArray < Float >.reshape(rows: Int , cols: Int ): Matrix < Float > fun <T> Matrix < T >.reshape(rows: Int , cols: Int ): Matrix < T > fun NDArray < Int >.reshape(rows: Int , cols: Int ): Matrix < Int > Returns a new Matrix with the given shape, populated with the data in this array. fun NDArray < Byte >.reshape(vararg dims: Int ): NDArray < Byte > fun NDArray < Double >.reshape(vararg dims: Int ): NDArray < Double > fun NDArray < Float >.reshape(vararg dims: Int ): NDArray < Float > fun <T> NDArray < T >.reshape(vararg dims: Int ): NDArray < T > fun NDArray < Int >.reshape(vararg dims: Int ): NDArray < Int > fun NDArray < Long >.reshape(vararg dims: Int ): NDArray < Long > fun NDArray < Short >.reshape(vararg dims: Int ): NDArray < Short > Returns a new NDArray with the given shape, populated with the data in this array. |
set | operator fun Matrix < Double >.set(i: Int , v: Double ): Unit operator fun Matrix < Float >.set(i: Int , v: Float ): Unit operator fun <T> Matrix < T >.set(i: Int , v: T ): Unit operator fun Matrix < Int >.set(i: Int , v: Int ): Unit Set the ith element in the matrix. If 2D, selects elements in row-major order. operator fun Matrix < Double >.set(i: Int , j: Int , v: Double ): Unit operator fun Matrix < Double >.set(rows: IntRange , cols: IntRange , value: Double ): Unit operator fun Matrix < Double >.set(rows: Int , cols: IntRange , value: Double ): Unit operator fun Matrix < Double >.set(rows: IntRange , cols: Int , value: Double ): Unit operator fun Matrix < Double >.set(i: Int , v: Int ): Unit operator fun Matrix < Double >.set(i: Int , j: Int , v: Int ): Unit operator fun Matrix < Float >.set(i: Int , j: Int , v: Float ): Unit operator fun Matrix < Float >.set(rows: IntRange , cols: IntRange , value: Float ): Unit operator fun Matrix < Float >.set(rows: Int , cols: IntRange , value: Float ): Unit operator fun Matrix < Float >.set(rows: IntRange , cols: Int , value: Float ): Unit operator fun Matrix < Float >.set(i: Int , v: Int ): Unit operator fun Matrix < Float >.set(i: Int , j: Int , v: Int ): Unit operator fun <T> Matrix < T >.set(i: Int , j: Int , v: T ): Unit operator fun <T> Matrix < T >.set(rows: IntRange , cols: IntRange , value: T ): Unit operator fun <T> Matrix < T >.set(rows: Int , cols: IntRange , value: T ): Unit operator fun <T> Matrix < T >.set(rows: IntRange , cols: Int , value: T ): Unit operator fun Matrix < Int >.set(i: Int , j: Int , v: Int ): Unit operator fun Matrix < Int >.set(rows: IntRange , cols: IntRange , value: Int ): Unit operator fun Matrix < Int >.set(rows: Int , cols: IntRange , value: Int ): Unit operator fun Matrix < Int >.set(rows: IntRange , cols: Int , value: Int ): Unit operator fun NDArray < Byte >.set(vararg indices: Int , value: NDArray < Byte >): Unit operator fun NDArray < Byte >.set(vararg indices: Int , value: Byte ): Unit operator fun NDArray < Double >.set(vararg indices: Int , value: NDArray < Double >): Unit operator fun NDArray < Double >.set(vararg indices: Int , value: Double ): Unit operator fun NDArray < Float >.set(vararg indices: Int , value: NDArray < Float >): Unit operator fun NDArray < Float >.set(vararg indices: Int , value: Float ): Unit operator fun <T> NDArray < T >.set(vararg indices: Int , value: NDArray < T >): Unit operator fun <T> NDArray < T >.set(vararg indices: Int , value: T ): Unit operator fun NDArray < Int >.set(vararg indices: Int , value: NDArray < Int >): Unit operator fun NDArray < Int >.set(vararg indices: Int , value: Int ): Unit operator fun NDArray < Long >.set(vararg indices: Int , value: NDArray < Long >): Unit operator fun NDArray < Long >.set(vararg indices: Int , value: Long ): Unit operator fun NDArray < Short >.set(vararg indices: Int , value: NDArray < Short >): Unit operator fun NDArray < Short >.set(vararg indices: Int , value: Short ): Unit operator fun Matrix < Double >.set(rows: IntRange , cols: IntRange , value: Matrix < Double >): Unit operator fun Matrix < Float >.set(rows: IntRange , cols: IntRange , value: Matrix < Float >): Unit operator fun <T> Matrix < T >.set(rows: IntRange , cols: IntRange , value: Matrix < T >): Unit operator fun Matrix < Int >.set(rows: IntRange , cols: IntRange , value: Matrix < Int >): Unit Allow assignment to a slice, e.g. matrix[1..2, 3..4] =something. Note that the range 1..2 is inclusive, so it will retrieve row 1 and 2. Use 1.until(2) for a non-inclusive range.operator fun Matrix < Double >.set(rows: Int , cols: IntRange , value: Matrix < Double >): Unit operator fun Matrix < Float >.set(rows: Int , cols: IntRange , value: Matrix < Float >): Unit operator fun <T> Matrix < T >.set(rows: Int , cols: IntRange , value: Matrix < T >): Unit operator fun Matrix < Int >.set(rows: Int , cols: IntRange , value: Matrix < Int >): Unit Allow assignment to a slice, e.g. matrix[2, 3..4] =something. Note that the range 3..4 is inclusive, so it will retrieve col 3 and 4. Use 1.until(2) for a non-inclusive range.operator fun Matrix < Double >.set(rows: IntRange , cols: Int , value: Matrix < Double >): Unit operator fun Matrix < Float >.set(rows: IntRange , cols: Int , value: Matrix < Float >): Unit operator fun <T> Matrix < T >.set(rows: IntRange , cols: Int , value: Matrix < T >): Unit operator fun Matrix < Int >.set(rows: IntRange , cols: Int , value: Matrix < Int >): Unit Allow assignment to a slice, e.g. matrix[1..2, 3] =something. Note that the range 1..2 is inclusive, so it will retrieve row 1 and 2. Use 1.until(2) for a non-inclusive range. |
times | operator fun NDArray < Byte >.times(other: NDArray < Byte >): NDArray < Byte > operator fun NDArray < Byte >.times(other: Byte ): NDArray < Byte > operator fun NDArray < Double >.times(other: NDArray < Double >): NDArray < Double > operator fun NDArray < Double >.times(other: Double ): NDArray < Double > operator fun NDArray < Float >.times(other: NDArray < Float >): NDArray < Float > operator fun NDArray < Float >.times(other: Float ): NDArray < Float > operator fun NDArray < Int >.times(other: NDArray < Int >): NDArray < Int > operator fun NDArray < Int >.times(other: Int ): NDArray < Int > operator fun NDArray < Long >.times(other: NDArray < Long >): NDArray < Long > operator fun NDArray < Long >.times(other: Long ): NDArray < Long > operator fun NDArray < Short >.times(other: NDArray < Short >): NDArray < Short > operator fun NDArray < Short >.times(other: Short ): NDArray < Short >``operator fun Matrix < Double >.times(other: Int ): Matrix < Double > Multiply a scalar by a matrix |
toByteArray | fun NDArray < Byte >.toByteArray(): ByteArray Converts this NDArray into a one-dimensional ByteArray in row-major order. |
toDoubleArray | fun NDArray < Double >.toDoubleArray(): DoubleArray Converts this NDArray into a one-dimensional DoubleArray in row-major order. |
toFloatArray | fun NDArray < Float >.toFloatArray(): FloatArray Converts this NDArray into a one-dimensional FloatArray in row-major order. |
toIntArray | fun NDArray < Int >.toIntArray(): IntArray Converts this NDArray into a one-dimensional IntArray in row-major order. |
toLongArray | fun NDArray < Long >.toLongArray(): LongArray Converts this NDArray into a one-dimensional LongArray in row-major order. |
toMatrix | fun NDArray < Double >.toMatrix(): Matrix < Double > fun NDArray < Float >.toMatrix(): Matrix < Float > fun NDArray < Int >.toMatrix(): Matrix < Int > |
toMatrixOrNull | fun <T> NDArray < T >.toMatrixOrNull(): Matrix < T >? |
toShortArray | fun NDArray < Short >.toShortArray(): ShortArray Converts this NDArray into a one-dimensional ShortArray in row-major order. |
toTypedArray | fun <T> NDArray < T >.toTypedArray(): Array < T > Converts this NDArray into a one-dimensional Array in row-major order. |
unaryMinus | operator fun NDArray < Byte >.unaryMinus(): NDArray < Byte > operator fun NDArray < Double >.unaryMinus(): NDArray < Double > operator fun NDArray < Float >.unaryMinus(): NDArray < Float > operator fun NDArray < Int >.unaryMinus(): NDArray < Int > operator fun NDArray < Long >.unaryMinus(): NDArray < Long > operator fun NDArray < Short >.unaryMinus(): NDArray < Short > |