SymmetricMatrix<T>.AddOuterProduct Method

Definition

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

Overload List

AddOuterProduct(Matrix<T>) Updates a symmetric matrix with the product of a matrix and its transpose.
AddOuterProduct(Vector<T>) Updates a symmetric matrix with the outer product of a vector and itself.
AddOuterProduct(T, Matrix<T>) Updates a symmetric matrix with the scaled outer product of a matrix and its transpose.
AddOuterProduct(T, Vector<T>) Updates a symmetric matrix with the scaled outer product of a vector and its transpose.

AddOuterProduct(Matrix<T>)

Updates a symmetric matrix with the product of a matrix and its transpose.
C#
public SymmetricMatrix<T> AddOuterProduct(
	Matrix<T> matrix
)

Parameters

matrix  Matrix<T>
A Matrix<T>.

Return Value

SymmetricMatrix<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 DSYRK.

Exceptions

ArgumentNullExceptionmatrix is null.
DimensionMismatchExceptionThe number of rows of matrix does not equal the number of rows in this SymmetricMatrix<T>.

AddOuterProduct(Vector<T>)

Updates a symmetric matrix with the outer product of a vector and itself.
C#
public SymmetricMatrix<T> AddOuterProduct(
	Vector<T> vector
)

Parameters

vector  Vector<T>
The first (column) vector.

Return Value

SymmetricMatrix<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 DSYR.

Exceptions

DimensionMismatchExceptionThe length of vector does not equal the number of rows and columns in this SymmetricMatrix<T>.

AddOuterProduct(T, Matrix<T>)

Updates a symmetric matrix with the scaled outer product of a matrix and its transpose.
C#
public SymmetricMatrix<T> AddOuterProduct(
	T factor,
	Matrix<T> matrix
)

Parameters

factor  T
The scale factor.
matrix  Matrix<T>
A Matrix<T>.

Return Value

SymmetricMatrix<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 DSYRK.

Exceptions

ArgumentNullExceptionmatrix is null.
DimensionMismatchExceptionThe number of rows of matrix does not equal the number of rows in this SymmetricMatrix<T>.

AddOuterProduct(T, Vector<T>)

Updates a symmetric matrix with the scaled outer product of a vector and its transpose.
C#
public SymmetricMatrix<T> AddOuterProduct(
	T factor,
	Vector<T> vector
)

Parameters

factor  T
The scale factor.
vector  Vector<T>
A Vector<T>.

Return Value

SymmetricMatrix<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 DSYR.

Exceptions

ArgumentNullExceptionvector is null.
DimensionMismatchExceptionThe length of vector does not equal the number of rows in this SymmetricMatrix<T>.

See Also