()
| 327 | |
| 328 | |
| 329 | def test_angle(): |
| 330 | real = np.random.randint(1, 100, size=(20, 20)) |
| 331 | imag = np.random.randint(1, 100, size=(20, 20)) * 1j |
| 332 | comp = real + imag |
| 333 | dacomp = da.from_array(comp, 3) |
| 334 | |
| 335 | assert_eq(da.angle(dacomp), np.angle(comp)) |
| 336 | assert_eq(da.angle(dacomp, deg=True), np.angle(comp, deg=True)) |
| 337 | assert isinstance(da.angle(comp), np.ndarray) |
| 338 | assert_eq(da.angle(comp), np.angle(comp)) |
| 339 | |
| 340 | |
| 341 | def test_issignedinf(): |