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

Creates a SymmetricMatrix<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 SymmetricMatrix<T> ExtractSymmetric<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 symmetric 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

SymmetricMatrix<T>
A SymmetricMatrix<T>.

Exceptions

ArgumentNullExceptionmatrix is null.

See Also