};
struct __bcf_p1aux_t {
- int n, M;
+ int n, M, n1;
double *q2p, *pdg; // pdg -> P(D|g)
double *phi;
double *z, *zswap; // aux for afs
bcf_p1aux_t *ma;
int i;
ma = calloc(1, sizeof(bcf_p1aux_t));
+ ma->n1 = -1;
ma->n = n; ma->M = 2 * n;
ma->q2p = calloc(256, sizeof(double));
ma->pdg = calloc(3 * ma->n, sizeof(double));
return ma;
}
+int bcf_p1_set_n1(bcf_p1aux_t *b, int n1)
+{
+ if (n1 == 0 || n1 >= b->n) return -1;
+ b->n1 = n1;
+ return 0;
+}
+
void bcf_p1_destroy(bcf_p1aux_t *ma)
{
if (ma) {