summaryrefslogtreecommitdiff
path: root/numpy/random/tests
diff options
context:
space:
mode:
authorRedRuM <44142765+zoj613@users.noreply.github.com>2019-08-18 16:29:45 +0200
committerRedRuM <44142765+zoj613@users.noreply.github.com>2019-08-18 16:29:45 +0200
commitb665d761b98a176d0df13ee6d7da8037d007c0f7 (patch)
treec57f595f52d511abaa459a025f36ebf95ccb9512 /numpy/random/tests
parentb0c7b22122a121c1d2b9f8895c8b78362e666678 (diff)
downloadnumpy-b665d761b98a176d0df13ee6d7da8037d007c0f7.tar.gz
MNT: simplify the API by requiring the user to ensure the correct factor is supplied.
Diffstat (limited to 'numpy/random/tests')
-rw-r--r--numpy/random/tests/test_generator_mt19937.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/numpy/random/tests/test_generator_mt19937.py b/numpy/random/tests/test_generator_mt19937.py
index 2677b04fa..3b92f17f0 100644
--- a/numpy/random/tests/test_generator_mt19937.py
+++ b/numpy/random/tests/test_generator_mt19937.py
@@ -1052,14 +1052,12 @@ class TestRandomDist(object):
eigh_factor = u * np.sqrt(s)
random = Generator(MT19937(self.seed))
actual_eigh = random.multivariate_normal(mean, eigh_factor,
- method='eigh',
use_factor=True)
random = Generator(MT19937(self.seed))
desired_chol = random.multivariate_normal(mean, cov, method='cholesky')
chol_factor = cholesky(cov)
random = Generator(MT19937(self.seed))
actual_chol = random.multivariate_normal(mean, chol_factor,
- method='cholesky',
use_factor=True)
assert_array_almost_equal(actual_svd, desired_svd, decimal=15)
assert_array_almost_equal(actual_eigh, desired_eigh, decimal=15)