Class ImplCommonOpsWithSemiRing_DSCC

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

public class ImplCommonOpsWithSemiRing_DSCC extends Object
based on ImplCommonOps_DSCC
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    add(double alpha, org.ejml.data.DMatrixSparseCSC A, double beta, org.ejml.data.DMatrixSparseCSC B, org.ejml.data.DMatrixSparseCSC C, org.ejml.ops.DSemiRing semiRing, @Nullable org.ejml.masks.Mask mask, @Nullable org.ejml.data.IGrowArray gw, @Nullable org.ejml.data.DGrowArray gx)
    Performs matrix addition:
    C = A + B
    static void
    addColAppend(org.ejml.data.DMatrixSparseCSC A, int colA, org.ejml.data.DMatrixSparseCSC B, int colB, org.ejml.data.DMatrixSparseCSC C, org.ejml.ops.DSemiRing semiRing, @Nullable org.ejml.data.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(org.ejml.data.DMatrixSparseCSC A, org.ejml.data.DMatrixSparseCSC B, org.ejml.data.DMatrixSparseCSC C, org.ejml.ops.DSemiRing semiRing, @Nullable org.ejml.masks.Mask mask, @Nullable org.ejml.data.IGrowArray gw, @Nullable org.ejml.data.DGrowArray gx)
    Performs element-wise multiplication:
    C_ij = A_ij * B_ij

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ImplCommonOpsWithSemiRing_DSCC

      public ImplCommonOpsWithSemiRing_DSCC()
  • Method Details

    • add

      public static void add(double alpha, org.ejml.data.DMatrixSparseCSC A, double beta, org.ejml.data.DMatrixSparseCSC B, org.ejml.data.DMatrixSparseCSC C, org.ejml.ops.DSemiRing semiRing, @Nullable @Nullable org.ejml.masks.Mask mask, @Nullable @Nullable org.ejml.data.IGrowArray gw, @Nullable @Nullable org.ejml.data.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(org.ejml.data.DMatrixSparseCSC A, int colA, org.ejml.data.DMatrixSparseCSC B, int colB, org.ejml.data.DMatrixSparseCSC C, org.ejml.ops.DSemiRing semiRing, @Nullable @Nullable org.ejml.data.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(org.ejml.data.DMatrixSparseCSC A, org.ejml.data.DMatrixSparseCSC B, org.ejml.data.DMatrixSparseCSC C, org.ejml.ops.DSemiRing semiRing, @Nullable @Nullable org.ejml.masks.Mask mask, @Nullable @Nullable org.ejml.data.IGrowArray gw, @Nullable @Nullable org.ejml.data.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.