We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc4fd56 commit dee9447Copy full SHA for dee9447
2 files changed
complexify/cs.py
@@ -5,11 +5,6 @@
5
6
import numpy as np
7
8
-if np.__version__[0] == "2":
9
- NumPy2 = True
10
-else:
11
- NumPy2 = False
12
-
13
14
def abs(x): # noqa: A001
15
"""
tests/test_cs.py
@@ -9,11 +9,11 @@ class TestComplexSafe(unittest.TestCase):
def setUp(self):
# Generate random arrays with a fixed seed
np.random.seed(3)
- self.a = np.random.rand(5)
- self.b = np.random.rand(5)
+ self.a = 2 * (np.random.rand(5) - 0.5)
+ self.b = 2 * (np.random.rand(5) - 0.5)
- self.hFD = 1e-6
16
- self.hCS = 1e-40
+ self.hFD = 1e-8
+ self.hCS = 1e-200
17
18
self.aFD = self.a.copy()
19
self.aFD[0] += self.hFD
0 commit comments