ILNumerics - Technical Application Development
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Unity matrix (diagonal matrix) of element type T.
Create unity matrix, arbitrary numeric type.
[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>( int rows, int columns ) where T : struct, new(), IConvertible
Parameters
- rows
- Type: SystemInt32
Number of rows. - columns
- Type: SystemInt32
Number of columns.
Type Parameters
- T
- Element type, must derive from ValueType and IConvertible.
Return Value
Type: RetArrayTUnity matrix (diagonal matrix) of element type T.
Exceptions
Exception | Condition |
---|---|
ArgumentException | If the type specified is not supported. Supported types are: double, float, complex, fcomplex, int, long, short, byte |
Remarks
[ILNumerics Computing Engine]
See Also