Allocates array on device.

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

Syntax

C#
public override T[,] Allocate<T>(
	int x,
	int y
)
Visual Basic
Public Overrides Function Allocate(Of T) ( _
	x As Integer, _
	y As Integer _
) As T(,)
Visual C++
public:
generic<typename T>
virtual array<T,2>^ Allocate(
	int x, 
	int y
) override

Parameters

x
Type: System..::..Int32
The x dimension.
y
Type: System..::..Int32
The y dimension.

Type Parameters

T
Blittable type.

Return Value

2D device array.

See Also