MutableMultiArray

interface MutableMultiArray<T, D : Dimension> : MultiArray<T, D>

A generic ndarray. Methods in this interface support write access to the ndarray.

Functions

Link copied to clipboard
abstract override fun copy(): MutableMultiArray<T, D>

Returns new MultiArray which is a copy of the original ndarray.

Link copied to clipboard
abstract override fun deepCopy(): MutableMultiArray<T, D>

Returns new MultiArray which is a deep copy of the original ndarray.

Link copied to clipboard
abstract override fun reshape(dim1: Int): MutableMultiArray<T, D1>

Returns an ndarray with a new (dim1) shape without changing data.

abstract override fun reshape(dim1: Int, dim2: Int): MutableMultiArray<T, D2>

Returns an ndarray with a new (dim1, dim2) shape without changing data.

abstract override fun reshape(    dim1: Int,     dim2: Int,     dim3: Int): MutableMultiArray<T, D3>

Returns an ndarray with a new (dim1, dim2, dim3) shape without changing data.

abstract override fun reshape(    dim1: Int,     dim2: Int,     dim3: Int,     dim4: Int): MutableMultiArray<T, D4>

Returns an ndarray with a new (dim1, dim2, dim3, dim4) shape without changing data.

abstract override fun reshape(    dim1: Int,     dim2: Int,     dim3: Int,     dim4: Int,     vararg dims: Int): MutableMultiArray<T, DN>

Returns an ndarray with a new (dim1, dim2, dim3, dim4, dims) shape without changing data.

Link copied to clipboard
abstract override fun squeeze(vararg axes: Int): MutableMultiArray<T, DN>

Returns an ndarray with all axes removed equal to one.

Link copied to clipboard
abstract override fun transpose(vararg axes: Int): MutableMultiArray<T, D>

Reverse or permute the axes of an array.

Link copied to clipboard
abstract override fun unsqueeze(vararg axes: Int): MutableMultiArray<T, DN>

Returns a new ndarray with a dimension of size one inserted at the specified axes.

Properties

Link copied to clipboard
abstract override val data: MemoryView<T>

Inheritors

Link copied to clipboard

Extensions

Link copied to clipboard
operator fun <T, D : Dimension> MutableMultiArray<T, D>.divAssign(other: MultiArray<T, D>)

Divide this by other. Inplace operator.

operator fun <T, D : Dimension> MutableMultiArray<T, D>.divAssign(other: T)

Divide by other element-wise. Inplace operator.

Link copied to clipboard
@JvmName(name = "get1")
operator fun <T> MutableMultiArray<T, D2>.get(write: WritableView.Companion, index: Int): MutableMultiArray<T, D1>
@JvmName(name = "get3")
operator fun <T> MutableMultiArray<T, D3>.get(write: WritableView.Companion, index: Int): MutableMultiArray<T, D2>
@JvmName(name = "get4")
operator fun <T> MutableMultiArray<T, D3>.get(    write: WritableView.Companion,     ind1: Int,     ind2: Int): MultiArray<T, D1>
@JvmName(name = "get6")
operator fun <T> MutableMultiArray<T, D4>.get(write: WritableView.Companion, index: Int): MutableMultiArray<T, D3>
@JvmName(name = "get7")
operator fun <T> MutableMultiArray<T, D4>.get(    write: WritableView.Companion,     ind1: Int,     ind2: Int): MultiArray<T, D2>
@JvmName(name = "get8")
operator fun <T> MutableMultiArray<T, D4>.get(    write: WritableView.Companion,     ind1: Int,     ind2: Int,     ind3: Int): MutableMultiArray<T, D1>
Link copied to clipboard
operator fun <T, D : Dimension> MutableMultiArray<T, D>.minusAssign(other: MultiArray<T, D>)

Subtract other from this. Inplace operator.

operator fun <T, D : Dimension> MutableMultiArray<T, D>.minusAssign(other: T)

Subtract other element-wise. Inplace operator.

