ILNumerics Ultimate VS

ILMathonesT Method (InArrayInt64, StorageOrders)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Creates a new array of ones '1' with a size determined by size.

[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>(
	InArray<long> size,
	StorageOrders order = StorageOrders.ColumnMajor
)
where T : struct, new()

Parameters

size
Type: ILNumericsInArrayInt64
Vector with lengths of the dimensions of the new array.
order (Optional)
Type: ILNumericsStorageOrders
[Optional] Storage order for the new array. Default: ColumnMajor.

Type Parameters

T
Element type for the new array.

Return Value

Type: RetArrayT
New array of the specified size and storage order, initialized with '1'.
Exceptions

ExceptionCondition
ArgumentExceptionif 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)

Other Resources