Class ImplCommonOps_DSCC

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

public class ImplCommonOps_DSCC extends Object
Implementation class. Not recommended for direct use. Instead use CommonOps_DSCC instead.
  • Constructor Details

    • ImplCommonOps_DSCC

      public ImplCommonOps_DSCC()
  • Method Details

    • select

      public static void select(DMatrixSparseCSC A, DMatrixSparseCSC output, IPredicateBinary selector)
    • transpose

      public static void transpose(DMatrixSparseCSC A, DMatrixSparseCSC C, @Nullable @Nullable IGrowArray gw)
      Performs a matrix transpose.
      Parameters:
      A - Original matrix. Not modified.
      C - Storage for transposed 'A'. Reshaped.
      gw - (Optional) Storage for internal workspace. Can be null.
    • add

      public static void add(double alpha, DMatrixSparseCSC A, double beta, DMatrixSparseCSC B, DMatrixSparseCSC C, @Nullable @Nullable IGrowArray gw, @Nullable @Nullable DGrowArray gx)
      Performs matrix addition:
      C = αA + βB
      Parameters:
      alpha - scalar value multiplied against A
      A - Matrix
      beta - scalar value multiplied against B
      B - Matrix
      C - Output matrix.
      gw - (Optional) Storage for internal workspace. Can be null.
      gx - (Optional) Storage for internal workspace. Can be null.
    • addColAppend

      public static void addColAppend(double alpha, DMatrixSparseCSC A, int colA, double beta, DMatrixSparseCSC B, int colB, DMatrixSparseCSC C, @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:
      alpha - scalar
      A - matrix
      colA - column in A
      beta - scalar
      B - matrix
      colB - column in B
      C - Column in C
      gw - workspace
    • elementMult

      public static void elementMult(DMatrixSparseCSC A, DMatrixSparseCSC B, DMatrixSparseCSC C, @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.
      gw - (Optional) Storage for internal workspace. Can be null.
      gx - (Optional) Storage for internal workspace. Can be null.
    • removeZeros

      public static void removeZeros(DMatrixSparseCSC input, DMatrixSparseCSC output, double tol)
    • removeZeros

      public static void removeZeros(DMatrixSparseCSC A, double tol)
    • duplicatesAdd

      public static void duplicatesAdd(DMatrixSparseCSC A, @Nullable @Nullable IGrowArray work)
    • symmLowerToFull

      public static void symmLowerToFull(DMatrixSparseCSC A, DMatrixSparseCSC B, @Nullable @Nullable IGrowArray gw)
      Given a symmetric matrix which is represented by a lower triangular matrix convert it back into a full symmetric matrix
      Parameters:
      A - (Input) Lower triangular matrix
      B - (Output) Symmetric matrix.
      gw - (Optional) Workspace. Can be null.