30 #ifndef ADP_RSH_XOR_NSTATES
31 #define ADP_RSH_XOR_NSTATES 3
33 #ifndef ADP_RSH_XOR_NPOS
34 #define ADP_RSH_XOR_NPOS 3
36 #ifndef ADP_RSH_XOR_MSIZE
37 #define ADP_RSH_XOR_MSIZE (1L << ADP_RSH_XOR_NSTATES)
39 #ifndef ADP_RSH_XOR_NINPUTS
40 #define ADP_RSH_XOR_NINPUTS 2
42 #ifndef ADP_RSH_XOR_NOUTPUTS
43 #define ADP_RSH_XOR_NOUTPUTS 1
45 #ifndef ADP_RSH_XOR_COLSUM
46 #define ADP_RSH_XOR_COLSUM 4
48 #ifndef ADP_RSH_XOR_NORM // two independent inputs
49 #define ADP_RSH_XOR_NORM 1.0 /(double)ADP_RSH_XOR_COLSUM
52 uint32_t
rsh_xor(uint32_t a, uint32_t x,
int r);
54 double adp_rsh_xor_exper(
const uint32_t da,
const uint32_t dx,
const uint32_t db,
const int r);
66 double adp_rsh_xor(gsl_matrix* A[3][2][2][2], uint32_t da, uint32_t dx, uint32_t db,
int r);
70 #endif // #ifndef ADP_RSH_XOR_H
void adp_rsh_xor_sf(gsl_matrix *A[3][2][2][2])
Definition: adp-rsh-xor.cc:206
double adp_rsh_xor_approx(uint32_t da, uint32_t dx, uint32_t db, int r)
Definition: adp-rsh-xor.cc:382
void adp_rsh_xor_alloc_matrices(gsl_matrix *A[3][2][2][2])
Definition: adp-rsh-xor.cc:93
uint32_t rsh_xor(uint32_t a, uint32_t x, int r)
Definition: adp-rsh-xor.cc:48
double adp_rsh_xor(gsl_matrix *A[3][2][2][2], uint32_t da, uint32_t dx, uint32_t db, int r)
Definition: adp-rsh-xor.cc:303
double adp_rsh_xor_exper(const uint32_t da, const uint32_t dx, const uint32_t db, const int r)
Definition: adp-rsh-xor.cc:65
void adp_rsh_xor_free_matrices(gsl_matrix *A[3][2][2][2])
Definition: adp-rsh-xor.cc:111
void adp_rsh_xor_print_matrices(gsl_matrix *A[3][2][2][2])
Definition: adp-rsh-xor.cc:160
void adp_rsh_xor_normalize_matrices(gsl_matrix *A[3][2][2][2])
Definition: adp-rsh-xor.cc:127