bt0[0] = np.reshape(bitget(ir, np.arange(d)), (d, -1))