Constructs a new symmetrical 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 SymmetricMatrix<T> CreateSymmetric<T>(
int dimension,
Array2D<T> storage,
MatrixTriangle storedTriangle,
MatrixElementOrder elementOrder,
ArrayMutability mutability = ArrayMutability.MutableValues
)
Public Shared Function CreateSymmetric(Of T) (
dimension As Integer,
storage As Array2D(Of T),
storedTriangle As MatrixTriangle,
elementOrder As MatrixElementOrder,
Optional mutability As ArrayMutability = ArrayMutability.MutableValues
) As SymmetricMatrix(Of T)
public:
generic<typename T>
static SymmetricMatrix<T>^ CreateSymmetric(
int dimension,
Array2D<T> storage,
MatrixTriangle storedTriangle,
MatrixElementOrder elementOrder,
ArrayMutability mutability = ArrayMutability::MutableValues
)
static member CreateSymmetric :
dimension : int *
storage : Array2D<'T> *
storedTriangle : MatrixTriangle *
elementOrder : MatrixElementOrder *
?mutability : ArrayMutability
(* Defaults:
let _mutability = defaultArg mutability ArrayMutability.MutableValues
*)
-> SymmetricMatrix<'T>
Parameters
- dimension
- Type: SystemInt32
The number of rows and columns
in the new symmetric matrix. - storage
- Type: Extreme.CollectionsArray2DT
A 2D array containing the elements
of the symmetric matrix in
column-major order - storedTriangle
- 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. - mutability (Optional)
- Type: Extreme.MathematicsArrayMutability
Specifies how the matrix's values may be changed.
The default is mutable values.
Type Parameters
- T
Return Value
Type:
SymmetricMatrixTA symmetric matrix.
The array storage must contain
the elements of the matrix, column by column.
Depending on the value of storedTriangle,
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