ILNumerics Ultimate VSCell  Conversion (RetCell to Cell)ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
"Persistence cast". Makes a local array out of a return type array.

[ILNumerics Core Module]

Namespace: ILNumerics
Assembly: ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.3.0.0 (5.3.7131.2749)
Syntax

public static implicit operator Cell (
	RetCell A
)

Parameters

A
Type: ILNumericsRetCell
Array returned from somewhere.

Return Value

Type: Cell
Local array, survives multiple usages in the current scope.
Remarks

This casting conversion changes temporary arrays from temporary (volatile) state to local arrays with persistent state. The inner storage is kept and used for the new array. The new array can then be used (referenced, accessed, modified) during the rest of the function scope. In contrast to that, RetArrayT1 is disposed off immediately after first use.

Array conversions in ILNumerics do not require new memory. Elements are not copied unless multiple arrays reference the same memory and one of them is about to be changed. Only then a copy of the memory is done and the change is performed on the copy (lazy copy on write).

[ILNumerics Core Module]

See Also

Reference