VU_indramp | VUQ_indramp | VUI_indramp |
|
Function | Initialize each vector element with its index. |
|
Syntax C/C++ | #include <VUIstd.h>
void VUI_indramp( uiVector X, ui size );
(similarly VU_) |
C++ VecObj | #include <OptiVec.h>
void vector<T>::indramp( void ); |
Pascal/Delphi | uses VUIstd;
procedure VUI_indramp( X:uiVector; size:UIntSize );
(similarly VU_)
|
|
CUDA function C/C++ | #include <cudaVUIstd.h>
int cudaVUI_indramp( uiVector d_X, ui size );
void VUIcu_indramp( uiVector h_X, ui size );
|
CUDA function Pascal/Delphi | uses VUIstd;
function cudaVUI_indramp( d_X:uiVector; size:UIntSize ): IntBool;
procedure VUIcu_indramp( h_X:uiVector; size:UIntSize );
|
|
Description | Xi = i
Each element of X is filled with its index, resulting in a "ramp" 0, 1, 2, 3, ...
For starting values different from 0 or for intervals different from 1, or for other data types than ui / UIntSize, use VF_ramp.
|
|
|
|
|