NAME

base_vec -- to generate a basis vector

PROTOTYPE

unitptr base_vec( int iDim, unitptr uHost)

ARGUMENTS

int iDim
dimension of basis vector
unitptr uHost
host unit

RETURN VALUE:

A pointer to the created unit or NULL in the case of an error.

INTERFACE OF CREATED UNIT:

X_in[1]:
number of basis vector to make (is treated modulo iDim )
X_out[iDim]:
(output field 0) a basis vector consisting of all zeroes, except at position i=(int).X_in[0], where the value is 1.

FILE

/amnt/loge/users/nistaff02/nistaff/rhaschke/nst7/man/../o.linux//../foldersrc/nst_vector.c