// inner_product_sa.c 
// Calculates the inner product of two vectors 

#include <stdio.h>    				// for printf
#define  N 4                  			// # of data in each nx1 vector
short x[N] = {1,2,3,4};				// define elements in 1st vector
short y[N] = {0,2,4,6};				// define elements in 2nd vector
int inner_product = 0; 	        	        // initialize sum of products
extern int inprod_sa_func(short*,short*,short);
main()
{
  inner_product = inprod_sa_func(x,y,N);    // call inner_prod function
  printf("<x,y> = %d (decimal) \n", inner_product); // print result
}
            
