Computes the product of two square matrices.

Namespace: Meta.Numerics.Matrices
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 2.1.0.0 (2.1.0.0)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public static SquareMatrix operator *(
	SquareMatrix A,
	SquareMatrix B
)
Public Shared Operator * ( _
	A As SquareMatrix, _
	B As SquareMatrix _
) As SquareMatrix
public:
static SquareMatrix^ operator *(
	SquareMatrix^ A, 
	SquareMatrix^ B
)
static let inline (*)
        A : SquareMatrix * 
        B : SquareMatrix  : SquareMatrix

Parameters

A
SquareMatrix
The first matrix.
B
SquareMatrix
The second matrix.

Return Value

The product A * B.

Remarks

Note that matrix multiplication is not commutative, i.e. M1*M2 is generally not the same as M2*M1.

Matrix multiplication is an O(N3) process.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionA or B is null.
Meta.Numerics..::..DimensionMismatchExceptionThe dimension of A is not the same as the dimension of B.

See Also