Class ComplexDenseTensorDot
java.lang.Object
org.flag4j.operations.dense.complex.ComplexDenseTensorDot
This class contains methods for computing a tensor dot product, i.e. tensor contraction, between two complex dense tensors.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ComplexDenseTensorDot
private ComplexDenseTensorDot()
-
-
Method Details
-
dot
Computes the tensor dot product along the first tensors last axis and the second tensors second-to-last axis.- Parameters:
src1
- First tensor in the tensor product.src2
- Second tensor in the tensor product.- Returns:
- The tensor dot product along the first tensors last axis and the second tensors second-to-last axis.
- Throws:
IllegalArgumentException
- If this tensors shape along the last axis does not matchsrc2
shape along the second-to-last axis.
-
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 forsrc1
tensor.src2Axes
- Axes along which to compute products forsrc2
tensor.- Returns:
- The tensor dot product over the specified axes.
- Throws:
IllegalArgumentException
- If the two tensors shapes do not match along the specified axes pairwise inaAxes
andbAxes
.IllegalArgumentException
- IfaAxes
andbAxes
do not match in length, or if any of the axes are out of bounds for the corresponding tensor.
-