Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static SymmetricMatrix<T> ExtractSymmetric<T>(
Matrix<T> matrix,
int dimension,
int startRow,
int startColumn,
MatrixTriangle storedTriangle
)
Public Shared Function ExtractSymmetric(Of T) (
matrix As Matrix(Of T),
dimension As Integer,
startRow As Integer,
startColumn As Integer,
storedTriangle As MatrixTriangle
) As SymmetricMatrix(Of T)
public:
generic<typename T>
static SymmetricMatrix<T>^ ExtractSymmetric(
Matrix<T>^ matrix,
int dimension,
int startRow,
int startColumn,
MatrixTriangle storedTriangle
)
static member ExtractSymmetric :
matrix : Matrix<'T> *
dimension : int *
startRow : int *
startColumn : int *
storedTriangle : MatrixTriangle -> SymmetricMatrix<'T>
Parameters
- matrix
- Type: Extreme.MathematicsMatrixT
The matrix that contains the elements of the new matrix. - dimension
- Type: SystemInt32
The number of rows and columns of the new matrix. - startRow
- Type: SystemInt32
The row in matrix of the first component
of the new matrix. - startColumn
- Type: SystemInt32
The column in matrix of the first component
of the new matrix. - storedTriangle
- Type: Extreme.MathematicsMatrixTriangle
A MatrixTriangle value that indicates
whether the elements of the symmetric matrix are stored in the upper or lower
triangular portion of the block specified by startRow and
startColumn.
Type Parameters
- T
Return Value
Type:
SymmetricMatrixTA
SymmetricMatrixT.
Exception | Condition |
---|
ArgumentNullException | matrix is . |
ArgumentOutOfRangeException | 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. |
ArgumentException | 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. |
Reference