Allocates array on device of same size as supplied host array.

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

Syntax

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

Parameters

hostArray
Type: array<T,2>[,](,)[,][,]
The host array.

Type Parameters

T
Blittable type.

Return Value

2D device array.

See Also