8000 ENH: add dtype option to numpy.lib.function_base.cov and corrcoef by lschwetlick · Pull Request #17456 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH: add dtype option to numpy.lib.function_base.cov and corrcoef #17456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Oct 9, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix Typo
  • Loading branch information
lschwetlick committed Oct 5, 2020
commit 6c00943f20c243a142a97849d348e9fe22736cbf
2 changes: 1 addition & 1 deletion numpy/lib/tests/test_function_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2024,7 +2024,7 @@ def test_extreme(self):
assert_(np.all(np.abs(c) <= 1.0))

@pytest.mark.parametrize("test_type", [np.half, np.single, np.double, np.longdouble])
def test_cov_dtype(self, test_type):
def test_corrcoef_dtype(self, test_type):
cast_A = self.A.astype(test_type)
res = corrcoef(cast_A, dtype=test_type)
assert test_type == res.dtype
Expand Down
0