api / koma.extensions / set

set

@JvmName("set1DDouble") operator funMatrix<Double>.set(i:Int, v:Double):Unit @JvmName("set1DFloat") operator funMatrix<Float>.set(i:Int, v:Float):Unit @JvmName("set1DGeneric") operator fun <T>Matrix<T>.set(i:Int, v:T):Unit @JvmName("set1DInt") operator funMatrix<Int>.set(i:Int, v:Int):Unit

Set the ith element in the matrix. If 2D, selects elements in row-major order.

@JvmName("set2DDouble") operator funMatrix<Double>.set(i:Int, j:Int, v:Double):Unit operator funMatrix<Double>.set(rows:IntRange, cols:IntRange, value:Double):Unit @JvmName("setColRangeScalarDouble") operator funMatrix<Double>.set(rows:Int, cols:IntRange, value:Double):Unit operator funMatrix<Double>.set(rows:IntRange, cols:Int, value:Double):Unit @JvmName("set1DDoubleFromInt") operator funMatrix<Double>.set(i:Int, v:Int):Unit @JvmName("set2DDoubleFromInt") operator funMatrix<Double>.set(i:Int, j:Int, v:Int):Unit @JvmName("set2DFloat") operator funMatrix<Float>.set(i:Int, j:Int, v:Float):Unit operator funMatrix<Float>.set(rows:IntRange, cols:IntRange, value:Float):Unit @JvmName("setColRangeScalarFloat") operator funMatrix<Float>.set(rows:Int, cols:IntRange, value:Float):Unit operator funMatrix<Float>.set(rows:IntRange, cols:Int, value:Float):Unit @JvmName("set1DFloatFromInt") operator funMatrix<Float>.set(i:Int, v:Int):Unit @JvmName("set2DFloatFromInt") operator funMatrix<Float>.set(i:Int, j:Int, v:Int):Unit @JvmName("set2DGeneric") 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 @JvmName("setColRangeScalarGeneric") 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 @JvmName("set2DInt") operator funMatrix<Int>.set(i:Int, j:Int, v:Int):Unit operator funMatrix<Int>.set(rows:IntRange, cols:IntRange, value:Int):Unit @JvmName("setColRangeScalarInt") operator funMatrix<Int>.set(rows:Int, cols:IntRange, value:Int):Unit operator funMatrix<Int>.set(rows:IntRange, cols:Int, value:Int):Unit @JvmName("setByte") operator funNDArray<Byte>.set(vararg indices:Int, value:NDArray<Byte>):Unit operator funNDArray<Byte>.set(vararg indices:Int, value:Byte):Unit @JvmName("setDouble") operator funNDArray<Double>.set(vararg indices:Int, value:NDArray<Double>):Unit operator funNDArray<Double>.set(vararg indices:Int, value:Double):Unit @JvmName("setFloat") operator funNDArray<Float>.set(vararg indices:Int, value:NDArray<Float>):Unit operator funNDArray<Float>.set(vararg indices:Int, value:Float):Unit @JvmName("setGeneric") 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 @JvmName("setInt") operator funNDArray<Int>.set(vararg indices:Int, value:NDArray<Int>):Unit operator funNDArray<Int>.set(vararg indices:Int, value:Int):Unit @JvmName("setLong") operator funNDArray<Long>.set(vararg indices:Int, value:NDArray<Long>):Unit operator funNDArray<Long>.set(vararg indices:Int, value:Long):Unit @JvmName("setShort") operator funNDArray<Short>.set(vararg indices:Int, value:NDArray<Short>):Unit operator funNDArray<Short>.set(vararg indices:Int, value:Short):Unit@JvmName("setRangesDouble") operator funMatrix<Double>.set(rows:IntRange, cols:IntRange, value:Matrix<Double>):Unit @JvmName("setRangesFloat") operator funMatrix<Float>.set(rows:IntRange, cols:IntRange, value:Matrix<Float>):Unit @JvmName("setRangesGeneric") operator fun <T>Matrix<T>.set(rows:IntRange, cols:IntRange, value:Matrix<T>):Unit @JvmName("setRangesInt") operator funMatrix<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.

@param rows the set of rows to select @param cols the set of columns to select @param value the matrix to set the subslice to

@JvmName("setColRangeDouble") operator funMatrix<Double>.set(rows:Int, cols:IntRange, value:Matrix<Double>):Unit @JvmName("setColRangeFloat") operator funMatrix<Float>.set(rows:Int, cols:IntRange, value:Matrix<Float>):Unit @JvmName("setColRangeGeneric") operator fun <T>Matrix<T>.set(rows:Int, cols:IntRange, value:Matrix<T>):Unit @JvmName("setColRangeInt") operator funMatrix<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.

@param rows the row to select @param cols the set of columns to select @param value the matrix to set the subslice to

@JvmName("setRowRangeDouble") operator funMatrix<Double>.set(rows:IntRange, cols:Int, value:Matrix<Double>):Unit @JvmName("setRowRangeFloat") operator funMatrix<Float>.set(rows:IntRange, cols:Int, value:Matrix<Float>):Unit @JvmName("setRowRangeGeneric") operator fun <T>Matrix<T>.set(rows:IntRange, cols:Int, value:Matrix<T>):Unit @JvmName("setRowRangeInt") operator funMatrix<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.

@param rows the set of rows to select @param cols the column to select @param value the matrix to set the subslice to