Allocates on device.

Namespace: Cudafy.Host
Assembly: Cudafy.Host (in Cudafy.Host.dll) Version: 1.0.4106.20172

Syntax

C#
public virtual T[] Allocate<T>()
Visual Basic
Public Overridable Function Allocate(Of T) As T()
Visual C++
public:
generic<typename T>
virtual array<T>^ Allocate()

Type Parameters

T
Blittable type.

Return Value

Device array of length 1.

See Also