VF_subvector_...VD_subvector_...VE_subvector_...
VCF_subvector_...VCD_subvector_...VCE_subvector_...
VPF_subvector_...VPD_subvector_...VPE_subvector_...
VI_subvector_...VBI_subvector_...VSI_subvector_...
VLI_subvector_...VQI_subvector_...
VU_subvector_...VUB_subvector_...VUS_subvector_...
VUL_subvector_...VUI_subvector_...
 ..._equC..._equV
FunctionInitialize a sub-set of elements within a vector either with a constant value or with values stored as the elements of another vector.
Syntax C/C++#include <VFstd.h>
void VF_subvector_equC( fVector Y, ui subsize, unsigned samp, float C );
void VF_subvector_equV( fVector Y, ui subsize, unsigned samp, fVector X );

    (similarly all other functions of this family)
C++ VecObj#include <OptiVec.h>
void vector<T>::subvector_equC( unsigned samp, const T& C );
void vector<T>::subvector_equV( unsigned samp, const vector<T>& X );
Pascal/Delphiuses VFstd;
procedure VF_subvector_equC( Y:fVector; subsz:UIntSize; samp:UIntSize; C:Single );
procedure VF_subvector_equV( Y:fVector; subsz:UIntSize; samp:UIntSize; X:fVector );

    (similarly all other functions of this family)
Description
..._equC:  Yi*samp = C,i=0,...subsize-1
..._equV:Yi*samp = Xi,  i=0,...subsize-1
 
A sub-set of the elements of a vector is overwritten according to the sampling interval samp: every samp'th element is initialized either with the constant C, or with the value specified as an element of the vector X. A total of subsize elements is initialized, starting with the zeroth one (that means, subsize is not the total size of the vector, but rather the size of the sub-set). VF_subvector_equV is the exact reverse of VF_subvector.
Error handlingnone
Return valuenone
See alsoVF_subvector,   VF_equC,   VF_equV,   VF_subvector_addC

VectorLib Table of Contents  OptiVec home