Skip to content
Snippets Groups Projects
Commit c876e993 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

Merge branch 'NIFTy_6' into 'new_random'

# Conflicts:
#   nifty6/__init__.py
parents 71349a7e 604044cd
No related branches found
No related tags found
1 merge request!428Switch to new numpy random generators
Pipeline #71262 canceled
...@@ -147,6 +147,10 @@ def pop_sseq(): ...@@ -147,6 +147,10 @@ def pop_sseq():
_rng.pop() _rng.pop()
def seed(seed):
np.random.seed(seed)
class Random(object): class Random(object):
@staticmethod @staticmethod
def pm1(dtype, shape): def pm1(dtype, shape):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment