Constructs a new upper triangular matrix.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static TriangularMatrix<T> CreateUpperTriangular<T>(
int rowCount,
int columnCount,
T[] values,
MatrixDiagonal diagonal,
MatrixElementOrder order,
bool reuseComponentArray
)
Public Shared Function CreateUpperTriangular(Of T) (
rowCount As Integer,
columnCount As Integer,
values As T(),
diagonal As MatrixDiagonal,
order As MatrixElementOrder,
reuseComponentArray As Boolean
) As TriangularMatrix(Of T)
public:
generic<typename T>
static TriangularMatrix<T>^ CreateUpperTriangular(
int rowCount,
int columnCount,
array<T>^ values,
MatrixDiagonal diagonal,
MatrixElementOrder order,
bool reuseComponentArray
)
static member CreateUpperTriangular :
rowCount : int *
columnCount : int *
values : 'T[] *
diagonal : MatrixDiagonal *
order : MatrixElementOrder *
reuseComponentArray : bool -> TriangularMatrix<'T>
Parameters
- rowCount
- Type: SystemInt32
The number of rows. - columnCount
- Type: SystemInt32
The number of columns. - values
- Type: T
A T array that contains the
elements. - diagonal
- Type: Extreme.MathematicsMatrixDiagonal
A MatrixDiagonal
value that indicates whether the diagonal elements
are all 1 or not. - order
- Type: Extreme.MathematicsMatrixElementOrder
A MatrixElementOrder
value that indicates whether the elements are stored
in column major or row major order. - reuseComponentArray
- Type: SystemBoolean
If , the array referenced by
values is used directly. Any
changes to the elements of this triangular matrix
will also affect the original array. If , the elements are
copied from values to a new array.
Type Parameters
- T
Return Value
Type:
TriangularMatrixTA triangular matrix.
The array values must contain the elements
of the matrix, column by column. Only the values in the upper triangular part of this array are used. The other elements must
be present, but they are never accessed.
Reference