ILNumerics - Technical Application Development
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Matrix of element type T having the element diagVal on the main diagonal.
Creates a diagonal matrix, arbitrary value type, diagonal value and storage order.
[ILNumerics Computing Engine]
Namespace: ILNumerics
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax
public static RetArray<T> eye<T>( T diagVal, long rows, long columns, StorageOrders order = StorageOrders.ColumnMajor ) where T : struct, new()
Parameters
- diagVal
- Type: T
The value to be assigned to all diagonal elements of the returned matrix. - rows
- Type: SystemInt64
Number of rows to create. - columns
- Type: SystemInt64
Number of columns to create. - order (Optional)
- Type: ILNumericsStorageOrders
[Optional] The storage order for the matrix returned. Default: ColumnMajor.
Type Parameters
- T
- Element type, must be a value type.
Return Value
Type: RetArrayTMatrix of element type T having the element diagVal on the main diagonal.
Remarks
[ILNumerics Computing Engine]
See Also