2018-02-06 11:01:27 +00:00
|
|
|
// test_bf.c
|
|
|
|
//
|
|
|
|
// Author: J.A. de Jong -ASCEE
|
|
|
|
//
|
|
|
|
// Description:
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "fft.h"
|
|
|
|
#include "ascee_math.h"
|
|
|
|
#include "ascee_tracer.h"
|
2018-02-09 10:56:49 +00:00
|
|
|
#include "ascee_alg.h"
|
2018-02-06 11:01:27 +00:00
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
|
|
|
iVARTRACE(15,getTracerLevel());
|
|
|
|
|
2018-02-09 10:56:49 +00:00
|
|
|
c a[5];
|
|
|
|
c_set(a,1-I,5);
|
2018-02-06 11:01:27 +00:00
|
|
|
|
2018-02-09 10:56:49 +00:00
|
|
|
/* print_vc(&a); */
|
2018-02-06 11:01:27 +00:00
|
|
|
|
|
|
|
vc b = vc_alloc(5);
|
2018-02-09 10:56:49 +00:00
|
|
|
vc_set(&b,2);
|
2018-02-06 11:01:27 +00:00
|
|
|
|
|
|
|
|
2018-02-09 10:56:49 +00:00
|
|
|
printf("b:\n");
|
2018-02-06 11:01:27 +00:00
|
|
|
print_vc(&b);
|
|
|
|
|
2018-02-09 10:56:49 +00:00
|
|
|
|
|
|
|
vc c1 = vc_alloc(5);
|
|
|
|
/* vc_set(&c1,10); */
|
|
|
|
/* c_add_to(c1.ptr,a.ptr,1,3); */
|
2018-02-12 19:44:07 +00:00
|
|
|
c_hadamard(c1._data,a,b._data,5);
|
2018-02-09 10:56:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printf("c1:\n");
|
|
|
|
print_vc(&c1);
|
|
|
|
|
|
|
|
vc_free(&b);
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-06 11:01:27 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|