|
Function | Initializes a vector with a comb function. |
|
Syntax C/C++ | #include <VFstd.h>
void VF_comb( fVector X, ui size, ui spac, float C ); |
C++ VecObj | #include <OptiVec.h>
void vector<T>::comb( ui spac, const T& C ); |
Pascal/Delphi | uses VFstd;
procedure VF_comb( X:fVector; size:UIntSize; spac:Word; C:Single ); |
|
CUDA function C/C++ | #include <cudaVFstd.h>
int cudaVF_comb( fVector d_X, ui size, ui spac, float C );
int cusdVF_comb( fVector d_X, ui size, ui spac, float *d_C );
void VFcu_comb( fVector h_X, ui size, ui spac, float C );
|
CUDA function Pascal/Delphi | uses VFstd;
function cudaVF_comb( d_X:fVector; size:UIntSize; spac:Word; C:Single ): IntBool;
function cusdVF_comb( d_X:fVector; size:UIntSize; spac:Word; d_C:PSingle ): IntBool;
procedure VFcu_comb( h_X:fVector; size:UIntSize; spac:Word; C:Single );
|
|
Description | Xi = C, i = 0, 1*spac, 2*spac,...
Xi = 0, otherwise |
|
Error handling | If the spacing spac of the comb exceeds size, an error message "Invalid parameter(s)" is displayed and the program aborted. |
|
|
|