VF_vector0 | VD_vector0 | VE_vector0 |
VCF_vector0 | VCD_vector0 | VCE_vector0 |
VPF_vector0 | VPD_vector0 | VPE_vector0 |
VI_vector0 | VBI_vector0 | VSI_vector0 | VLI_vector0 | VQI_vector0 | |
VU_vector0 | VUB_vector0 | VUS_vector0 | VUL_vector0 | VUQ_vector0 | VUI_vector0 |
|
Function | Memory allocation for a vector and initialization of all elements with 0 |
|
Syntax C/C++ | #include <VFstd.h>
fVector VF_vector0( ui size ); |
Pascal/Delphi | uses VecLib;
function VF_vector0( size:UIntSize ): fVector; |
|
CUDA function C/C++ | #include <cudaVFstd.h>
fVector cudaVF_vector0( ui size );
|
CUDA function Pascal/Delphi | uses VFstd;
function cudaVF_vector0( size:UIntSize ): fVector;
|
|
Description | The functions of this family are almost identical to those of the VF_vector family; in addition to allocating memory, they initialize all elements with 0. (Calls to VF_vector and VF_vector0 may be mixed; they use the same tables to keep track of the handles and pointers). For further information, see VF_vector.
Do not use this function in connection with the object-oriented interface. It has its own automated memory allocation procedure incorporated into the constructors, see chapter 3. |
|
Error handling | If there is not enough memory available, or if size is zero, an error message "Not enough memory" is displayed and the program aborted.
16-bit models (except HUGE):
If more than 64 kB of memory are requested, an error message "Vector > 64 kB not possible" is displayed and the program aborted.
32-bit:
If more than 4 GB of memory are requested, an error message "Vector > 4 GB not possible" is displayed and the program aborted. |
|
Return value | A pointer to the allocated memory is returned. |
|
|