Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbd7fcee

Browse files
committed
Merge pull request#5374 from lebigot/patch-1
DOC: Fixed incorrect assert_array_almost_equal_nulp documentation
2 parents50d8af8 +3b6217f commitbd7fcee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎numpy/testing/utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ def assert_array_almost_equal_nulp(x, y, nulp=1):
13311331
-----
13321332
An assertion is raised if the following condition is not met::
13331333
1334-
abs(x - y) <= nulps * spacing(max(abs(x), abs(y)))
1334+
abs(x - y) <= nulps * spacing(maximum(abs(x), abs(y)))
13351335
13361336
Examples
13371337
--------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp