Allocates array on device of same size as supplied host array.
Namespace: Cudafy.HostAssembly: 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,2>^ Allocate(
array<T,2>^ hostArray
) abstract |
Parameters
- hostArray
- Type: array<T,2>[,](,)[,][,]
The host array.
Type Parameters
Return Value
1D device array.
See Also