Multiplies two Matrix objects.
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Function Multiply ( _ matrix1 As Matrix, _ matrix2 As Matrix _ ) As Matrix |
| C# |
|---|
public static Matrix Multiply ( Matrix matrix1, Matrix matrix2 ) |
| C++ |
|---|
public: static Matrix^ Multiply ( Matrix^ matrix1, Matrix^ matrix2 ) |
Parameters
- matrix1 (Extreme.Mathematics.LinearAlgebra.Matrix)
- The first Matrix.
- matrix2 (Extreme.Mathematics.LinearAlgebra.Matrix)
- The second Matrix.
Return Value
A Matrix that is the product of matrix1 and matrix2.
Remarks
This method returns the matrix product of its two arguments.
For this operation to be defined, the number of columns of
matrix1 must equal the number of rows of matrix2.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | matrix1 is nullNothingnullptr.
-or- matrix2 is nullNothingnullptr. |
| DimensionMismatchException | The number of columns of matrix1 does not equal the number of rows of matrix2. |