Package org.ejml.sparse.csc.misc
Class ImplCommonOps_FSCC
java.lang.Object
org.ejml.sparse.csc.misc.ImplCommonOps_FSCC
@Generated("org.ejml.sparse.csc.misc.ImplCommonOps_DSCC")
public class ImplCommonOps_FSCC
extends Object
Implementation class. Not recommended for direct use. Instead use
CommonOps_FSCC
instead.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidadd(float alpha, FMatrixSparseCSC A, float beta, FMatrixSparseCSC B, FMatrixSparseCSC C, @Nullable IGrowArray gw, @Nullable FGrowArray gx) Performs matrix addition:
C = αA + βBstatic voidaddColAppend(float alpha, FMatrixSparseCSC A, int colA, float beta, FMatrixSparseCSC B, int colB, FMatrixSparseCSC 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(FMatrixSparseCSC A, @Nullable IGrowArray work) static voidelementMult(FMatrixSparseCSC A, FMatrixSparseCSC B, FMatrixSparseCSC C, @Nullable IGrowArray gw, @Nullable FGrowArray gx) Performs element-wise multiplication:
C_ij = A_ij * B_ijstatic voidremoveZeros(FMatrixSparseCSC A, float tol) static voidremoveZeros(FMatrixSparseCSC input, FMatrixSparseCSC output, float tol) static voidselect(FMatrixSparseCSC A, FMatrixSparseCSC output, IPredicateBinary selector) static voidsymmLowerToFull(FMatrixSparseCSC A, FMatrixSparseCSC 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(FMatrixSparseCSC A, FMatrixSparseCSC C, @Nullable IGrowArray gw) Performs a matrix transpose.
-
Constructor Details
-
ImplCommonOps_FSCC
public ImplCommonOps_FSCC()
-
-
Method Details
-
select
-
transpose
public static void transpose(FMatrixSparseCSC A, FMatrixSparseCSC 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(float alpha, FMatrixSparseCSC A, float beta, FMatrixSparseCSC B, FMatrixSparseCSC C, @Nullable @Nullable IGrowArray gw, @Nullable @Nullable FGrowArray 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(float alpha, FMatrixSparseCSC A, int colA, float beta, FMatrixSparseCSC B, int colB, FMatrixSparseCSC 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(FMatrixSparseCSC A, FMatrixSparseCSC B, FMatrixSparseCSC C, @Nullable @Nullable IGrowArray gw, @Nullable @Nullable FGrowArray 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(FMatrixSparseCSC A, FMatrixSparseCSC 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.
-