ILNumerics - Technical Application Development
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
New ILNumerics array initialized with ones.
Creates a new ILNumerics array of ones for numeric element types T.
[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> ones<T>( long dim0, long dim1, long dim2, long dim3, StorageOrders order = StorageOrders.ColumnMajor ) where T : struct, new(), IConvertible
Parameters
- dim0
- Type: SystemInt64
Length of dimension #0. - dim1
- Type: SystemInt64
Length of dimension #1. - dim2
- Type: SystemInt64
Length of dimension #2. - dim3
- Type: SystemInt64
Length of dimension #3. - order (Optional)
- Type: ILNumericsStorageOrders
[Optional] The storage order for the new array. Default: ColumnMajor.
Type Parameters
- T
- Element type.
Return Value
Type: RetArrayTNew ILNumerics array initialized with ones.
Exceptions
Exception | Condition |
---|---|
ArgumentException | if T is not supported. Use one of the predefined, scalar value types (Double, float, int, ...), complex or fcomplex. |
Remarks
Supported element types are all predefined, scalar numeric value types.
[ILNumerics Computing Engine]
See Also
Reference
MathInternal.zeros``1(Int64, Int64, StorageOrders)
MathInternal.array``1(UMP, Int64, StorageOrders)
MathInternal.vector``1(UMP, UMP, UMP, UMP, UMP, UMP, UMP, UMP, UMP, UMP)
MathInternal.ones``1(Int64, Int64, StorageOrders)
MathInternal.empty``1(Int64, Int64, StorageOrders)