Computes a scalar-matrix-matrix product and adds the result to a scalar-matrix product. The operation is defined as:
C= alpha * op(A) * op(B) + beta *C
| Visual Basic (Declaration) | |
|---|---|
Public Overloads Shared Sub Multiply( _ ByVal alpha As Double, _ ByVal transA As TransposeMode, _ ByVal A As Matrix, _ ByVal transB As TransposeMode, _ ByVal B As Matrix, _ ByVal beta As Double, _ ByVal C As Matrix _ ) | |
| Visual Basic (Usage) | |
|---|---|
Dim alpha As Double Dim transA As TransposeMode Dim A As Matrix Dim transB As TransposeMode Dim B As Matrix Dim beta As Double Dim C As Matrix Matrix.Multiply(alpha, transA, A, transB, B, beta, C) | |
| C# | |
|---|---|
public static void Multiply( double alpha, TransposeMode transA, Matrix A, TransposeMode transB, Matrix B, double beta, Matrix C ) | |
| C++/CLI | |
|---|---|
public: static void Multiply( double alpha, TransposeMode transA, Matrix^ A, TransposeMode transB, Matrix^ B, double beta, Matrix^ C ) | |
Parameters
- alpha
- A double scalar value.
- transA
- A TransposeMode enumeration specifying whether matrix A is transposed.
- A
- A Matrix object representing the first matrix.
- transB
- A TransposeMode enumeration specifying whether matrix B is transposed.
- B
- A Matrix object representing the second matrix.
- beta
- A double scalar value to multiply the matrix C with.
- C
- Matrix object which will contain the result.
| Exception | Description |
|---|---|
| SizeMismatchException | The inner dimensions of the matrices do not match. |
Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7