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