()
| 341 | |
| 342 | |
| 343 | def test_angle(): |
| 344 | real = np.random.randint(1, 100, size=(20, 20)) |
| 345 | imag = np.random.randint(1, 100, size=(20, 20)) * 1j |
| 346 | comp = real + imag |
| 347 | dacomp = da.from_array(comp, 3) |
| 348 | |
| 349 | assert_eq(da.angle(dacomp), np.angle(comp)) |
| 350 | assert_eq(da.angle(dacomp, deg=True), np.angle(comp, deg=True)) |
| 351 | assert isinstance(da.angle(comp), np.ndarray) |
| 352 | assert_eq(da.angle(comp), np.angle(comp)) |
| 353 | |
| 354 | |
| 355 | def test_issignedinf(): |