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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Field<T>>
voidmultTranspose
(double[] deSrc, Shape deShape, T[] spSrc, int[] rowIndices, int[] colIndices, Shape spShape, T[] dest) Multiplies a real dense matrix to the transpose of a sparse field matrix.static <T extends Field<T>>
voidmultTranspose
(T[] dSrc, Shape dShape, double[] spSrc, int[] rowIndices, int[] colIndices, Shape spShape, T[] dest) Multiplies a dense field matrix to the transpose of a real sparse matrix.
-
Method Details
-
multTranspose
public static <T extends Field<T>> void multTranspose(double[] deSrc, Shape deShape, T[] spSrc, int[] rowIndices, int[] colIndices, Shape spShape, T[] dest) Multiplies a real dense matrix to the transpose of a sparse field matrix.- Parameters:
deSrc
- Entries of dense matrix.deShape
- Shape of dense matrix.spSrc
- Non-zero data of sparse matrix.rowIndices
- Row indices of non-zero data in the sparse matrix.colIndices
- Column indices of non-zero data in the sparse matrix.spShape
- Shape of the sparse matrix.dest
- Array to store the result of the matrix transpose multiplication problem in. Must have lengthdeShape.get(0)*spShape.get(0)
.
-
multTranspose
public static <T extends Field<T>> void multTranspose(T[] dSrc, Shape dShape, double[] spSrc, int[] rowIndices, int[] colIndices, Shape spShape, T[] dest) 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 data of sparse matrix.rowIndices
- Row indices of non-zero data in the sparse matrix.colIndices
- Column indices of non-zero data in the sparse matrix.spShape
- Shape of the sparse matrix.dest
- Array to store the result of the matrix transpose multiplication problem in. Must have lengthdShape.get(0)*spShape.get(0)
.
-