.NET Matrix Library
Multiply(Double,TransposeMode,Matrix,TransposeMode,Matrix,Double,Matrix) Method
See Also  Send Feedback



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.

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

Syntax

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)Copy Code
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.

Exceptions

ExceptionDescription
SizeMismatchExceptionThe inner dimensions of the matrices do not match.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7

See Also

.NET Matrix Library