Class RealDenseSetOps
java.lang.Object
org.flag4j.linalg.ops.dense.real.RealDenseSetOps
This class contains low-level implementations of setting ops for real dense tensors.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidSets an element of a tensor to the specified value.static voidsetValues(double[][] src, double[] dest) Sets the value of this matrix using a 2D array.static voidsetValues(double[] src, double[] dest) Sets the value of this matrix using a 2D array.static voidsetValues(int[][] src, double[] dest) Sets the value of this matrix using a 2D array.static voidsetValues(int[] src, double[] dest) Sets the value of this matrix using a 2D array.static voidSets the value of this matrix using a 2D array.static voidSets the value of this matrix using a 2D array.static voidSets the value of this matrix using a 2D array.static voidSets the value of this matrix using a 2D array.
-
Constructor Details
-
RealDenseSetOps
public RealDenseSetOps()
-
-
Method Details
-
setValues
Sets the value of this matrix using a 2D array.- Parameters:
src- New values of the matrix.dest- Destination array for values.- Throws:
IllegalArgumentException- If the source and destination arrays have different number of total data.
-
setValues
Sets the value of this matrix using a 2D array.- Parameters:
src- New values of the matrix.dest- Destination array for values.- Throws:
IllegalArgumentException- If the source and destination arrays have different number of total data.
-
setValues
public static void setValues(double[] src, double[] dest) Sets the value of this matrix using a 2D array.- Parameters:
src- New values of the matrix.dest- Destination array for values.- Throws:
IllegalArgumentException- If the source and destination arrays have different number of total data.
-
setValues
public static void setValues(int[] src, double[] dest) Sets the value of this matrix using a 2D array.- Parameters:
src- New values of the matrix.dest- Destination array for values.- Throws:
IllegalArgumentException- If the source and destination arrays have different number of total data.
-
setValues
Sets the value of this matrix using a 2D array.- Parameters:
src- New values of the matrix.dest- Destination array for values.- Throws:
IllegalArgumentException- If the source and destination arrays have different number of total data.
-
setValues
Sets the value of this matrix using a 2D array.- Parameters:
src- New values of the matrix.dest- Destination array for values.- Throws:
IllegalArgumentException- If the source and destination arrays have different number of total data.
-
setValues
public static void setValues(double[][] src, double[] dest) Sets the value of this matrix using a 2D array.- Parameters:
src- New values of the matrix.dest- Destination array for values.- Throws:
IllegalArgumentException- If the source and destination arrays have different number of total data.
-
setValues
public static void setValues(int[][] src, double[] dest) Sets the value of this matrix using a 2D array.- Parameters:
src- New values of the matrix.dest- Destination array for values.- Throws:
IllegalArgumentException- If the source and destination arrays have different number of total data.
-
set
Sets an element of a tensor to the specified value.- Parameters:
src- Elements of the tensor. This will be modified.shape- Shape of the tensor.value- Value to set specified index to.indices- Indices of tensor value to be set.
-