Class DenseSemiringMatMultTranspose
java.lang.Object
org.flag4j.linalg.ops.dense.semiring_ops.DenseSemiringMatMultTranspose
This utility class contains methods for computing the dense matrix multiplication between a matrix and the transpose of a matrix.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Semiring<T>>
voidmultTranspose
(T[] src1, Shape shape1, T[] src2, Shape shape2, T[] dest) Multiplies a matrix to the transpose of a second matrix.static <T extends Semiring<T>>
voidmultTransposeBlocked
(T[] src1, Shape shape1, T[] src2, Shape shape2, T[] dest) Multiplies a matrix to the transpose of a second matrix using a blocked algorithm.static <T extends Semiring<T>>
voidmultTransposeBlockedConcurrent
(T[] src1, Shape shape1, T[] src2, Shape shape2, T[] dest) Multiplies a matrix to the transpose of a second matrix using a concurrent implementation of a blocked algorithm.static <T extends Semiring<T>>
voidmultTransposeConcurrent
(T[] src1, Shape shape1, T[] src2, Shape shape2, T[] dest) Multiplies a matrix to the transpose of a second matrix using a concurrent algorithm.
-
Method Details
-
multTranspose
public static <T extends Semiring<T>> void multTranspose(T[] src1, Shape shape1, T[] src2, Shape shape2, T[] dest) Multiplies a matrix to the transpose of a second matrix. This method may be significantly faster than computing the transpose and multiplication in two steps.- Parameters:
src1
- Entries of the first matrix.shape1
- Shape of the first matrix.src2
- Entries of the second matrix.shape2
- Shape of the second matrix.dest
- Array to store resulting matrix multiplication in.
-
multTransposeBlocked
public static <T extends Semiring<T>> void multTransposeBlocked(T[] src1, Shape shape1, T[] src2, Shape shape2, T[] dest) Multiplies a matrix to the transpose of a second matrix using a blocked algorithm. This method may be significantly faster than computing the transpose and multiplication in two steps.- Parameters:
src1
- Entries of the first matrix.shape1
- Shape of the first matrix.src2
- Entries of the second matrix.shape2
- Shape of the second matrix.dest
- Array to store resulting matrix multiplication in.
-
multTransposeConcurrent
public static <T extends Semiring<T>> void multTransposeConcurrent(T[] src1, Shape shape1, T[] src2, Shape shape2, T[] dest) Multiplies a matrix to the transpose of a second matrix using a concurrent algorithm. This method may be significantly faster than computing the transpose and multiplication in two steps.- Parameters:
src1
- Entries of the first matrix.shape1
- Shape of the first matrix.src2
- Entries of the second matrix.shape2
- Shape of the second matrix.dest
- Array to store resulting matrix multiplication in.
-
multTransposeBlockedConcurrent
public static <T extends Semiring<T>> void multTransposeBlockedConcurrent(T[] src1, Shape shape1, T[] src2, Shape shape2, T[] dest) Multiplies a matrix to the transpose of a second matrix using a concurrent implementation of a blocked algorithm. This method may be significantly faster than computing the transpose and multiplication in two steps.- Parameters:
src1
- Entries of the first matrix.shape1
- Shape of the first matrix.src2
- Entries of the second matrix.shape2
- Shape of the second matrix.dest
- Array to store resulting matrix multiplication in.
-