api / koma.extensions / set
set
@JvmName("set1DDouble") operator fun
Matrix
<
Double
>.set(i:
Int
, v:
Double
):
Unit
@JvmName("set1DFloat") operator fun
Matrix
<
Float
>.set(i:
Int
, v:
Float
):
Unit
@JvmName("set1DGeneric") operator fun <T>
Matrix
<
T
>.set(i:
Int
, v:
T
):
Unit
@JvmName("set1DInt") 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.
@JvmName("set2DDouble") operator fun
Matrix
<
Double
>.set(i:
Int
, j:
Int
, v:
Double
):
Unit
operator fun
Matrix
<
Double
>.set(rows:
IntRange
, cols:
IntRange
, value:
Double
):
Unit
@JvmName("setColRangeScalarDouble") operator fun
Matrix
<
Double
>.set(rows:
Int
, cols:
IntRange
, value:
Double
):
Unit
operator fun
Matrix
<
Double
>.set(rows:
IntRange
, cols:
Int
, value:
Double
):
Unit
@JvmName("set1DDoubleFromInt") operator fun
Matrix
<
Double
>.set(i:
Int
, v:
Int
):
Unit
@JvmName("set2DDoubleFromInt") operator fun
Matrix
<
Double
>.set(i:
Int
, j:
Int
, v:
Int
):
Unit
@JvmName("set2DFloat") operator fun
Matrix
<
Float
>.set(i:
Int
, j:
Int
, v:
Float
):
Unit
operator fun
Matrix
<
Float
>.set(rows:
IntRange
, cols:
IntRange
, value:
Float
):
Unit
@JvmName("setColRangeScalarFloat") operator fun
Matrix
<
Float
>.set(rows:
Int
, cols:
IntRange
, value:
Float
):
Unit
operator fun
Matrix
<
Float
>.set(rows:
IntRange
, cols:
Int
, value:
Float
):
Unit
@JvmName("set1DFloatFromInt") operator fun
Matrix
<
Float
>.set(i:
Int
, v:
Int
):
Unit
@JvmName("set2DFloatFromInt") operator fun
Matrix
<
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 fun
Matrix
<
Int
>.set(i:
Int
, j:
Int
, v:
Int
):
Unit
operator fun
Matrix
<
Int
>.set(rows:
IntRange
, cols:
IntRange
, value:
Int
):
Unit
@JvmName("setColRangeScalarInt") operator fun
Matrix
<
Int
>.set(rows:
Int
, cols:
IntRange
, value:
Int
):
Unit
operator fun
Matrix
<
Int
>.set(rows:
IntRange
, cols:
Int
, value:
Int
):
Unit
@JvmName("setByte") operator fun
NDArray
<
Byte
>.set(vararg indices:
Int
, value:
NDArray
<
Byte
>):
Unit
operator fun
NDArray
<
Byte
>.set(vararg indices:
Int
, value:
Byte
):
Unit
@JvmName("setDouble") operator fun
NDArray
<
Double
>.set(vararg indices:
Int
, value:
NDArray
<
Double
>):
Unit
operator fun
NDArray
<
Double
>.set(vararg indices:
Int
, value:
Double
):
Unit
@JvmName("setFloat") operator fun
NDArray
<
Float
>.set(vararg indices:
Int
, value:
NDArray
<
Float
>):
Unit
operator fun
NDArray
<
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 fun
NDArray
<
Int
>.set(vararg indices:
Int
, value:
NDArray
<
Int
>):
Unit
operator fun
NDArray
<
Int
>.set(vararg indices:
Int
, value:
Int
):
Unit
@JvmName("setLong") operator fun
NDArray
<
Long
>.set(vararg indices:
Int
, value:
NDArray
<
Long
>):
Unit
operator fun
NDArray
<
Long
>.set(vararg indices:
Int
, value:
Long
):
Unit
@JvmName("setShort") operator fun
NDArray
<
Short
>.set(vararg indices:
Int
, value:
NDArray
<
Short
>):
Unit
operator fun
NDArray
<
Short
>.set(vararg indices:
Int
, value:
Short
):
Unit
@JvmName("setRangesDouble") operator fun
Matrix
<
Double
>.set(rows:
IntRange
, cols:
IntRange
, value:
Matrix
<
Double
>):
Unit
@JvmName("setRangesFloat") operator fun
Matrix
<
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 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.
@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 fun
Matrix
<
Double
>.set(rows:
Int
, cols:
IntRange
, value:
Matrix
<
Double
>):
Unit
@JvmName("setColRangeFloat") operator fun
Matrix
<
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 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.
@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 fun
Matrix
<
Double
>.set(rows:
IntRange
, cols:
Int
, value:
Matrix
<
Double
>):
Unit
@JvmName("setRowRangeFloat") operator fun
Matrix
<
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 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.
@param rows the set of rows to select @param cols the column to select @param value the matrix to set the subslice to