|
Function | De-allocate a single vector |
|
Syntax C/C++ | #include <VecLib.h>
void V_free( void *X ); |
Pascal/Delphi | uses VecLib;
procedure V_free( Ptr:Pointer ); |
|
CUDA function C/C++ | #include <cudaVecLib.h>
int cudaV_free( void *d_X );
|
CUDA function Pascal/Delphi | uses VecLib;
function cudaV_free( d_X:Pointer ): IntBool;
|
|
Description | The vector X is freed (i.e. de-allocated). V_free should be used only for the de-allocation of vectors which have previously be allocated by one of the functions of the VF_vector or VF_vector0 family. To free several vectors simultaneously, use V_nfree (C/C++ only). |
|
Error handling | Trying to free a vector that has already been freed, or that has never been allocated memory, leads to a warning message "Cannot free non-existent vector". Program execution is continued without freeing anything in this case. |
|
|
|