Skip to content

Commit

Permalink
MAINT: remove pcg32 BitGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Jun 25, 2019
1 parent 5a7a4a4 commit 083be1f
Show file tree
Hide file tree
Showing 16 changed files with 6 additions and 2,945 deletions.
4 changes: 2 additions & 2 deletions benchmarks/benchmarks/bench_random.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def time_permutation_int(self):

class RNG(Benchmark):
param_names = ['rng']
params = ['PCG64', 'PCG32', 'MT19937', 'Xoshiro256',
params = ['PCG64', 'MT19937', 'Xoshiro256',
'Xoshiro512', 'Philox', 'ThreeFry', 'numpy']

def setup(self, bitgen):
Expand Down Expand Up @@ -134,7 +134,7 @@ class Bounded(Benchmark):
u32 = np.uint32
u64 = np.uint64
param_names = ['rng', 'dt_max']
params = [['PCG64', 'PCG32', 'MT19937','Xoshiro256',
params = [['PCG64', 'MT19937','Xoshiro256',
'Xoshiro512', 'Philox', 'ThreeFry', 'numpy'],
[[u8, 95],
[u8, 64], # Worst case for legacy
Expand Down
1 change: 0 additions & 1 deletion doc/source/reference/random/bit_generators/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Stable RNGs
:maxdepth: 1

MT19937 <mt19937>
PCG32 <pcg32>
PCG64 <pcg64>
Philox <philox>
ThreeFry <threefry>
Expand Down
34 changes: 0 additions & 34 deletions doc/source/reference/random/bit_generators/pcg32.rst

This file was deleted.

4 changes: 1 addition & 3 deletions numpy/random/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@
BitGenerator Streams that work with Generator
--------------------------------------------- ---
MT19937
PCG32
PCG64
Philox
ThreeFry
Expand Down Expand Up @@ -166,15 +165,14 @@
from .mtrand import *
from .generator import Generator
from .mt19937 import MT19937
from .pcg32 import PCG32
from .pcg64 import PCG64
from .philox import Philox
from .threefry import ThreeFry
from .xoshiro256 import Xoshiro256
from .xoshiro512 import Xoshiro512
from .mtrand import RandomState

__all__ += ['Generator', 'MT19937', 'Philox', 'PCG64', 'PCG32',
__all__ += ['Generator', 'MT19937', 'Philox', 'PCG64',
'ThreeFry', 'Xoshiro256', 'Xoshiro512', 'RandomState']


Expand Down
2 changes: 0 additions & 2 deletions numpy/random/_pickle.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from .mtrand import RandomState
from .philox import Philox
from .threefry import ThreeFry
from .pcg32 import PCG32
from .pcg64 import PCG64
from .xoshiro256 import Xoshiro256
from .xoshiro512 import Xoshiro512
Expand All @@ -10,7 +9,6 @@
from .mt19937 import MT19937

BitGenerators = {'MT19937': MT19937,
'PCG32': PCG32,
'PCG64': PCG64,
'Philox': Philox,
'ThreeFry': ThreeFry,
Expand Down
Loading

0 comments on commit 083be1f

Please sign in to comment.