Class MatrixMult_DDRB
Matrix multiplication for DMatrixRBlock. All sub-matrices must be block aligned.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidmult(int blockLength, DSubmatrixD1 A, DSubmatrixD1 B, DSubmatrixD1 C) static voidmultMinus(int blockLength, DSubmatrixD1 A, DSubmatrixD1 B, DSubmatrixD1 C) static voidmultMinusTransA(int blockLength, DSubmatrixD1 A, DSubmatrixD1 B, DSubmatrixD1 C) static voidmultPlus(int blockLength, DSubmatrixD1 A, DSubmatrixD1 B, DSubmatrixD1 C) static voidmultPlusTransA(int blockLength, DSubmatrixD1 A, DSubmatrixD1 B, DSubmatrixD1 C) static voidmultTransA(int blockLength, DSubmatrixD1 A, DSubmatrixD1 B, DSubmatrixD1 C) static voidmultTransB(int blockLength, DSubmatrixD1 A, DSubmatrixD1 B, DSubmatrixD1 C)
-
Constructor Details
-
MatrixMult_DDRB
public MatrixMult_DDRB()
-
-
Method Details
-
mult
Performs a matrix multiplication on
DMatrixRBlocksubmatrices.
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
Performs a matrix multiplication on
DMatrixRBlocksubmatrices.
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
Performs a matrix multiplication on
DMatrixRBlocksubmatrices.
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
Performs a matrix multiplication with a transpose on
DMatrixRBlocksubmatrices.
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
-
multMinusTransA
-
multTransB
Performs a matrix multiplication with a transpose on
DMatrixRBlocksubmatrices.
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,
-