Class ComplexDenseOperations
java.lang.Object
org.flag4j.operations.dense.complex.ComplexDenseOperations
This class provides low level methods for computing operations on dense complex tensors.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CNumber[]
Adds a scalar value to all entries of a tensor.static CNumber[]
Adds a scalar value to all entries of a tensor.static CNumber[]
Computes the element-wise addition of two tensors.static void
Adds a scalar from each entry of this tensor and stores the result in the tensor.static void
Computes element-wise addition between tensors and stores the result in the first tensor.static CNumber
Multiplies all entries in a tensor.static CNumber[]
Computes the reciprocals, element-wise, of a tensor.static CNumber[]
Computes the scalar division of a tensor.static CNumber[]
Computes the scalar division of a tensor.static CNumber[]
Computes the scalar multiplication of a tensor.static CNumber[]
Computes the scalar multiplication of a tensor.static CNumber[]
Subtracts a scalar value to all entries of a tensor.static CNumber[]
Subtracts a scalar value from all entries of a tensor.static CNumber[]
Computes the element-wise subtraction of two tensors.static void
Subtracts a scalar from each entry of this tensor and stores the result in the tensor.static void
Computes element-wise subtraction between tensors and stores the result in the first tensor.
-
Constructor Details
-
ComplexDenseOperations
private ComplexDenseOperations()
-
-
Method Details
-
add
Computes the element-wise addition of two tensors.- Parameters:
src1
- Entries of first tensor.shape1
- Shape of first tensor.src2
- Entries of second tensor.shape2
- Shape of second tensor.- Returns:
- The element wise addition of two tensors.
- Throws:
IllegalArgumentException
- If entry arrays are not the same size.
-
add
-
add
-
sub
-
sub
Computes the element-wise subtraction of two tensors.- Parameters:
src1
- Entries of first tensor.shape1
- Shape of first tensor.src2
- Entries of second tensor.shape2
- Shape of second tensor.- Returns:
- The element wise subtraction of two tensors.
- Throws:
IllegalArgumentException
- If entry arrays are not the same size.
-
sub
-
subEq
Computes element-wise subtraction between tensors and stores the result in the first tensor.- Parameters:
src1
- First tensor in subtraction. Also, where the result will be stored.shape1
- Shape of first tensor.src2
- Second tensor in the subtraction.shape2
- Shape of second tensor.
-
subEq
-
addEq
Computes element-wise addition between tensors and stores the result in the first tensor.- Parameters:
src1
- First tensor in addition. Also, where the result will be stored.shape1
- Shape of first tensor.src2
- Second tensor in the addition.shape2
- Shape of second tensor.
-
addEq
-
prod
-
scalMult
-
scalMult
-
scalDiv
-
scalDiv
-
recip
-