.NET Matrix Library
Multiplication(Matrix,Matrix) Operator
See Also  Send Feedback


A
A Matrix instance on the left side of the multiplication operator.
B
A Matrix instance on the right side of the multiplication operator.
Multiplies two matrices.

Syntax

Visual Basic (Declaration) 
Overloads Public Operator *( _
   ByVal A As Matrix, _
   ByVal B As Matrix _
) As Matrix
C# 
public Matrix operator *( 
   Matrix A,
   Matrix B
)
C++/CLI 
public:
Matrix^ operator *( 
   Matrix^ A,
   Matrix^ B
)

Parameters

A
A Matrix instance on the left side of the multiplication operator.
B
A Matrix instance on the right side of the multiplication operator.

Return Value

A Matrix object that represents the product.

Exceptions

ExceptionDescription
SizeMismatchExceptionInner dimentions of matrices do not match.

Remarks

The inner dimensions of the matrices being multiplied must agree. That is, the number of columns in the first matrix must be equal to the number of rows in the second matrix.

Matrix multiplication is not commutative, A" B is not the same as B" A.

Requirements

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

See Also

.NET Matrix Library