Skip to content

ENH: Add binding for random pyx files #21975

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion numpy/random/_generator.pyx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!python
#cython: wraparound=False, nonecheck=False, boundscheck=False, cdivision=True, language_level=3
#cython: wraparound=False, nonecheck=False, boundscheck=False, cdivision=True, language_level=3, binding=True
import operator
import warnings
from collections.abc import Sequence
Expand Down
2 changes: 2 additions & 0 deletions numpy/random/_mt19937.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#cython: binding=True

import operator

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions numpy/random/_pcg64.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#cython: binding=True

import numpy as np
cimport numpy as np

Expand Down
2 changes: 2 additions & 0 deletions numpy/random/_philox.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#cython: binding=True

from cpython.pycapsule cimport PyCapsule_New

import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions numpy/random/_sfc64.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#cython: binding=True

import numpy as np
cimport numpy as np

Expand Down
2 changes: 2 additions & 0 deletions numpy/random/bit_generator.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#cython: binding=True

"""
BitGenerator base class and SeedSequence used to seed the BitGenerators.

Expand Down
2 changes: 1 addition & 1 deletion numpy/random/mtrand.pyx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!python
#cython: wraparound=False, nonecheck=False, boundscheck=False, cdivision=True, language_level=3
#cython: wraparound=False, nonecheck=False, boundscheck=False, cdivision=True, language_level=3, binding=True
import operator
import warnings
from collections.abc import Sequence
Expand Down