Link copied to clipboard
inline fun <T, D : Dimension, M : Dimension> MutableMultiArray<T, D>.mutableView(index: Int, axis: Int = 0): MutableMultiArray<T, M>
inline fun <T, D : Dimension, M : Dimension> MutableMultiArray<T, D>.mutableView(index: IntArray, axes: IntArray): MutableMultiArray<T, M>
@JvmName(name = "mutableViewD2")
fun <T> MutableMultiArray<T, D2>.mutableView(index: Int, axis: Int = 0): MutableMultiArray<T, D1>
@JvmName(name = "mutableViewD3")
fun <T> MutableMultiArray<T, D3>.mutableView(index: Int, axis: Int = 0): MutableMultiArray<T, D2>
@JvmName(name = "mutableViewD3toD1")
fun <T> MutableMultiArray<T, D3>.mutableView(    ind1: Int,     ind2: Int,     axis1: Int = 0,     axis2: Int = 1): MutableMultiArray<T, D1>
@JvmName(name = "mutableViewD4")
fun <T> MutableMultiArray<T, D4>.mutableView(index: Int, axis: Int = 0): MutableMultiArray<T, D3>
@JvmName(name = "mutableViewD4toD2")
fun <T> MutableMultiArray<T, D4>.mutableView(    ind1: Int,     ind2: Int,     axis1: Int = 0,     axis2: Int = 1): MutableMultiArray<T, D2>
@JvmName(name = "mutableViewD4toD1")
fun <T> MutableMultiArray<T, D4>.mutableView(    ind1: Int,     ind2: Int,     ind3: Int,     axis1: Int = 0,     axis2: Int = 1,     axis3: Int = 2): MutableMultiArray<T, D1>
@JvmName(name = "mutableViewDN")
fun <T> MutableMultiArray<T, DN>.mutableView(index: Int, axis: Int = 0): MutableMultiArray<T, DN>
@JvmName(name = "mutableViewDN")
fun <T> MutableMultiArray<T, DN>.mutableView(index: IntArray, axes: IntArray): MutableMultiArray<T, DN>
Link copied to clipboard
operator fun <T, D : Dimension> MutableMultiArray<T, D>.plusAssign(other: MultiArray<T, D>)

Add other to this. Inplace operator.

operator fun <T, D : Dimension> MutableMultiArray<T, D>.plusAssign(other: T)

Add other element-wise. Inplace operator.

Link copied to clipboard
@JvmName(name = "set0")
operator fun <T> MutableMultiArray<T, D1>.set(index: Int, value: T)
@JvmName(name = "set1")
operator fun <T> MutableMultiArray<T, D2>.set(index: Int, value: MultiArray<T, D1>)
@JvmName(name = "set2")
operator fun <T> MutableMultiArray<T, D2>.set(    ind1: Int,     ind2: Int,     value: T)
@JvmName(name = "set3")
operator fun <T> MutableMultiArray<T, D3>.set(index: Int, value: MultiArray<T, D2>)
@JvmName(name = "set4")
operator fun <T> MutableMultiArray<T, D3>.set(    ind1: Int,     ind2: Int,     value: MultiArray<T, D1>)
@JvmName(name = "set5")
operator fun <T> MutableMultiArray<T, D3>.set(    ind1: Int,     ind2: Int,     ind3: Int,     value: T)
@JvmName(name = "set6")
operator fun <T> MutableMultiArray<T, D4>.set(index: Int, value: MultiArray<T, D3>)
@JvmName(name = "set7")
operator fun <T> MutableMultiArray<T, D4>.set(    ind1: Int,     ind2: Int,     value: MultiArray<T, D2>)
@JvmName(name = "set8")
operator fun <T> MutableMultiArray<T, D4>.set(    ind1: Int,     ind2: Int,     ind3: Int,     value: MultiArray<T, D1>)
@JvmName(name = "set9")
operator fun <T> MutableMultiArray<T, D4>.set(    ind1: Int,     ind2: Int,     ind3: Int,     ind4: Int,     value: T)
@JvmName(name = "set10")
operator fun <T> MutableMultiArray<T, DN>.set(vararg index: Int, value: T)
@JvmName(name = "set11")
operator fun <T> MutableMultiArray<T, DN>.set(index: IntArray, value: T)
Link copied to clipboard
operator fun <T, D : Dimension> MutableMultiArray<T, D>.timesAssign(other: MultiArray<T, D>)

Multiply this by other. Inplace operator.

operator fun <T, D : Dimension> MutableMultiArray<T, D>.timesAssign(other: T)

Multiply other element-wise. Inplace operator.

Link copied to clipboard
val <T> MutableMultiArray<T, DN>.W: WritableView<T>