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 abstract T[,,] Allocate<T>(
	T[,,] hostArray
)
Visual Basic
Public MustOverride Function Allocate(Of T) ( _
	hostArray As T(,,) _
) As T(,,)
Visual C++
public:
generic<typename T>
virtual array<T,3>^ Allocate(
	array<T,3>^ hostArray
) abstract

Parameters

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

Type Parameters

T
Blittable type.

Return Value

1D device array.

See Also