HermitianMatrix<T>.SubtractOuterProduct Method

Definition

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

Overload List

SubtractOuterProduct(Matrix<T>, MatrixOperationSide) Updates a Hermitian matrix by subtracting the product of a matrix and its transpose.
SubtractOuterProduct(Vector<T>, MatrixOperationSide) Updates a Hermitian matrix with the outer product of a vector and its transpose.

SubtractOuterProduct(Matrix<T>, MatrixOperationSide)

Updates a Hermitian matrix by subtracting the product of a matrix and its transpose.
C#
public HermitianMatrix<T> SubtractOuterProduct(
	Matrix<T> matrix,
	MatrixOperationSide side = MatrixOperationSide.Right
)

Parameters

matrix  Matrix<T>
A Matrix<T>.
side  MatrixOperationSide  (Optional)
Optional. Specifies whether the transposed matrix is the left or right operand. The default is Right.

Return Value

HermitianMatrix<T>
A reference to this instance.

Remarks

This method uses the level 3 BLAS routine ZHERK.

Exceptions

DimensionMismatchException

The number of rows of matrix does not equal the number of rows in this HermitianMatrix<T>.

SubtractOuterProduct(Vector<T>, MatrixOperationSide)

Updates a Hermitian matrix with the outer product of a vector and its transpose.
C#
public HermitianMatrix<T> SubtractOuterProduct(
	Vector<T> vector,
	MatrixOperationSide side = MatrixOperationSide.Right
)

Parameters

vector  Vector<T>
A Vector<T>.
side  MatrixOperationSide  (Optional)
Optional. Specifies whether the transposed vector is the left or right operand. The default is Right.

Return Value

HermitianMatrix<T>
A reference to this instance.

Exceptions

DimensionMismatchException

The length of vector does not equal the number of rows in this HermitianMatrix<T>.

See Also