Matrix.Multiply<T>(Matrix<T>, Matrix<T>) Method

Multiplies two matrix objects.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Matrix<T> Multiply<T>(
	Matrix<T> matrix1,
	Matrix<T> matrix2
)

Parameters

matrix1  Matrix<T>
The first Matrix<T>.
matrix2  Matrix<T>
The second Matrix<T>.

Type Parameters

T

Return Value

Matrix<T>
A Matrix<T> 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

ArgumentNullExceptionmatrix1 is null.

-or-

matrix2 is null.

DimensionMismatchExceptionThe number of columns of matrix1 does not equal the number of rows of matrix2.

See Also