Package org.ejml.sparse.csc.mult
Class MatrixVectorMultWithSemiRing_DSCC
java.lang.Object
org.ejml.sparse.csc.mult.MatrixVectorMultWithSemiRing_DSCC
based on MartrixVectorMult_DSCC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
innerProduct
(double[] a, int offsetA, DMatrixSparseCSC B, double[] c, int offsetC, DSemiRing semiRing) scalar = AT*B*Cstatic void
mult
(double[] a, int offsetA, DMatrixSparseCSC B, double[] c, int offsetC, DSemiRing semiRing, @Nullable Mask mask) c = aT*Bstatic void
mult
(double[] a, DMatrixSparseCSC B, double[] c, DSemiRing semiRing, @Nullable Mask mask) static void
mult
(DMatrixSparseCSC A, double[] b, double[] c, DSemiRing semiRing, @Nullable Mask mask) static void
mult
(DMatrixSparseCSC A, double[] b, int offsetB, double[] c, int offsetC, DSemiRing semiRing, @Nullable Mask mask) c = A*bstatic void
multAdd
(DMatrixSparseCSC A, double[] b, int offsetB, double[] c, int offsetC, DSemiRing semiRing, @Nullable Mask mask) c = c + A*b
-
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) Matrixb
- (Input) vectoroffsetB
- (Input) first index in vector bc
- (Output) vectoroffsetC
- (Output) first index in vector csemiRing
- 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) Matrixb
- (Input) vectoroffsetB
- (Input) first index in vector bc
- (Output) vectoroffsetC
- (Output) first index in vector csemiRing
- 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) vectoroffsetA
- Input) first index in vector aB
- (Input) Matrixc
- (Output) vectoroffsetC
- (Output) first index in vector csemiRing
- 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) vectoroffsetA
- Input) first index in vector aB
- (Input) Matrixc
- (Output) vectoroffsetC
- (Output) first index in vector csemiRing
- Semi-Ring to define + and *
-