Constructs a new Hermitian matrix of the
specified dimension using the specified values.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static HermitianMatrix<T> CreateHermitian<T>(
int dimension,
T[] values,
MatrixTriangle matrixTriangle,
MatrixElementOrder elementOrder
)
Public Shared Function CreateHermitian(Of T) (
dimension As Integer,
values As T(),
matrixTriangle As MatrixTriangle,
elementOrder As MatrixElementOrder
) As HermitianMatrix(Of T)
public:
generic<typename T>
static HermitianMatrix<T>^ CreateHermitian(
int dimension,
array<T>^ values,
MatrixTriangle matrixTriangle,
MatrixElementOrder elementOrder
)
static member CreateHermitian :
dimension : int *
values : 'T[] *
matrixTriangle : MatrixTriangle *
elementOrder : MatrixElementOrder -> HermitianMatrix<'T>
Parameters
- dimension
- Type: SystemInt32
The number of rows and columns
in the new Hermitian matrix. - values
- Type: T
An Array of
values containing the elements
of the Hermitian matrix in
column-major order - matrixTriangle
- Type: Extreme.MathematicsMatrixTriangle
A MatrixTriangle
value that specifies whether to take the elements from
the upper or lower triangle of the element values. - elementOrder
- Type: Extreme.MathematicsMatrixElementOrder
A MatrixElementOrder value that indicates
whether the elements are stored in column-major or row-major order.
Type Parameters
- T
Return Value
Type:
HermitianMatrixTA Hermitian matrix.
The array values must contain the elements
of the matrix, column by column. Depending on the value of matrixTriangle,
the values in the upper or lower triangular part of this array are used. The other elements must
be present, but their value is irrelevant.
Reference