Matrix<T>.Multiply Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Multiply(Matrix<T>)Applies the linear operator to a matrix.
Multiply(Vector<T>)Applies the linear operator to a vector.
Multiply(Matrix<T>, Vector<T>) Multiplies a Vector<T> by a Matrix<T>.
Multiply(TransposeOperation, Matrix<T>) Multiplies a matrix on the left by this matrix.
Obsolete.
Multiply(TransposeOperation, Vector<T>) Multiplies a vector on the left by this vector.
Obsolete.
Multiply(Vector<T>, Matrix<T>) Multiplies a Vector<T> by a Matrix<T>.
Obsolete.
Multiply(MatrixOperationSide, TransposeOperation, TransposeOperation, Matrix<T>) Multiplies this matrix by another matrix and returns the result.
Obsolete.

Multiply(Matrix<T>, Vector<T>)

Multiplies a Vector<T> by a Matrix<T>.
C#
public static DenseVector<T> Multiply(
	Matrix<T> matrix,
	Vector<T> vector
)

Parameters

matrix  Matrix<T>
A Matrix<T>.
vector  Vector<T>
A vector.

Return Value

DenseVector<T>
A vector that is the product of matrix and vector.

Remarks

The number of columns of the matrix matrix must equal the length of the vector vector.

Exceptions

ArgumentNullExceptionmatrix is null.

-or-

vector is null.

DimensionMismatchExceptionThe length of vector does not equal the number of columns in matrix.

Multiply(Vector<T>, Matrix<T>)

Note: This API is now obsolete.
Multiplies a Vector<T> by a Matrix<T>.
C#
[ObsoleteAttribute]
public static DenseVector<T> Multiply(
	Vector<T> vector,
	Matrix<T> matrix
)

Parameters

vector  Vector<T>
A vector.
matrix  Matrix<T>
A Matrix<T>.

Return Value

DenseVector<T>
A vector that is the product of matrix and vector.

Remarks

This method multiplies the matrix on the right of the vector, effectively multiplying the vector by the transpose of the matrix. The number of rows of the matrix matrix must equal the length of the vector vector.

Exceptions

ArgumentNullExceptionmatrix is null.

-or-

vector is null.

DimensionMismatchExceptionThe length of vector does not equal the number of rows in matrix.

Multiply(MatrixOperationSide, TransposeOperation, TransposeOperation, Matrix<T>)

Note: This API is now obsolete.
Multiplies this matrix by another matrix and returns the result.
C#
[ObsoleteAttribute("Use the static Multiply method instead.")]
public Matrix<T> Multiply(
	MatrixOperationSide side,
	TransposeOperation operation,
	TransposeOperation otherOperation,
	Matrix<T> other
)

Parameters

side  MatrixOperationSide
Specifies whether other is the left or right operand of the multiplication.
operation  TransposeOperation
A TransposeOperation value that indicates which operation, if any, should be performed on this instance before multiplying.
otherOperation  TransposeOperation
A TransposeOperation value that indicates which operation, if any, should be performed on the matrix other before multiplying.
other  Matrix<T>
The right operand of the multiplication.

Return Value

Matrix<T>
A matrix that is the product of this matrix, transformed as specified by operation, with the matrix other, transformed as specified by otherOperation.

Remarks

This method calculates the matrix product of two matrices. The exact form of the operation is determined by the other parameters. The dimensions of the two matrices must be compatible with this form.

Exceptions

ArgumentNullException

other is null.

See Also