DiagonalMatrix<T>.Multiply Operator

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2

Overload List

Multiply(DenseMatrix<T>, DiagonalMatrix<T>) Multiplies a matrix on the right by a DiagonalMatrix<T>..
Multiply(DiagonalMatrix<T>, Matrix<T>) Multiplies a matrix on the left by a DiagonalMatrix<T>..

Multiply(DenseMatrix<T>, DiagonalMatrix<T>) Operator

Multiplies a matrix on the right by a DiagonalMatrix<T>..
C#
public static Matrix<T> operator *(
	DenseMatrix<T> matrix,
	DiagonalMatrix<T> diagonalMatrix
)

Parameters

matrix  DenseMatrix<T>
A Matrix<T>.
diagonalMatrix  DiagonalMatrix<T>
A DiagonalMatrix<T>.

Return Value

Matrix<T>
A Matrix<T> that is the product of diagonalMatrix and matrix.

Remarks

The number of columns of matrix must be equal to the number of rows of diagonalMatrix. Otherwise, an exception of type DimensionMismatchException is thrown.

This method uses the BLAS routine DGEMM.

Exceptions

ArgumentNullException

diagonalMatrix is null.

-or-

matrix is null.

DimensionMismatchException

The number of columns of matrix does not equal the number of rows of diagonalMatrix.

Multiply(DiagonalMatrix<T>, Matrix<T>) Operator

Multiplies a matrix on the left by a DiagonalMatrix<T>..
C#
public static Matrix<T> operator *(
	DiagonalMatrix<T> diagonalMatrix,
	Matrix<T> matrix
)

Parameters

diagonalMatrix  DiagonalMatrix<T>
A DiagonalMatrix<T>.
matrix  Matrix<T>
A Matrix<T>.

Return Value

Matrix<T>
A Matrix<T> that is the product of diagonalMatrix and matrix.

Remarks

The number of columns of diagonalMatrix must be equal to the number of rows of matrix. Otherwise, an exception of type DimensionMismatchException is thrown.

This method uses the BLAS routine DGEMM.

Exceptions

ArgumentNullException

diagonalMatrix is null.

-or-

matrix is null.

DimensionMismatchException

The number of columns of diagonalMatrix does not equal the number of rows of matrix.

See Also