Class MatrixVectorMultWithSemiRing_DSCC

java.lang.Object
org.ejml.sparse.csc.mult.MatrixVectorMultWithSemiRing_DSCC

public class MatrixVectorMultWithSemiRing_DSCC extends Object
based on MartrixVectorMult_DSCC
  • Constructor Details

    • MatrixVectorMultWithSemiRing_DSCC

      public MatrixVectorMultWithSemiRing_DSCC()
  • Method Details

    • mult

      public static void mult(DMatrixSparseCSC A, double[] b, int offsetB, double[] c, int offsetC, DSemiRing semiRing, @Nullable @Nullable Mask mask)
      c = A*b
      Parameters:
      A - (Input) Matrix
      b - (Input) vector
      offsetB - (Input) first index in vector b
      c - (Output) vector
      offsetC - (Output) first index in vector c
      semiRing - Semi-Ring to define + and *
      mask - Mask for specifying which entries should be overwritten
    • mult

      public static void mult(DMatrixSparseCSC A, double[] b, double[] c, DSemiRing semiRing, @Nullable @Nullable Mask mask)
    • multAdd

      public static void multAdd(DMatrixSparseCSC A, double[] b, int offsetB, double[] c, int offsetC, DSemiRing semiRing, @Nullable @Nullable Mask mask)
      c = c + A*b
      Parameters:
      A - (Input) Matrix
      b - (Input) vector
      offsetB - (Input) first index in vector b
      c - (Output) vector
      offsetC - (Output) first index in vector c
      semiRing - Semi-Ring to define + and *
      mask - Mask for specifying which entries should be overwritten
    • mult

      public static void mult(double[] a, int offsetA, DMatrixSparseCSC B, double[] c, int offsetC, DSemiRing semiRing, @Nullable @Nullable Mask mask)
      c = aT*B
      Parameters:
      a - (Input) vector
      offsetA - Input) first index in vector a
      B - (Input) Matrix
      c - (Output) vector
      offsetC - (Output) first index in vector c
      semiRing - Semi-Ring to define + and *
      mask - Mask for specifying which entries should be overwritten
    • mult

      public static void mult(double[] a, DMatrixSparseCSC B, double[] c, DSemiRing semiRing, @Nullable @Nullable Mask mask)
    • innerProduct

      public static double innerProduct(double[] a, int offsetA, DMatrixSparseCSC B, double[] c, int offsetC, DSemiRing semiRing)
      scalar = AT*B*C
      Parameters:
      a - (Input) vector
      offsetA - Input) first index in vector a
      B - (Input) Matrix
      c - (Output) vector
      offsetC - (Output) first index in vector c
      semiRing - Semi-Ring to define + and *