Class RealCooTensorDot
java.lang.Object
org.flag4j.linalg.ops.sparse.coo.real.RealCooTensorDot
Utility class for computing tensor dot products between two real sparse COO tensors.
-
Method Summary
-
Method Details
-
tensorDot
Computes the tensor contraction of this tensor with a specified tensor over the specified set of axes. That is, computes the sum of products between the two tensors along the specified set of axes.- Parameters:
src1- First tensor in the contraction.src2- Second tensor in the contraction.src1Axes- Axes along which to compute products forsrc1tensor.src2Axes- Axes along which to compute products forsrc2tensor.- Returns:
- The tensor dot product over the specified axes.
- Throws:
IllegalArgumentException- If the two tensors shapes do not match along the specified axes pairwise inaAxesandbAxes.IllegalArgumentException- IfaAxesandbAxesdo not match in length, or if any of the axes are out of bounds for the corresponding tensor.
-