Matrix.Extract Hermitian Method
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Extract | Creates a HermitianMatrix<T> from a part of a DenseMatrix<T>. |
Extract | Creates a HermitianMatrix<T> from a part of a matrix. |
Extract | Creates a HermitianMatrix<T> from a part of a DenseMatrix<T>. |
ExtractHermitian<T>(DenseMatrix<T>, MatrixTriangle, Boolean)
public static HermitianMatrix<T> ExtractHermitian<T>(
DenseMatrix<T> matrix,
MatrixTriangle storedTriangle,
bool reuseValuesArray
)
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.
- reuseValuesArray 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
Argument | matrix is null. |
ExtractHermitian<T>(Matrix<T>, Int32, Int32, Int32, MatrixTriangle)
public static HermitianMatrix<T> ExtractHermitian<T>(
Matrix<T> matrix,
int dimension,
int startRow,
int startColumn,
MatrixTriangle storedTriangle
)
Parameters
- matrix Matrix<T>
- The matrix that contains the elements of the new matrix.
- dimension Int32
- The number of rows and columns of the new matrix.
- startRow Int32
- The row in matrix of the first component of the new matrix.
- startColumn Int32
- The column in matrix of the first component 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 block specified by startRow and startColumn.
Type Parameters
- T
Return Value
HermitianMatrix<T>A HermitianMatrix<T>.
Exceptions
Argument | matrix is null. |
Argument | dimension is less than zero -or- startRow is less than zero or greater than or equal to the number of rows in matrix. -or- startColumn is less than zero or greater than or equal to the number of columns in matrix. |
Argument | startRow plus dimension is greater than or equal to the number of rows in matrix. -or- startColumn plus dimension is greater than or equal to the number of columns in matrix. |
ExtractHermitian<T>(DenseMatrix<T>, Int32, Int32, Int32, MatrixTriangle, Boolean)
public static HermitianMatrix<T> ExtractHermitian<T>(
DenseMatrix<T> matrix,
int dimension,
int startRow,
int startColumn,
MatrixTriangle storedTriangle,
bool reuseValuesArray
)
Parameters
- matrix DenseMatrix<T>
- The matrix that contains the elements of the new matrix.
- dimension Int32
- The number of rows and columns of the new matrix.
- startRow Int32
- The row in matrix of the first component of the new matrix.
- startColumn Int32
- The column in matrix of the first component 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 block specified by startRow and startColumn.
- reuseValuesArray 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
Argument | matrix is null. |
Argument | dimension is less than zero -or- startRow is less than zero or greater than or equal to the number of rows in matrix. -or- startColumn is less than zero or greater than or equal to the number of columns in matrix. |
Argument | startRow plus dimension is greater than or equal to the number of rows in matrix. -or- startColumn plus dimension is greater than or equal to the number of columns in matrix. |