ILNumerics Ultimate VS

ILMatheyeT Method (T, Int32, Int32, StorageOrders)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
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,
	int rows,
	int 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: SystemInt32
Number of rows to create.
columns
Type: SystemInt32
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: RetArrayT
Matrix of element type T having the element diagVal on the main diagonal.
Remarks

[ILNumerics Computing Engine]

See Also

Reference