Matrix.ExtractHermitian<T>(DenseMatrix<T>, MatrixTriangle, Boolean) Method

Creates a HermitianMatrix<T> from a part of a DenseMatrix<T>.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static HermitianMatrix<T> ExtractHermitian<T>(
	DenseMatrix<T> matrix,
	MatrixTriangle storedTriangle,
	bool reuseComponentArray
)

Parameters

matrix  DenseMatrix<T>
The matrix that contains the elements of the new matrix.
storedTriangle  MatrixTriangle
A MatrixTriangle value that indicates whether the elements of the Hermitian matrix are stored in the upper or lower triangular portion of the matrix.
reuseComponentArray  Boolean
A boolean value that indicates whether the storage array used by matrix should be copied or reused for internal storage.

Type Parameters

T

Return Value

HermitianMatrix<T>
A HermitianMatrix<T>.

Exceptions

ArgumentNullExceptionmatrix is null.

See Also