MCPcopy Create free account
hub / github.com/numpy/numpy / random_bounded_bool_fill

Function random_bounded_bool_fill

numpy/random/src/distributions/distributions.c:1686–1697  ·  view source on GitHub ↗

* Fills an array with cnt random npy_bool between off and off + rng * inclusive. */

Source from the content-addressed store, hash-verified

1684 * inclusive.
1685 */
1686void random_bounded_bool_fill(bitgen_t *bitgen_state, npy_bool off,
1687 npy_bool rng, npy_intp cnt, bool use_masked,
1688 npy_bool *out) {
1689 npy_bool mask = 0;
1690 npy_intp i;
1691 uint32_t buf = 0;
1692 int bcnt = 0;
1693
1694 for (i = 0; i < cnt; i++) {
1695 out[i] = buffered_bounded_bool(bitgen_state, off, rng, mask, &bcnt, &buf);
1696 }
1697}
1698
1699void random_multinomial(bitgen_t *bitgen_state, RAND_INT_TYPE n,
1700 RAND_INT_TYPE *mnix, double *pix, npy_intp d,

Callers

nothing calls this directly

Calls 1

buffered_bounded_boolFunction · 0.85

Tested by

no test coverage detected