ILNumerics Ultimate VS

BaseStorageT, LocalT, InT, OutT, RetT, StorageTCreate Method (T, UInt32)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
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

public static StorageT Create(
	T scalar,
	uint ndims
)

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: StorageT
Storage 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

Reference