next up previous contents
Next: Function: product() Up: GRASP Routines: General purpose Previous: Function: is_gaussian()   Contents

Function: clear()

0 void clear(float *array,int n,int spacing)

This routine clears (sets to zero) entries in an array.

The arguments are:

array: Ouput. This routine clears elements array[0], array[spacing], $\cdots$, array[(n-1)*spacing].
n: Input. The number of array elements that are set to zero.
spacing: Input. The spacing in the array between succesive elements that are set to zero.
Authors: Bruce Allen,
Comments: None.

Bruce Allen 2000-11-19