The tensor on the left-hand side of the operation.
The tensor on the right-hand side of the operation.
The resulting operation.
import dopt.core : evaluate; auto a = float32([2, 1], [ 1.0f, 2.0f ]); auto b = float32([1, 2], [ 3.0f, 4.0f ]); auto c = matmul(a, b); assert(c.evaluate().get!float == [ 3.0f, 4.0f, 6.0f, 8.0f ]);
Computes the matrix multiplication between two rank-2 tensors.