-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split
SupportsRealImag
into SupportsRealImagProperties
and ``…
…SupportsRealImagAsMethod`` Now ``sympy.core.numbers`` primitives are adequately supported (excepting general false positives; see #5). Fixes #4.
- Loading branch information
Showing
14 changed files
with
388 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
%timeit isinstance(builtins.int(1), SupportsLotsOfNumberStuff) | ||
132 µs ± 1.15 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) | ||
135 µs ± 1.02 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) | ||
%timeit isinstance(fractions.Fraction(2), SupportsLotsOfNumberStuff) | ||
139 µs ± 2.01 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) | ||
146 µs ± 14.4 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) | ||
%timeit isinstance(builtins.float(3.0), SupportsLotsOfNumberStuff) | ||
131 µs ± 1.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) | ||
134 µs ± 1.84 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.