Matrix.Create Lower Triangular Method
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Create | Constructs a new lower triangular matrix. |
Create | Constructs a new lower triangular matrix. |
Create | Constructs a new lower triangular matrix. |
Create | Constructs a new lower triangular matrix. |
Create | Constructs a new lower triangular matrix. |
Create | Constructs a new lower triangular matrix. |
CreateLowerTriangular<T>(Int32)
Constructs a new lower triangular matrix.
public static TriangularMatrix<T> CreateLowerTriangular<T>(
int rowCount
)
Parameters
- rowCount Int32
- The number of rows.
Type Parameters
- T
Return Value
TriangularMatrix<T>A triangular matrix
CreateLowerTriangular<T>(Int32, Int32)
Constructs a new lower triangular matrix.
public static TriangularMatrix<T> CreateLowerTriangular<T>(
int rowCount,
int columnCount
)
Parameters
Type Parameters
- T
Return Value
TriangularMatrix<T>A triangular matrix.
CreateLowerTriangular<T>(Int32, Int32, MatrixDiagonal)
Constructs a new lower triangular matrix.
public static TriangularMatrix<T> CreateLowerTriangular<T>(
int rowCount,
int columnCount,
MatrixDiagonal diagonal
)
Parameters
- rowCount Int32
- The number of rows.
- columnCount Int32
- The number of columns.
- diagonal MatrixDiagonal
- A MatrixDiagonal value that indicates whether the diagonal elements are all 1 or not.
Type Parameters
- T
Return Value
TriangularMatrix<T>A triangular matrix.
CreateLowerTriangular<T>(Int32, Int32, T[], MatrixElementOrder)
Constructs a new lower triangular matrix.
public static TriangularMatrix<T> CreateLowerTriangular<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 lower triangular part of this array are used. The other elements must be present, but they are never accessed.
Exceptions
Argument | values is null. |
CreateLowerTriangular<T>(Int32, Int32, Array2D<T>, MatrixDiagonal, MatrixElementOrder)
Constructs a new lower triangular matrix.
public static TriangularMatrix<T> CreateLowerTriangular<T>(
int rowCount,
int columnCount,
Array2D<T> storage,
MatrixDiagonal diagonal,
MatrixElementOrder order
)
Parameters
- rowCount Int32
- The number of rows.
- columnCount Int32
- The number of columns.
- storage Array2D<T>
- A 2D array that contains the elements.
- diagonal MatrixDiagonal
- A MatrixDiagonal value that indicates whether the diagonal elements are all 1 or not.
- 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.
CreateLowerTriangular<T>(Int32, Int32, T[], MatrixDiagonal, MatrixElementOrder, Boolean)
Constructs a new lower triangular matrix.
public static TriangularMatrix<T> CreateLowerTriangular<T>(
int rowCount,
int columnCount,
T[] values,
MatrixDiagonal diagonal,
MatrixElementOrder order,
bool reuseComponentArray
)
Parameters
- rowCount Int32
- The number of rows.
- columnCount Int32
- The number of columns.
- values T[]
- A T array that contains the elements.
- diagonal MatrixDiagonal
- A MatrixDiagonal value that indicates whether the diagonal elements are all 1 or not.
- order MatrixElementOrder
- A MatrixElementOrder value that indicates whether the elements are stored in column major or row major order.
- reuseComponentArray Boolean
- If true, the array referenced by values is used directly. Any changes to the elements of this triangular matrix will also affect the original array. If false, the elements are copied from values to a new array.
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 values in the lower triangular part of this array are used. The other elements must be present, but they are never accessed.
Exceptions
Argument | values is null. |