public class LibMatrixBincell extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LibMatrixBincell.BinaryAccessType |
Modifier and Type | Method and Description |
---|---|
static void |
bincellOp(MatrixBlock m1,
MatrixBlock m2,
MatrixBlock ret,
BinaryOperator op)
matrix-matrix binary operations, MM, MV
|
static void |
bincellOp(MatrixBlock m1,
MatrixBlock m2,
MatrixBlock ret,
BinaryOperator op,
int k) |
static void |
bincellOp(MatrixBlock m1,
MatrixBlock ret,
ScalarOperator op)
matrix-scalar, scalar-matrix binary operations.
|
static void |
bincellOp(MatrixBlock m1,
MatrixBlock ret,
ScalarOperator op,
int k) |
static MatrixBlock |
bincellOpInPlace(MatrixBlock m1ret,
MatrixBlock m2,
BinaryOperator op)
NOTE: operations in place always require m1 and m2 to be of equal dimensions
defaults to right side operations, updating the m1 matrix with like:
m1ret op m2
|
static MatrixBlock |
bincellOpInPlaceLeft(MatrixBlock m1ret,
MatrixBlock m2,
BinaryOperator op)
Left side operations, updating the m1 matrix like:
m2 op m1ret
|
static MatrixBlock |
bincellOpInPlaceRight(MatrixBlock m1ret,
MatrixBlock m2,
BinaryOperator op)
Right side operations, updating the m1 matrix like:
m1ret op m2
|
static LibMatrixBincell.BinaryAccessType |
getBinaryAccessType(MatrixBlock m1,
MatrixBlock m2) |
static boolean |
isAllDense(MatrixBlock... mb) |
static boolean |
isSparseSafeDivide(BinaryOperator op,
MatrixBlock rhs) |
static void |
isValidDimensionsBinary(MatrixBlock m1,
MatrixBlock m2) |
public static void bincellOp(MatrixBlock m1, MatrixBlock ret, ScalarOperator op)
m1
- input matrixret
- result matrixop
- scalar operatorpublic static void bincellOp(MatrixBlock m1, MatrixBlock ret, ScalarOperator op, int k)
public static void bincellOp(MatrixBlock m1, MatrixBlock m2, MatrixBlock ret, BinaryOperator op)
m1
- input matrix 1m2
- input matrix 2ret
- result matrixop
- binary operatorpublic static void bincellOp(MatrixBlock m1, MatrixBlock m2, MatrixBlock ret, BinaryOperator op, int k)
public static MatrixBlock bincellOpInPlace(MatrixBlock m1ret, MatrixBlock m2, BinaryOperator op)
m1ret
- result matrix updated in placem2
- matrix block the other matrix to take values fromop
- binary operator the operator that is placed in the middle of m1ret and m2public static MatrixBlock bincellOpInPlaceRight(MatrixBlock m1ret, MatrixBlock m2, BinaryOperator op)
m1ret
- result matrix updated in placem2
- matrix block the other matrix to take values fromop
- binary operator the operator that is placed in the middle of m1ret and m2public static MatrixBlock bincellOpInPlaceLeft(MatrixBlock m1ret, MatrixBlock m2, BinaryOperator op)
m1ret
- result matrix updated in placem2
- matrix block the other matrix to take values fromop
- binary operator the operator that is placed in the middle of m1ret and m2public static LibMatrixBincell.BinaryAccessType getBinaryAccessType(MatrixBlock m1, MatrixBlock m2)
public static void isValidDimensionsBinary(MatrixBlock m1, MatrixBlock m2)
public static boolean isSparseSafeDivide(BinaryOperator op, MatrixBlock rhs)
public static boolean isAllDense(MatrixBlock... mb)
Copyright © 2021 The Apache Software Foundation. All rights reserved.