Class BlockMultiplication
- java.lang.Object
-
- org.ejml.alg.block.BlockMultiplication
-
public class BlockMultiplication extends java.lang.ObjectMatrix multiplication for
BlockMatrix64F. All sub-matrices must be block aligned.
-
-
Constructor Summary
Constructors Constructor and Description BlockMultiplication()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidmult(int blockLength, D1Submatrix64F A, D1Submatrix64F B, D1Submatrix64F C)static voidmultMinus(int blockLength, D1Submatrix64F A, D1Submatrix64F B, D1Submatrix64F C)static voidmultMinusTransA(int blockLength, D1Submatrix64F A, D1Submatrix64F B, D1Submatrix64F C)static voidmultPlus(int blockLength, D1Submatrix64F A, D1Submatrix64F B, D1Submatrix64F C)static voidmultPlusTransA(int blockLength, D1Submatrix64F A, D1Submatrix64F B, D1Submatrix64F C)static voidmultTransA(int blockLength, D1Submatrix64F A, D1Submatrix64F B, D1Submatrix64F C)static voidmultTransB(int blockLength, D1Submatrix64F A, D1Submatrix64F B, D1Submatrix64F C)
-
-
-
Method Detail
-
mult
public static void mult(int blockLength, D1Submatrix64F A, D1Submatrix64F B, D1Submatrix64F C)Performs a matrix multiplication on
BlockMatrix64Fsubmatrices.
c = a * b
It is assumed that all submatrices start at the beginning of a block and end at the end of a block.
- Parameters:
blockLength- Size of the blocks in the submatrix.A- A submatrix. Not modified.B- A submatrix. Not modified.C- Result of the operation. Modified,
-
multPlus
public static void multPlus(int blockLength, D1Submatrix64F A, D1Submatrix64F B, D1Submatrix64F C)Performs a matrix multiplication on
BlockMatrix64Fsubmatrices.
c = c + a * b
It is assumed that all submatrices start at the beginning of a block and end at the end of a block.
- Parameters:
blockLength- Size of the blocks in the submatrix.A- A submatrix. Not modified.B- A submatrix. Not modified.C- Result of the operation. Modified,
-
multMinus
public static void multMinus(int blockLength, D1Submatrix64F A, D1Submatrix64F B, D1Submatrix64F C)Performs a matrix multiplication on
BlockMatrix64Fsubmatrices.
c = c - a * b
It is assumed that all submatrices start at the beginning of a block and end at the end of a block.
- Parameters:
blockLength- Size of the blocks in the submatrix.A- A submatrix. Not modified.B- A submatrix. Not modified.C- Result of the operation. Modified,
-
multTransA
public static void multTransA(int blockLength, D1Submatrix64F A, D1Submatrix64F B, D1Submatrix64F C)Performs a matrix multiplication with a transpose on
BlockMatrix64Fsubmatrices.
c = aT * b
It is assumed that all submatrices start at the beginning of a block and end at the end of a block.
- Parameters:
blockLength- Size of the blocks in the submatrix.A- A submatrix. Not modified.B- A submatrix. Not modified.C- Result of the operation. Modified,
-
multPlusTransA
public static void multPlusTransA(int blockLength, D1Submatrix64F A, D1Submatrix64F B, D1Submatrix64F C)
-
multMinusTransA
public static void multMinusTransA(int blockLength, D1Submatrix64F A, D1Submatrix64F B, D1Submatrix64F C)
-
multTransB
public static void multTransB(int blockLength, D1Submatrix64F A, D1Submatrix64F B, D1Submatrix64F C)Performs a matrix multiplication with a transpose on
BlockMatrix64Fsubmatrices.
c = a * b T
It is assumed that all submatrices start at the beginning of a block and end at the end of a block.
- Parameters:
blockLength- Length of the blocks in the submatrix.A- A submatrix. Not modified.B- A submatrix. Not modified.C- Result of the operation. Modified,
-
-
DMelt 3.0 © DataMelt by jWork.ORG