ILNumerics Ultimate VS

DeviceNewT Method

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Allocate new memory for the given number of elements.

[ILNumerics Core Module]

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

public abstract MemoryHandle New<T>(
	ulong elementCount,
	bool clear = false
)

Parameters

elementCount
Type: SystemUInt64
Number of elements to store.
clear (Optional)
Type: SystemBoolean
[Optional] true: make sure the memory is cleared on return. Default: false.

Type Parameters

T
Element type.

Return Value

Type: MemoryHandle
NativeHostHandle for structs, ManagedHostHandleT for reference types T.
Remarks

[ILNumerics Core Module]

See Also

Reference