Module flag4j
Class RealFieldDenseMatMultTranspose
java.lang.Object
org.flag4j.linalg.ops.dense.real_field_ops.RealFieldDenseMatMultTranspose
This class contains several low level methods for computing matrix-matrix multiplications with a transpose for a real dense matrix and a dense field matrix.
Warning: These methods do not perform any sanity checks.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmultTranspose
(double[] src1, Shape shape1, Field<T>[] src2, Shape shape2) Multiplies a matrix to the transpose of a second matrix.multTranspose
(Field<T>[] src1, Shape shape1, double[] src2, Shape shape2) Multiplies a matrix to the transpose of a second matrix.multTransposeBlocked
(double[] src1, Shape shape1, Field<T>[] src2, Shape shape2) Multiplies a matrix to the transpose of a second matrix using a blocked algorithm.multTransposeBlocked
(Field<T>[] src1, Shape shape1, double[] src2, Shape shape2) Multiplies a matrix to the transpose of a second matrix using a blocked algorithm.multTransposeBlockedConcurrent
(double[] src1, Shape shape1, Field<T>[] src2, Shape shape2) Multiplies a matrix to the transpose of a second matrix using a concurrent implementation of a blocked algorithm.multTransposeBlockedConcurrent
(Field<T>[] src1, Shape shape1, double[] src2, Shape shape2) Multiplies a matrix to the transpose of a second matrix using a concurrent implementation of a blocked algorithm.multTransposeConcurrent
(double[] src1, Shape shape1, Field<T>[] src2, Shape shape2) Multiplies a matrix to the transpose of a second matrix using a concurrent algorithm.multTransposeConcurrent
(Field<T>[] src1, Shape shape1, double[] src2, Shape shape2) Multiplies a matrix to the transpose of a second matrix using a concurrent algorithm.
-
Constructor Details
-
RealFieldDenseMatMultTranspose
private RealFieldDenseMatMultTranspose()
-
-
Method Details
-
multTranspose
public static <T extends Field<T>> Field<T>[] multTranspose(Field<T>[] src1, Shape shape1, double[] src2, Shape shape2) 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.- Returns:
- The result of multiplying the first matrix with the transpose of the second matrix.
-
multTransposeBlocked
public static <T extends Field<T>> Field<T>[] multTransposeBlocked(Field<T>[] src1, Shape shape1, double[] src2, Shape shape2) 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.- Returns:
- The result of multiplying the first matrix with the transpose of the second matrix.
-
multTransposeConcurrent
public static <T extends Field<T>> Field<T>[] multTransposeConcurrent(Field<T>[] src1, Shape shape1, double[] src2, Shape shape2) 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.- Returns:
- The result of multiplying the first matrix with the transpose of the second matrix.
-
multTransposeBlockedConcurrent
public static <T extends Field<T>> Field<T>[] multTransposeBlockedConcurrent(Field<T>[] src1, Shape shape1, double[] src2, Shape shape2) 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.- Returns:
- The result of multiplying the first matrix with the transpose of the second matrix.
-
multTranspose
public static <T extends Field<T>> Field<T>[] multTranspose(double[] src1, Shape shape1, Field<T>[] src2, Shape shape2) 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.- Returns:
- The result of multiplying the first matrix with the transpose of the second matrix.
-
multTransposeBlocked
public static <T extends Field<T>> Field<T>[] multTransposeBlocked(double[] src1, Shape shape1, Field<T>[] src2, Shape shape2) 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.- Returns:
- The result of multiplying the first matrix with the transpose of the second matrix.
-
multTransposeConcurrent
public static <T extends Field<T>> Field<T>[] multTransposeConcurrent(double[] src1, Shape shape1, Field<T>[] src2, Shape shape2) 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.- Returns:
- The result of multiplying the first matrix with the transpose of the second matrix.
-
multTransposeBlockedConcurrent
public static <T extends Field<T>> Field<T>[] multTransposeBlockedConcurrent(double[] src1, Shape shape1, Field<T>[] src2, Shape shape2) 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.- Returns:
- The result of multiplying the first matrix with the transpose of the second matrix.
-