VU_indrampVUQ_indrampVUI_indramp
FunctionInitialize 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/Delphiuses 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/Delphiuses VUIstd;
function cudaVUI_indramp( d_X:uiVector; size:UIntSize ): IntBool;
procedure VUIcu_indramp( h_X:uiVector; size:UIntSize );
DescriptionXi = 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.
Error handlingnone
Return valuenone
See alsoVF_ramp,   VF_Parzen,   VF_Welch,   VF_equ1,   VF_random

VectorLib Table of Contents  OptiVec home