Package org.ejml.sparse.csc.misc
Class ImplCommonOps_DSCC
java.lang.Object
org.ejml.sparse.csc.misc.ImplCommonOps_DSCC
Implementation class. Not recommended for direct use. Instead use
CommonOps_DSCC
instead.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidadd(double alpha, DMatrixSparseCSC A, double beta, DMatrixSparseCSC B, DMatrixSparseCSC C, @Nullable IGrowArray gw, @Nullable DGrowArray gx) Performs matrix addition:
C = αA + βBstatic voidaddColAppend(double alpha, DMatrixSparseCSC A, int colA, double beta, DMatrixSparseCSC B, int colB, DMatrixSparseCSC C, @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 voidduplicatesAdd(DMatrixSparseCSC A, @Nullable IGrowArray work) static voidelementMult(DMatrixSparseCSC A, DMatrixSparseCSC B, DMatrixSparseCSC C, @Nullable IGrowArray gw, @Nullable DGrowArray gx) Performs element-wise multiplication:
C_ij = A_ij * B_ijstatic voidremoveZeros(DMatrixSparseCSC A, double tol) static voidremoveZeros(DMatrixSparseCSC input, DMatrixSparseCSC output, double tol) static voidselect(DMatrixSparseCSC A, DMatrixSparseCSC output, IPredicateBinary selector) static voidsymmLowerToFull(DMatrixSparseCSC A, DMatrixSparseCSC B, @Nullable IGrowArray gw) Given a symmetric matrix which is represented by a lower triangular matrix convert it back into a full symmetric matrixstatic voidtranspose(DMatrixSparseCSC A, DMatrixSparseCSC C, @Nullable IGrowArray gw) Performs a matrix transpose.
-
Constructor Details
-
ImplCommonOps_DSCC
public ImplCommonOps_DSCC()
-
-
Method Details
-
select
-
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 AA- Matrixbeta- scalar value multiplied against BB- MatrixC- 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- scalarA- matrixcolA- column in Abeta- scalarB- matrixcolB- column in BC- Column in Cgw- 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) MatrixB- (Input) MatrixC- (Output) Matrix.gw- (Optional) Storage for internal workspace. Can be null.gx- (Optional) Storage for internal workspace. Can be null.
-
removeZeros
-
removeZeros
-
duplicatesAdd
-
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 matrixB- (Output) Symmetric matrix.gw- (Optional) Workspace. Can be null.
-