Package org.ejml.sparse.csc.misc
Class ImplCommonOpsWithSemiRing_DSCC
java.lang.Object
org.ejml.sparse.csc.misc.ImplCommonOpsWithSemiRing_DSCC
based on ImplCommonOps_DSCC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
add
(double alpha, DMatrixSparseCSC A, double beta, DMatrixSparseCSC B, DMatrixSparseCSC C, DSemiRing semiRing, @Nullable Mask mask, @Nullable IGrowArray gw, @Nullable DGrowArray gx) Performs matrix addition:
C = A + Bstatic void
addColAppend
(DMatrixSparseCSC A, int colA, DMatrixSparseCSC B, int colB, DMatrixSparseCSC C, DSemiRing semiRing, @Nullable IGrowArray gw) Adds the results of adding a column in A and B as a new column in C.
C(:,end+1) = A(:,colA) + B(:,colB)static void
elementMult
(DMatrixSparseCSC A, DMatrixSparseCSC B, DMatrixSparseCSC C, DSemiRing semiRing, @Nullable Mask mask, @Nullable IGrowArray gw, @Nullable DGrowArray gx) Performs element-wise multiplication:
C_ij = A_ij * B_ij
-
Constructor Details
-
ImplCommonOpsWithSemiRing_DSCC
public ImplCommonOpsWithSemiRing_DSCC()
-
-
Method Details
-
add
public static void add(double alpha, DMatrixSparseCSC A, double beta, DMatrixSparseCSC B, DMatrixSparseCSC C, DSemiRing semiRing, @Nullable @Nullable Mask mask, @Nullable @Nullable IGrowArray gw, @Nullable @Nullable DGrowArray gx) Performs matrix addition:
C = A + B- Parameters:
A
- MatrixB
- MatrixC
- Output matrix.semiRing
- Semi-Ring to define + and *mask
- (Optional) Mask for specifying which entries should be overwrittengw
- (Optional) Storage for internal workspace. Can be null.gx
- (Optional) Storage for internal workspace. Can be null.
-
addColAppend
public static void addColAppend(DMatrixSparseCSC A, int colA, DMatrixSparseCSC B, int colB, DMatrixSparseCSC C, DSemiRing semiRing, @Nullable @Nullable IGrowArray gw) Adds the results of adding a column in A and B as a new column in C.
C(:,end+1) = A(:,colA) + B(:,colB)- Parameters:
A
- matrixcolA
- column in AB
- matrixcolB
- column in BC
- Column in CsemiRing
- Semi-Ring to define + and *gw
- workspace
-
elementMult
public static void elementMult(DMatrixSparseCSC A, DMatrixSparseCSC B, DMatrixSparseCSC C, DSemiRing semiRing, @Nullable @Nullable Mask mask, @Nullable @Nullable IGrowArray gw, @Nullable @Nullable DGrowArray gx) Performs element-wise multiplication:
C_ij = A_ij * B_ij- Parameters:
A
- (Input) MatrixB
- (Input) MatrixC
- (Output) Matrix.semiRing
- Semi-Ring to define + and *mask
- (Optional) Mask for specifying which entries should be overwrittengw
- (Optional) Storage for internal workspace. Can be null.gx
- (Optional) Storage for internal workspace. Can be null.
-