Class RealCooTensorOperations
java.lang.Object
org.flag4j.operations.sparse.coo.real.RealCooTensorOperations
Utility class for computing operations between two real sparse COO tensors.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
RealCooTensorOperations
private RealCooTensorOperations()
-
-
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 between 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.
-