ILNumerics - Technical Application Development
Assembly: ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
Storage of size as specified by ndims, storing a single element with the value scalar.
Provide a storage for the provided scalar value.
[ILNumerics Core Module]
Namespace: ILNumerics.Core.StorageLayer
Assembly: ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax
Parameters
- scalar
- Type: T
Value of the element of the new storage. - ndims
- Type: SystemUInt32
Number of (singleton) dimensions for the new array returned.
Return Value
Type: StorageTStorage of size as specified by ndims, storing a single element with the value scalar.
Remarks
The storage is created as column major storage. The number and lengths of the created dimensions depend on the value of the configuration setting MinNumberOfArrayDimensions. By default, this value is 2 and all arrays have at least two dimensions. In this case a # matrix of size [1, 1] is created. If the configured value for MinNumberOfArrayDimensions is smaller than 2 a vector with the length [1] is created.
[ILNumerics Core Module]
See Also