-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
BUG: Fixes for building on Cygwin. #16246
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
Changes from 18 commits
46409ed
058cfa1
5c9f8a0
973b14b
acea157
34184fd
9c07574
df5b0c6
8b11932
fc56c79
10dae6e
debf846
b530f99
c11ee6f
1a2292f
20df822
52b9ed5
6a16452
92eaff3
d9c21bb
eca1e27
6ffbcb2
5adbca1
51fbbb8
f47f315
5cb8a0f
ced41b5
d706499
160fd73
cc9e8df
e18c4b6
4abffbd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -2785,6 +2785,9 @@ def test_precisions_consistent(self): | |||||
assert_almost_equal(fcf, fcd, decimal=6, err_msg='fch-fcd %s' % f) | ||||||
assert_almost_equal(fcl, fcd, decimal=15, err_msg='fch-fcl %s' % f) | ||||||
|
||||||
@pytest.mark.xfail(sys.platform == 'cygwin', | ||||||
reason='0.7071j != 0.7071j, apparently', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
strict=True) | ||||||
def test_branch_cuts(self): | ||||||
# check branch cuts and continuity on them | ||||||
_check_branch_cut(np.log, -0.5, 1j, 1, -1, True) | ||||||
|
@@ -2810,6 +2813,9 @@ def test_branch_cuts(self): | |||||
_check_branch_cut(np.arccosh, [0-2j, 2j, 2], [1, 1, 1j], 1, 1) | ||||||
_check_branch_cut(np.arctanh, [0-2j, 2j, 0], [1, 1, 1j], 1, 1) | ||||||
|
||||||
@pytest.mark.xfail(sys.platform == 'cygwin', | ||||||
reason='square root faces small loss of precision', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
strict=True) | ||||||
def test_branch_cuts_complex64(self): | ||||||
# check branch cuts and continuity on them | ||||||
_check_branch_cut(np.log, -0.5, 1j, 1, -1, True, np.complex64) | ||||||
|
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -1,6 +1,7 @@ | ||||
#include "Python.h" | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nothing in this file should require There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some of the declarations depend on types guarded by visibility macros set up in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
NumPy compiles without this change on latest Cygwin. |
||||
#include <stdint.h> | ||||
#include "numpy/random/distributions.h" | ||||
#include "logfactorial.h" | ||||
#include <stdint.h> | ||||
|
||||
/* | ||||
* Generate a sample from the hypergeometric distribution. | ||||
|
Uh oh!
There was an error while loading. Please reload this page.