Class ImplCommonOpsWithSemiRing_DSCC

java.lang.Object
org.ejml.sparse.csc.misc.ImplCommonOpsWithSemiRing_DSCC

public class ImplCommonOpsWithSemiRing_DSCC extends Object
based on ImplCommonOps_DSCC
  • 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 - Matrix
      B - Matrix
      C - Output matrix.
      semiRing - Semi-Ring to define + and *
      mask - (Optional) Mask for specifying which entries should be overwritten
      gw - (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 - matrix
      colA - column in A
      B - matrix
      colB - column in B
      C - Column in C
      semiRing - 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) Matrix
      B - (Input) Matrix
      C - (Output) Matrix.
      semiRing - Semi-Ring to define + and *
      mask - (Optional) Mask for specifying which entries should be overwritten
      gw - (Optional) Storage for internal workspace. Can be null.
      gx - (Optional) Storage for internal workspace. Can be null.