Matrix.Create Upper Triangular<T>(Int 32, Int 32, T[], Matrix Element Order) Method
Constructs a new upper triangular matrix.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A triangular matrix.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static TriangularMatrix<T> CreateUpperTriangular<T>(
int rowCount,
int columnCount,
T[] values,
MatrixElementOrder order
)
Parameters
- rowCount Int32
- The number of rows.
- columnCount Int32
- The number of columns.
- values T[]
- A T array that contains the elements.
- order MatrixElementOrder
- A MatrixElementOrder value that indicates whether the elements are stored in column major or row major order.
Type Parameters
- T
Return Value
TriangularMatrix<T>A triangular matrix.
Remarks
The array values must contain the elements of the matrix, column by column. Only the elements in the upper triangular part of this array are used. The other elements must be present, but they are never accessed.
Exceptions
Argument | values is null. |