
#include "compMatrix.h"

cfixed_t vectormul(
	cfixed_t W_row[NA],
	cfixed_t y_col[NA]){
	
	cfixed_t res_acum, res;

		
	res_acum.real = 0.0f; res_acum.imag = 0.0f;
			
	#pragma unroll
	for(int k = 0; k < NA; k++){
	
		res_acum.real += W_row[k].real * y_col[k].real - W_row[k].imag * y_col[k].imag;
		res_acum.imag += W_row[k].real * y_col[k].imag + W_row[k].imag * y_col[k].real;

	}
		res.real = res_acum.real;
		res.imag = res_acum.imag;
	
	return res;
				
}