/*-------------- Telecommunications & Signal Processing Lab --------------- McGill University Routine: void VRfMult (const float x1[], const float x2[], float y[], int N) Purpose: Element-by-element product of two float arrays Description: This routine calculates the product of corresponding elements of two float arrays, y[i] = x1[i] * x2[i], 0 <= i < N. Parameters: -> const float x1[] Input array (N elements) -> const float x2[] Input array (N elements) <- float y[] Output array (N elements). The output array can be the same as either of the input arrays. -> int N Number of elements in the arrays (may be zero) Author / revision: P. Kabal Copyright (C) 1996 $Revision: 1.4 $ $Date: 1996/05/06 20:39:25 $ -------------------------------------------------------------------------*/ static char rcsid[] = "$Id: VRfMult.c 1.4 1996/05/06 AFsp-V2R1 $"; #include void VRfMult (x1, x2, y, N) const float x1[]; const float x2[]; float y[]; int N; { int i; for (i = 0; i < N; ++i) y[i] = x1[i] * x2[i]; return; }