Skip to content

Commit ffa550a

Browse files
committed
Add CFD tests
1 parent 8b0d211 commit ffa550a

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

dpnp/dpnp_iface_statistics.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -836,9 +836,10 @@ def cov(
836836
--------
837837
>>> import dpnp as np
838838
>>> x = np.array([[0, 2], [1, 1], [2, 0]]).T
839-
840-
Consider two variables, :math:`x_0` and :math:`x_1`, which correlate perfectly, but in opposite directions:
841-
839+
840+
Consider two variables, :math:`x_0` and :math:`x_1`, which correlate
841+
perfectly, but in opposite directions:
842+
842843
>>> x
843844
array([[0, 1, 2],
844845
[2, 1, 0]])

dpnp/tests/test_sycl_queue.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ def test_meshgrid(device):
463463
"cos", [-dpnp.pi / 2, -dpnp.pi / 4, 0.0, dpnp.pi / 4, dpnp.pi / 2]
464464
),
465465
pytest.param("cosh", [-5.0, -3.5, 0.0, 3.5, 5.0]),
466+
pytest.param("cov", [[0, 1, 2], [2, 1, 0]]),
466467
pytest.param("count_nonzero", [3, 0, 2, -1.2]),
467468
pytest.param("cumprod", [[1, 2, 3], [4, 5, 6]]),
468469
pytest.param("cumsum", [[1, 2, 3], [4, 5, 6]]),
@@ -729,6 +730,7 @@ def test_reduce_hypot(device):
729730
[[0.7, 0.8, 0.9], [1.0, 1.1, 1.2]],
730731
),
731732
pytest.param("correlate", [1, 2, 3], [4, 5, 6]),
733+
pytest.param("cov", [-2.1, -1, 4.3], [3, 1.1, 0.12]),
732734
pytest.param("cross", [1.0, 2.0, 3.0], [4.0, 5.0, 6.0]),
733735
pytest.param("digitize", [0.2, 6.4, 3.0], [0.0, 1.0, 2.5, 4.0]),
734736
pytest.param(

dpnp/tests/test_usm_type.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,7 @@ def test_norm(usm_type, ord, axis):
621621
"cos", [-dp.pi / 2, -dp.pi / 4, 0.0, dp.pi / 4, dp.pi / 2]
622622
),
623623
pytest.param("cosh", [-5.0, -3.5, 0.0, 3.5, 5.0]),
624+
pytest.param("cov", [[0, 1, 2], [2, 1, 0]]),
624625
pytest.param("count_nonzero", [0, 1, 7, 0]),
625626
pytest.param("cumlogsumexp", [1.0, 2.0, 4.0, 7.0]),
626627
pytest.param("cumprod", [[1, 2, 3], [4, 5, 6]]),
@@ -739,6 +740,7 @@ def test_1in_1out(func, data, usm_type):
739740
pytest.param("correlate", [1, 2, 3], [0, 1, 0.5]),
740741
# dpnp.dot has 3 different implementations based on input arrays dtype
741742
# checking all of them
743+
pytest.param("cov", [-2.1, -1, 4.3], [3, 1.1, 0.12]),
742744
pytest.param("dot", [3.0, 4.0, 5.0], [1.0, 2.0, 3.0]),
743745
pytest.param("dot", [3, 4, 5], [1, 2, 3]),
744746
pytest.param("dot", [3 + 2j, 4 + 1j, 5], [1, 2 + 3j, 3]),

0 commit comments

Comments
 (0)