NAME
extract_subvec -- vector from subset of vector elements
PROTOTYPE
unitptr extract_subvec( int iDim, int iNum, char *pcFmt, unitptr uHost)
ARGUMENTS
- int iDim
- dimension of pattern vector. For iDim=0, the unit will do nothing
- int iNum
- nr of pattern blocks (0 = variable number)
- char *pcFmt
- format string, use X for to-be-extracted positions, # for to-be-ignored positions, [n] for nominal expansion of values k=1..n into k-th unit vector, [a:b] dito, but k=a..b is mapped into unit vector nr k-a+1. Special case: [-1] to map neg/pos numbers into (1,0) and (0,1), resp. Numbers can be used to abbreviate multiple occurrences, e.g., 5X3#. If pcFmt contains the directive %d, this will indicate to provide the dimension specified by the mask at an additional output field (this is useful for a subsequent remake_unit()).
- unitptr uHost
- host unit
FILE
/local/homes/rhaschke/nst7/man/../o.linx86_64//../foldersrc/nst_vector.c