Dense Matrix<T>.Get Hermitian View Method
Returns a HermitianMatrix<T> view over a square block of this matrix.
Definition
Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.5.0
C#
A HermitianMatrix<T> view whose stored triangle is backed by the specified square block of this matrix.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.5.0
public abstract HermitianMatrix<T> GetHermitianView(
int dimension,
int startRow,
int startColumn,
MatrixTriangle matrixTriangle
)Parameters
- dimension Int32
- The number of rows and columns of the returned 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.
Return Value
HermitianMatrix<T>A HermitianMatrix<T> view whose stored triangle is backed by the specified square block of this matrix.
Remarks
The returned matrix shares storage with this matrix. Only the triangle specified by matrixTriangle is used as the stored part of the Hermitian matrix.
Exceptions
| Argument | 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. |
| Argument | 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. |