SymmetricMatrix<T>.FromOuterProduct Method

Definition

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

Overload List

FromOuterProduct(Matrix<T>) Constructs a new symmetric matrix by multiplying a matrix on the left by its transpose.
FromOuterProduct(Matrix<T>, MatrixOperationSide) Constructs a new symmetric matrix by multiplying a matrix by its transpose.
FromOuterProduct(Matrix<T>, Matrix<T>, MatrixOperationSide) Constructs a new symmetric matrix by multiplying a matrix on the left and the right by another matrix and its transpose.

FromOuterProduct(Matrix<T>)

Constructs a new symmetric matrix by multiplying a matrix on the left by its transpose.
C#
public static SymmetricMatrix<T> FromOuterProduct(
	Matrix<T> matrix
)

Parameters

matrix  Matrix<T>
A Matrix<T>.

Return Value

SymmetricMatrix<T>
The new SymmetricMatrix<T>.

Remarks

This method uses the BLAS routine DSYRK.

Exceptions

ArgumentNullException

matrix is null.

FromOuterProduct(Matrix<T>, MatrixOperationSide)

Constructs a new symmetric matrix by multiplying a matrix by its transpose.
C#
public static SymmetricMatrix<T> FromOuterProduct(
	Matrix<T> matrix,
	MatrixOperationSide side
)

Parameters

matrix  Matrix<T>
A Matrix<T>.
side  MatrixOperationSide
Specifies whether the transposed matrix is the left or right operand.

Return Value

SymmetricMatrix<T>
The new SymmetricMatrix<T>.

Remarks

This method uses the BLAS routine DSYRK.

Exceptions

ArgumentNullException

matrix is null.

FromOuterProduct(Matrix<T>, Matrix<T>, MatrixOperationSide)

Constructs a new symmetric matrix by multiplying a matrix on the left and the right by another matrix and its transpose.
C#
public static SymmetricMatrix<T> FromOuterProduct(
	Matrix<T> matrix,
	Matrix<T> middleMatrix,
	MatrixOperationSide side
)

Parameters

matrix  Matrix<T>
A Matrix<T>.
middleMatrix  Matrix<T>
The matrix
side  MatrixOperationSide
Specifies whether the transposed matrix is the left or right operand.

Return Value

SymmetricMatrix<T>
The new SymmetricMatrix<T>.

Exceptions

ArgumentNullException

matrix is null.

See Also