HermitianMatrix<T>.AddOuterProductInPlace Method

Definition

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

Overload List

AddOuterProductInPlace(Vector<T>) Updates the matrix by adding the outer product of a vector with itself.
AddOuterProductInPlace(Matrix<T>, MatrixOperationSide) Updates a Hermitian matrix with the product of a matrix and its transpose.
AddOuterProductInPlace(T, Vector<T>) Updates the matrix by adding the scaled outer product of a vector with itself.
AddOuterProductInPlace(Vector<T>, Vector<T>) Updates the matrix by adding the outer product of two vectors.
AddOuterProductInPlace(T, Matrix<T>, MatrixOperationSide) Updates a Hermitian matrix with the scaled outer product of a matrix and its transpose.
AddOuterProductInPlace(T, Vector<T>, MatrixOperationSide) Updates a Hermitian matrix with the scaled outer product of a vector and its transpose.
AddOuterProductInPlace(T, Vector<T>, Vector<T>) Updates the matrix by adding the scaled outer product of two vectors.

AddOuterProductInPlace(Matrix<T>, MatrixOperationSide)

Updates a Hermitian matrix with the product of a matrix and its transpose.
C#
public HermitianMatrix<T> AddOuterProductInPlace(
	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

The number of rows of matrix must equal the number of rows and columns of this instance.

This method uses the level 3 BLAS routine ZHERK.

Exceptions

ArgumentNullException

matrix is null.

DimensionMismatchException

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

AddOuterProductInPlace(T, Matrix<T>, MatrixOperationSide)

Updates a Hermitian matrix with the scaled outer product of a matrix and its transpose.
C#
public abstract HermitianMatrix<T> AddOuterProductInPlace(
	T factor,
	Matrix<T> matrix,
	MatrixOperationSide side = MatrixOperationSide.Right
)

Parameters

factor  T
The scale factor.
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

The number of rows of matrix must equal the number of rows and columns of this instance.

This method uses the level 3 BLAS routine ZHERK.

Exceptions

ArgumentNullException

matrix is null.

DimensionMismatchException

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

AddOuterProductInPlace(T, Vector<T>, MatrixOperationSide)

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

Parameters

factor  T
The scale factor.
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.

Remarks

The length of vector must equal the number of rows and columns of this instance.

This method uses the level 2 BLAS routine ZHER.

Exceptions

ArgumentNullException

vector is null.

DimensionMismatchException

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

See Also