Package org.ejml.sparse.csc
Class CommonOpsWithSemiRing_FSCC
java.lang.Object
org.ejml.sparse.csc.CommonOpsWithSemiRing_FSCC
@Generated("org.ejml.sparse.csc.CommonOpsWithSemiRing_DSCC")
public class CommonOpsWithSemiRing_FSCC
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionstatic FMatrixSparseCSC
add
(float alpha, FMatrixSparseCSC A, float beta, FMatrixSparseCSC B, @Nullable FMatrixSparseCSC output, FSemiRing semiRing, @Nullable Mask mask, @Nullable IGrowArray gw, @Nullable FGrowArray gx) Performs matrix addition:
output = αA + βBstatic FMatrixSparseCSC
elementMult
(FMatrixSparseCSC A, FMatrixSparseCSC B, @Nullable FMatrixSparseCSC output, FSemiRing semiRing, @Nullable Mask mask, @Nullable IGrowArray gw, @Nullable FGrowArray gx) Performs an element-wise multiplication.
output[i,j] = A[i,j]*B[i,j]
All matrices must have the same shape.static FMatrixRMaj
mult
(FMatrixSparseCSC A, FMatrixRMaj B, @Nullable FMatrixRMaj output, FSemiRing semiRing) Performs matrix multiplication.static FMatrixSparseCSC
mult
(FMatrixSparseCSC A, FMatrixSparseCSC B, @Nullable FMatrixSparseCSC output, FSemiRing semiRing) static FMatrixSparseCSC
mult
(FMatrixSparseCSC A, FMatrixSparseCSC B, @Nullable FMatrixSparseCSC output, FSemiRing semiRing, @Nullable Mask mask, @Nullable IGrowArray gw, @Nullable FGrowArray gx) Performs matrix multiplication.static void
multAdd
(FMatrixSparseCSC A, FMatrixRMaj B, FMatrixRMaj output, FSemiRing semiRing) output = output + A*Bstatic void
multAddTransA
(FMatrixSparseCSC A, FMatrixRMaj B, FMatrixRMaj output, FSemiRing semiRing) output = output + AT*Bstatic void
multAddTransAB
(FMatrixSparseCSC A, FMatrixRMaj B, FMatrixRMaj C, FSemiRing semiRing) C = C + AT*BTstatic void
multAddTransB
(FMatrixSparseCSC A, FMatrixRMaj B, FMatrixRMaj output, FSemiRing semiRing) output = output + A*BTstatic FMatrixRMaj
multTransA
(FMatrixSparseCSC A, FMatrixRMaj B, @Nullable FMatrixRMaj output, FSemiRing semiRing) Performs matrix multiplication.static FMatrixRMaj
multTransAB
(FMatrixSparseCSC A, FMatrixRMaj B, FMatrixRMaj output, FSemiRing semiRing) Performs matrix multiplication.static FMatrixRMaj
multTransB
(FMatrixSparseCSC A, FMatrixRMaj B, @Nullable FMatrixRMaj output, FSemiRing semiRing) Performs matrix multiplication.
-
Method Details
-
mult
public static FMatrixSparseCSC mult(FMatrixSparseCSC A, FMatrixSparseCSC B, @Nullable @Nullable FMatrixSparseCSC output, FSemiRing semiRing) -
mult
public static FMatrixSparseCSC mult(FMatrixSparseCSC A, FMatrixSparseCSC B, @Nullable @Nullable FMatrixSparseCSC output, FSemiRing semiRing, @Nullable @Nullable Mask mask, @Nullable @Nullable IGrowArray gw, @Nullable @Nullable FGrowArray gx) Performs matrix multiplication. output = A*B- Parameters:
A
- (Input) Matrix. Not modified.B
- (Input) Matrix. Not modified.output
- (Output) Storage for results. Data length is increased if insufficient.semiRing
- Semi-Ring to define + and *mask
- (Optional) Mask for specifying which entries should be overwrittengw
- (Optional) Storage for internal workspace. Can be null.gx
- (Optional) Storage for internal workspace. Can be null.
-
mult
public static FMatrixRMaj mult(FMatrixSparseCSC A, FMatrixRMaj B, @Nullable @Nullable FMatrixRMaj output, FSemiRing semiRing) Performs matrix multiplication. output = A*B- Parameters:
A
- MatrixB
- Dense MatrixsemiRing
- Semi-Ring to define + and *output
- Dense Matrix
-
multAdd
public static void multAdd(FMatrixSparseCSC A, FMatrixRMaj B, FMatrixRMaj output, FSemiRing semiRing) output = output + A*B
-
multTransA
public static FMatrixRMaj multTransA(FMatrixSparseCSC A, FMatrixRMaj B, @Nullable @Nullable FMatrixRMaj output, FSemiRing semiRing) Performs matrix multiplication. output = AT*B- Parameters:
A
- MatrixB
- Dense Matrixoutput
- Dense MatrixsemiRing
- Semi-Ring to define + and *
-
multAddTransA
public static void multAddTransA(FMatrixSparseCSC A, FMatrixRMaj B, FMatrixRMaj output, FSemiRing semiRing) output = output + AT*B
-
multTransB
public static FMatrixRMaj multTransB(FMatrixSparseCSC A, FMatrixRMaj B, @Nullable @Nullable FMatrixRMaj output, FSemiRing semiRing) Performs matrix multiplication. output = A*BT- Parameters:
A
- MatrixB
- Dense Matrixoutput
- Dense MatrixsemiRing
- Semi-Ring to define + and *
-
multAddTransB
public static void multAddTransB(FMatrixSparseCSC A, FMatrixRMaj B, FMatrixRMaj output, FSemiRing semiRing) output = output + A*BT
-
multTransAB
public static FMatrixRMaj multTransAB(FMatrixSparseCSC A, FMatrixRMaj B, FMatrixRMaj output, FSemiRing semiRing) Performs matrix multiplication. output = AT*BT- Parameters:
A
- MatrixB
- Dense Matrixoutput
- Dense MatrixsemiRing
- Semi-Ring to define + and *
-
multAddTransAB
public static void multAddTransAB(FMatrixSparseCSC A, FMatrixRMaj B, FMatrixRMaj C, FSemiRing semiRing) C = C + AT*BT
-
add
public static FMatrixSparseCSC add(float alpha, FMatrixSparseCSC A, float beta, FMatrixSparseCSC B, @Nullable @Nullable FMatrixSparseCSC output, FSemiRing semiRing, @Nullable @Nullable Mask mask, @Nullable @Nullable IGrowArray gw, @Nullable @Nullable FGrowArray gx) Performs matrix addition:
output = αA + βB- Parameters:
alpha
- scalar value multiplied against AA
- Matrixbeta
- scalar value multiplied against BB
- Matrixoutput
- (Optional) Output matrix.semiRing
- Semi-Ring to define + and *mask
- (Optional) Mask for specifying which entries should be overwrittengw
- (Optional) Storage for internal workspace. Can be null.gx
- (Optional) Storage for internal workspace. Can be null.
-
elementMult
public static FMatrixSparseCSC elementMult(FMatrixSparseCSC A, FMatrixSparseCSC B, @Nullable @Nullable FMatrixSparseCSC output, FSemiRing semiRing, @Nullable @Nullable Mask mask, @Nullable @Nullable IGrowArray gw, @Nullable @Nullable FGrowArray gx) Performs an element-wise multiplication.
output[i,j] = A[i,j]*B[i,j]
All matrices must have the same shape.- Parameters:
A
- (Input) Matrix.B
- (Input) Matrixoutput
- (Output) Matrix. data array is grown to min(A.nz_length,B.nz_length), resulting a in a large speed boost.semiRing
- Semi-Ring to define + and *mask
- (Optional) Mask for specifying which entries should be overwrittengw
- (Optional) Storage for internal workspace. Can be null.gx
- (Optional) Storage for internal workspace. Can be null.
-