org.ujmp.core.doublematrix.impl
Class BlockMultiply
- java.lang.Object
-
- org.ujmp.core.doublematrix.impl.BlockMultiply
-
- All Implemented Interfaces:
- java.util.concurrent.Callable<java.lang.Void>
public class BlockMultiply extends java.lang.Object implements java.util.concurrent.Callable<java.lang.Void>Multiply blocks of A and B in the specified range(fromM->toM, fromN->toN, fromK->toK),
and add to matrix C.C(fromM->toM, fromK->toK) +=
      A(fromM->toM, fromN->toN) x B(fromN->toN, fromK->toK)All blocks must be square blocks of the same size, with length of one side =
blockStripeSize
-
-
Constructor Summary
Constructors Constructor and Description BlockMultiply(BlockDenseDoubleMatrix2D a, BlockDenseDoubleMatrix2D b, BlockDenseDoubleMatrix2D c, int fromM, int toM, int fromN, int toN, int fromK, int toK)Constructor taking the two matrices being multiplied, the target matrix C and the range of rows and columns to multiply.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Voidcall()voidmultiplyRowMajorTimesColumnMajorBlocks(double[] aBlock, double[] bBlock, double[] cBlock, int aRows, int bRows, int bCols)
-
-
-
Constructor Detail
-
BlockMultiply
public BlockMultiply(BlockDenseDoubleMatrix2D a, BlockDenseDoubleMatrix2D b, BlockDenseDoubleMatrix2D c, int fromM, int toM, int fromN, int toN, int fromK, int toK)
Constructor taking the two matrices being multiplied, the target matrix C and the range of rows and columns to multiply.- Parameters:
a- - matrix A, size (M, N)b- - matrix B, size (N, K)c- - result matrix C, size (M, K)fromM- - start row M in matrix AtoM- - end row M in AfromN- - start column N in A (or start row N in B)toN- - end row NfromK- - start column K in BtoK- - end column K in B
-
-
DataMelt 3.0 © DataMelt by jWork.ORG