Computes the product of two square matrices.
Namespace: Meta.Numerics.MatricesAssembly: 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
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
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | A or B is null. |
| Meta.Numerics..::..DimensionMismatchException | The dimension of A is not the same as the dimension of B. |