[ILNumerics Computing Engine]
Namespace: ILNumerics
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Parameters
- size
- Type: SystemInt64
Variable length Array or comma separated list with lengths of the dimensions of the new array.
Return Value
Type: RetArrayDoubleNew array of the specified size and ColumnMajor storage order, random values.
Exception | Condition |
---|---|
ArgumentException | if size is null, has more elements than MaxNumberOfDimensions or contains negative values. |
size cannot be null. Its length determines the number of dimensions of the new array. The elements determine the lengths of corresponding dimensions and cannot contain negative values.
Arrays returned from this overload are in ColumnMajor storage order. Use rand(InArrayInt64, StorageOrders) for determining the storage order explicitly.
Since the variable length parameter list and the 'params' keyword (C#) implicitly allocates new storage under the control of the GC consider using one of the vector``1(UMP) overloads and rand(InArrayInt64, StorageOrders) instead to provide the dimension lengths. This method is recommended when high-performance is important.
[ILNumerics Computing Engine]