ILNumerics Ultimate VS

ArrayT  Conversion (RetArrayT to ArrayT)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
"Persistence cast" make a steady array out of a temp array

[ILNumerics Core Module]

Namespace:  ILNumerics
Assembly:  ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public static implicit operator Array<T> (
	RetArray<T> A
)

Parameters

A
Type: ILNumericsRetArrayT
Temporary array

Return Value

Type: ArrayT
Steady Array, will survive multiple usages
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.

New memoy is only used for the new array storage and data elements are only copied from A when the returned array is altered later on.

[ILNumerics Core Module]

See Also

Reference