#ifndef boag_booklet_index_H #define boag_booklet_index_H #define _GNU_SOURCE #include /* Conversion between indices and expanded descriptions of booklets. */ /* Last edited on 2018-02-13 00:49:08 by stolfilocal */ void boag_booklet_index_to_vector(int32_t NT, int32_t NB, int64_t NV, int64_t ix, int32_t qv[]); /* Converts a booklet index {ix} to the corresponding vector of question block IDs {qv[0..NT-1]}. */ void boag_booklet_index_from_vector(int32_t NT, int32_t NB, int64_t NV, int32_t qv[], int64_t *ixP); /* Stores into {*ixP} the booklet index corresponding to the vector {qv[0..NT-1]}. */ #endif