DenseMatrix<T>.ExtractHermitian Method

Definition

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

Overload List

ExtractHermitian(MatrixTriangle, Boolean)

Creates a HermitianMatrix<T> from a part of a DenseMatrix<T>.
C#
public HermitianMatrix<T> ExtractHermitian(
	MatrixTriangle storedTriangle,
	bool reuseValuesArray
)

Parameters

storedTriangle  MatrixTriangle
A MatrixTriangle value that indicates whether the components of the Hermitian matrix are stored in the upper or lower triangular portion of the matrix.
reuseValuesArray  Boolean
A boolean value that indicates whether the storage array used by the matrix should be copied or reused for internal storage.

Return Value

HermitianMatrix<T>
A HermitianMatrix<T>.

ExtractHermitian(Int32, Int32, Int32, MatrixTriangle, Boolean)

Creates a HermitianMatrix<T> from a part of a DenseMatrix<T>.
C#
public abstract HermitianMatrix<T> ExtractHermitian(
	int dimension,
	int startRow,
	int startColumn,
	MatrixTriangle matrixTriangle,
	bool reuseValuesArray
)

Parameters

dimension  Int32
The number of rows and columns of the new matrix.
startRow  Int32
The row in the matrix of the first element of the new matrix.
startColumn  Int32
The column in the matrix of the first element of the new matrix.
matrixTriangle  MatrixTriangle
A MatrixTriangle value that indicates whether the components of the Hermitian matrix are stored in the upper or lower triangular portion of the block specified by startRow and startColumn.
reuseValuesArray  Boolean
A boolean value that indicates whether the storage array used by the matrix should be copied or reused for internal storage.

Return Value

HermitianMatrix<T>
A HermitianMatrix<T>.

Exceptions

ArgumentOutOfRangeException

dimension is less than zero

-or-

startRow is less than zero or greater than or equal to the number of rows in the matrix.

-or-

startColumn is less than zero or greater than or equal to the number of columns in the matrix.

ArgumentException

startRow plus dimension is greater than or equal to the number of rows in this matrix.

-or-

startColumn plus dimension is greater than or equal to the number of columns in this matrix.

See Also