Displaying 1 result from an estimated 1 matches for "bm_shift".
Did you mean:
_shift
2011 Jun 03
2
Arules: R Crashes when running eclat with tidLists=TRUE
...(size2 > BLKSIZE) ? (size2 >> 1) : BLKSIZE;
vec1 = (int*)realloc(ruleset->trans, size2 *sizeof(int));
if (!vec1) {
if (vec) free(vec);
if (vec2) free(vec2);
_cleanup(); error(msg(E_NOMEM));}
ruleset->trans = vec1;
}
if (tal[i >> BM_SHIFT] & (1 << (i & BM_MASK))) {
/*Rprintf(" %d", i+1);*/
ruleset->trans[h] = i;
h++;
}
}
} /* print the indices of set bits */
else { /* if list of transaction ids */
if ((h + supp) >= size2) {...