Package org.ejml.sparse.csc.misc
Class ImplCommonOpsWithSemiRing_FSCC
java.lang.Object
org.ejml.sparse.csc.misc.ImplCommonOpsWithSemiRing_FSCC
@Generated("org.ejml.sparse.csc.misc.ImplCommonOpsWithSemiRing_DSCC")
public class ImplCommonOpsWithSemiRing_FSCC
extends Object
based on ImplCommonOps_FSCC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
add
(float alpha, FMatrixSparseCSC A, float beta, FMatrixSparseCSC B, FMatrixSparseCSC C, FSemiRing semiRing, @Nullable Mask mask, @Nullable IGrowArray gw, @Nullable FGrowArray gx) Performs matrix addition:
C = A + Bstatic void
addColAppend
(FMatrixSparseCSC A, int colA, FMatrixSparseCSC B, int colB, FMatrixSparseCSC C, FSemiRing 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
(FMatrixSparseCSC A, FMatrixSparseCSC B, FMatrixSparseCSC C, FSemiRing semiRing, @Nullable Mask mask, @Nullable IGrowArray gw, @Nullable FGrowArray gx) Performs element-wise multiplication:
C_ij = A_ij * B_ij
-
Constructor Details
-
ImplCommonOpsWithSemiRing_FSCC
public ImplCommonOpsWithSemiRing_FSCC()
-
-
Method Details
-
add
public static void add(float alpha, FMatrixSparseCSC A, float beta, FMatrixSparseCSC B, FMatrixSparseCSC C, FSemiRing semiRing, @Nullable @Nullable Mask mask, @Nullable @Nullable IGrowArray gw, @Nullable @Nullable FGrowArray 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(FMatrixSparseCSC A, int colA, FMatrixSparseCSC B, int colB, FMatrixSparseCSC C, FSemiRing 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(FMatrixSparseCSC A, FMatrixSparseCSC B, FMatrixSparseCSC C, FSemiRing semiRing, @Nullable @Nullable Mask mask, @Nullable @Nullable IGrowArray gw, @Nullable @Nullable FGrowArray 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.
-