Matrix.Copy From Lower Triangular<T> Method
Creates a new lower TriangularMatrix<T> by copying data from a one-dimensional array.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0
C#
A new lower TriangularMatrix<T> with copied data.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0
public static TriangularMatrix<T> CopyFromLowerTriangular<T>(
T[] source,
int rowCount,
int columnCount,
MatrixElementOrder elementOrder = MatrixElementOrder.ColumnMajor,
MatrixDiagonal diagonal = MatrixDiagonal.NonUnitDiagonal,
ArrayMutability mutability = ArrayMutability.MutableValues
)
Parameters
- source T[]
- A one-dimensional array containing the triangular matrix values.
- rowCount Int32
- The number of rows in the matrix.
- columnCount Int32
- The number of columns in the matrix.
- elementOrder MatrixElementOrder (Optional)
- A MatrixElementOrder value that indicates whether the elements in source are stored in column-major or row-major order.
- diagonal MatrixDiagonal (Optional)
- Specifies whether the matrix has a unit diagonal.
- mutability ArrayMutability (Optional)
- Specifies how the matrix's values may be changed. The default is mutable values.
Type Parameters
- T
- The element type of the matrix.
Return Value
TriangularMatrix<T>A new lower TriangularMatrix<T> with copied data.
Exceptions
| Argument | source is null. |