ILNumerics Ultimate VS

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

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Provide a scalar storage with the value of scalar.

[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
)

Parameters

scalar
Type: T
Value of the element of the new storage.

Return Value

Type: StorageT
Storage of size 1x1, storing a single element with the value scalar.
Remarks

This will get the storage from the storage pool if possible. A new storage is returned only if no matching storage was available in the pool.

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] or a scalar array (ndims==0, nelem==1; numpy mode) is created.

[ILNumerics Core Module]

See Also

Reference