Module flag4j
Class RealFieldDenseCooMatMultTranspose
java.lang.Object
org.flag4j.linalg.ops.dense_sparse.coo.real_field_ops.RealFieldDenseCooMatMultTranspose
This class contains several low level methods for computing matrix-matrix multiplications with a transpose for a real/field and sparse/dense matrix.
Warning: These methods do not perform any sanity checks.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmultTranspose
(double[] dSrc, Shape dShape, Field<T>[] spSrc, int[] rowIndices, int[] colIndices, Shape spShape) Multiplies a real dense matrix to the transpose of a sparse field matrix.multTranspose
(Field<T>[] dSrc, Shape dShape, double[] spSrc, int[] rowIndices, int[] colIndices, Shape spShape) Multiplies a dense field matrix to the transpose of a real sparse matrix.
-
Constructor Details
-
RealFieldDenseCooMatMultTranspose
private RealFieldDenseCooMatMultTranspose()
-
-
Method Details
-
multTranspose
public static <T extends Field<T>> Field<T>[] multTranspose(double[] dSrc, Shape dShape, Field<T>[] spSrc, int[] rowIndices, int[] colIndices, Shape spShape) Multiplies a real dense matrix to the transpose of a sparse field matrix.- Parameters:
dSrc
- Entries of dense matrix.dShape
- Shape of dense matrix.spSrc
- Non-zero entries of sparse matrix.rowIndices
- Row indices of non-zero entries in the sparse matrix.colIndices
- Column indices of non-zero entries in the sparse matrix.spShape
- Shape of the sparse matrix.- Returns:
- The entries of the matrix resulting from multiplying the first matrix by the transpose of the second matrix.
-
multTranspose
public static <T extends Field<T>> Field<T>[] multTranspose(Field<T>[] dSrc, Shape dShape, double[] spSrc, int[] rowIndices, int[] colIndices, Shape spShape) Multiplies a dense field matrix to the transpose of a real sparse matrix.- Parameters:
dSrc
- Entries of dense matrix.dShape
- Shape of dense matrix.spSrc
- Non-zero entries of sparse matrix.rowIndices
- Row indices of non-zero entries in the sparse matrix.colIndices
- Column indices of non-zero entries in the sparse matrix.spShape
- Shape of the sparse matrix.- Returns:
- The entries of the matrix resulting from multiplying the first matrix by the transpose of the second matrix.
-