T(i,j) = A(i,k) B(k,j)
The Dot-Product performs a single contraction of Tensor components. Available combinations are:
Tensor1
andTensor1
Tensor1
andTensor2
Tensor2
andTensor1
Tensor2
andTensor2
Tensor2
andTensor4
Tensor4
andTensor4
Tensor2s
andTensor2s
T = A*B
T = A.dot.B
T(i,j) = A(i,j) * w
This special case is implemented within the Dot-Product where every Tensor component is multiplied by the scalar quantity w
.
As all Tensor data types are forced as double precision
the scalar value is always converted to double precision
.
T(i,j) = A(i,j,k,l) : B(k,l)
The Double-Dot Product performs a double contraction of Tensor components. Available combinations are:
Tensor2
andTensor2
Tensor2
andTensor4
Tensor4
andTensor4
Tensor2s
andTensor2s
Tensor2s
andTensor4s
Tensor4s
andTensor4s
T = A**B
T = A.ddot.B
T(i,j,k,l) = A(i,j) B(k,l)
The Dyadic Product performs a Tensor multiplication with no contraction. Available combinations are:
Tensor1
andTensor1
Tensor2
andTensor2
Tensor2s
andTensor2s
T = A.dya.B
T(i,j,k,l) = ( A(i,k) B(j,l) + A(i,l) B(j,k) ) / 2
The Crossed Dyadic Product performs a Tensor multiplication with no contraction but crossed indices as stated above. Due to compatibility with symmetric tensors this function refers to a symmetric crossed dyadic product. Available combinations are:
Tensor2
andTensor2
Tensor2s
andTensor2s
T = A.cdya.B
T(i,j) = A(i,j) + B(i,j)
The Addition performs an elementwise addition of Tensor components. Available combinations are:
Tensor1
andTensor1
Tensor2
andTensor2
Tensor2s
andTensor2s
Tensor4
andTensor4
Tensor4s
andTensor4s
T = A+B
T = A.add.B
T(i,j) = A(i,j) - B(i,j)
The Subraction performs an elementwise subtraction of Tensor components. Available combinations are:
Tensor1
andTensor1
Tensor2
andTensor2
Tensor2s
andTensor2s
Tensor4
andTensor4
Tensor4s
andTensor4s
T = A-B
T = A.sub.B