(self)
| 1379 | assert_array_equal(r, [1, 6, 1, 2]) |
| 1380 | |
| 1381 | def test_scalar(self): |
| 1382 | def addsubtract(a, b): |
| 1383 | if a > b: |
| 1384 | return a - b |
| 1385 | else: |
| 1386 | return a + b |
| 1387 | |
| 1388 | f = vectorize(addsubtract) |
| 1389 | r = f([0, 3, 6, 9], 5) |
| 1390 | assert_array_equal(r, [5, 8, 1, 4]) |
| 1391 | |
| 1392 | def test_large(self): |
| 1393 | x = np.linspace(-3, 2, 10000) |
nothing calls this directly
no test coverage detected