Package org.flag4j.operations.dense.real
Class RealDenseSetOperations
java.lang.Object
org.flag4j.operations.dense.real.RealDenseSetOperations
This class contains low-level implementations of setting operations for real dense tensors.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Sets an element of a tensor to the specified value.static void
setValues
(double[][] src, double[] dest) Sets the value of this matrix using a 2D array.static void
setValues
(double[] src, double[] dest) Sets the value of this matrix using a 2D array.static void
setValues
(int[][] src, double[] dest) Sets the value of this matrix using a 2D array.static void
setValues
(int[] src, double[] dest) Sets the value of this matrix using a 2D array.static void
Sets the value of this matrix using a 2D array.static void
Sets the value of this matrix using a 2D array.static void
Sets the value of this matrix using a 2D array.static void
Sets the value of this matrix using a 2D array.
-
Constructor Details
-
RealDenseSetOperations
public RealDenseSetOperations()
-
-
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 entries.
-
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 entries.
-
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 entries.
-
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 entries.
-
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 entries.
-
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 entries.
-
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 entries.
-
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 entries.
-
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.
-