Class RealComplexCooTensorOperations
java.lang.Object
org.flag4j.operations.sparse.coo.real_complex.RealComplexCooTensorOperations
Utility class for computing operations between a complex sparse COO tensor and a real coo tensor.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CooCTensor
add
(CooCTensor src1, CooTensor src2) Sums two sparse COO tensors and stores result in a new COO tensor.static CooCTensor
sub
(CooCTensor src1, CooTensor src2) Computes difference of two sparse COO tensors and stores result in a new COO tensor.static CooCTensor
sub
(CooTensor src1, CooCTensor src2) Computes difference of two sparse COO tensors and stores result in a new COO tensor.
-
Constructor Details
-
RealComplexCooTensorOperations
private RealComplexCooTensorOperations()
-
-
Method Details
-
add
Sums two sparse COO tensors and stores result in a new COO tensor.- Parameters:
src1
- First tensor in the sum.src2
- Second tensor in the sum.- Returns:
- The element-wise tensor sum of
src1
andsrc2
. - Throws:
LinearAlgebraException
- If the tensorssrc1
andsrc2
do not have the same shape.
-
sub
Computes difference of two sparse COO tensors and stores result in a new COO tensor.- Parameters:
src1
- First tensor in the difference.src2
- Second tensor in the difference.- Returns:
- The element-wise tensor difference of
src1
andsrc2
. - Throws:
LinearAlgebraException
- If the tensorssrc1
andsrc2
do not have the same shape.
-
sub
Computes difference of two sparse COO tensors and stores result in a new COO tensor.- Parameters:
src1
- First tensor in the difference.src2
- Second tensor in the difference.- Returns:
- The element-wise tensor difference of
src1
andsrc2
. - Throws:
LinearAlgebraException
- If the tensorssrc1
andsrc2
do not have the same shape.
-