Stephen Canon
af5393445b
Add note that integer utilities isn't stable yet.
2021-10-14 15:00:00 -04:00
Stephen Canon
43e1d4d049
Update README.md
...
Added link to `IntegerUtilities` module.
2021-10-14 14:58:28 -04:00
Stephen Canon
9c4bd83ca4
Update README.md
2021-10-14 14:55:27 -04:00
Stephen Canon
b37b64db2e
Update README.md
2021-10-14 14:53:57 -04:00
Stephen Canon
0acd49c55f
Take advantage of GFM footnotes in the README.
2021-10-14 14:53:35 -04:00
Stephen Canon
24d8f51bb3
Add tests for remainder(dividingBy: -1).
2021-10-14 10:39:39 -04:00
Stephen Canon
3eaa0b3b77
Additional documentation for division/shift with rounding
...
Also simplifies check logic for divide with rounding, which is a modest speedup for testing.
2021-10-13 16:44:52 -04:00
Stephen Canon
710ca088d5
Renamed shifted(right:) to shifted(rightBy:).
2021-10-13 11:08:09 -04:00
Stephen Canon
1b3e3f12ed
Merge pull request #207 from markuswntr/patch-1
...
Fix a minor typo in the comments of the sinh decomposition
2021-10-13 10:56:34 -04:00
Markus Winter
63df367680
Fix a typo in the comments of sinh expression
2021-10-13 11:47:45 +02:00
Stephen Canon
501f58252a
Added division with rounding operations.
2021-10-12 17:16:57 -04:00
Stephen Canon
9837c10f9e
Update README.md to refer to 1.0.0 instead of 0.1.0
2021-10-02 12:49:24 -04:00
Stephen Canon
dec7339db4
Renamed RoundingMode.trap to .requireExact
...
Also implemented some basic statistical tests for .stochastic and reorganized code a little bit. The statistical justification of the thresholds for these tests should be explained a bit more, and we should decide on a policy in general for statistical tests that may fail sporadically, but these shouldn't be very noisy for now.
2021-09-28 11:29:10 -04:00
Stephen Canon
cddd5e626d
Re-arrange some things.
2021-09-26 21:54:32 -04:00
Stephen Canon
92eb76200d
Cursory documentation for shifted(right:).
2021-09-26 21:43:02 -04:00
Stephen Canon
eeaf9e384a
More rounding mode documentation.
2021-09-26 21:24:30 -04:00
Stephen Canon
d78c067765
Some documentation work.
2021-09-26 17:05:12 -04:00
Stephen Canon
c124585c19
Skeleton of integer shift with rounding.
...
Fairly correct implementation of right-shift with rounding. Also fairly efficient, though I'm sure I'll find some cases where we're generating uncessary overflow checks upon further inspection. Nonetheless, a decent enough start.
2021-09-26 16:23:58 -04:00
Stephen Canon
caca93c5c6
Merge pull request #202 from RahulBhalley/patch-1
...
Removed number lines for easy clipboard copying.
2021-09-26 16:08:19 -04:00
ਰਾਹੁਲ ਭੇਲੇ
c3806f23ff
Removed number lines for easy clipboard copying.
2021-09-25 15:11:26 +05:30
Stephen Canon
bc17ae6a82
Merge pull request #201 from stephentyrone/integer-utils-readme
...
Resolve warnings in 5.5 build, add skeleton readme for integer utilities
2021-09-20 13:15:57 -04:00
Stephen Canon
e22ff866a4
Add GCD files to CMake build.
2021-09-20 12:35:22 -04:00
Stephen Canon
abb899865e
resolve warnings in 5.5 tools build, add skeleton readme for integer utilities
2021-09-20 09:53:38 -04:00
Stephen Canon
b6f4c44221
Merge pull request #200 from Saklad5/patch-1
...
Fix typo in AlgebraicField documentation
2021-09-20 09:13:52 -04:00
Jeremy Saklad
ae38370107
Fix typo in AlgebraicField documentation
...
“distributitve” should be spelled “distributive”.
2021-09-17 14:21:34 -05:00
Stephen Canon
9d84cefefa
Merge pull request #189 from NevinBR/patch-6
...
GCD function for BinaryInteger
2021-09-10 11:04:07 -04:00
NevinBR
f2cfa8d668
Fixed typo
2021-09-10 00:04:53 -04:00
NevinBR
bd68569533
Commented out ExpectFailure tests for gcd
2021-09-10 00:03:31 -04:00
NevinBR
85264c808c
Reworded doc comment for gcd
2021-09-09 23:05:45 -04:00
Stephen Canon
b505d3ca1d
Merge pull request #198 from stephentyrone/clarify-stability-differentiable
...
Clarify that differentaible API is not stable.
2021-08-31 16:29:32 -04:00
Stephen Canon
7738390f54
Merge pull request #196 from stephentyrone/excluded-filenames
...
Explicitly exclude CMakeLists.txt and README.md files from all targets.
2021-08-31 12:35:20 -04:00
Stephen Canon
5f28ad0e97
Explicitly exclude CMakeLists.txt and README.md files from all targets.
...
If/when we bump swift-tools-version to 5.3 or greater, swift-pm will start complaining about these, so let's explicitly exclude them now.
2021-08-31 12:31:58 -04:00
Stephen Canon
63edd6769c
Update README for 1.0.0.
2021-08-31 11:38:38 -04:00
NevinBR
8552becf91
Documented overflow behavior of gcd
2021-08-31 11:19:22 -04:00
NevinBR
89c4e42e48
Added tests for gcd overflow on Int.min
2021-08-31 11:10:40 -04:00
NevinBR
67af2fe0d9
Simplified gcd implementation
2021-08-30 17:32:03 -04:00
NevinBR
83c378f2f4
Update GCDTests.swift
2021-08-30 17:29:05 -04:00
NevinBR
b8f452189b
Made gcd a free function
2021-08-30 17:28:44 -04:00
Stephen Canon
0289df5635
Merge pull request #192 from apple/add-integer-utilities-dependency
...
Add missing IntegerUtilities dependency for Numerics module
2021-08-27 09:05:13 -04:00
Stephen Canon
b9415c9ad2
Add missing IntegerUtilities dependency for Numerics module
2021-08-27 09:01:35 -04:00
Stephen Canon
b68a81dbdd
Merge pull request #191 from apple/revert-187-remove-sub-libraries
...
Revert "Remove Real and Complex _libraries_; keep modules."
2021-08-27 08:48:57 -04:00
Stephen Canon
21ff6d38fd
Revert "Remove Real and Complex _libraries_; keep modules."
2021-08-27 08:45:25 -04:00
NevinBR
4fbcb11f03
Improved GCD documentation
2021-08-26 19:49:13 -04:00
Stephen Canon
e29479b3aa
Merge pull request #190 from stephentyrone/cmake-integer-utilities
...
CMake build support for the IntegerUtilities module.
2021-08-26 19:38:04 -04:00
Stephen Canon
996cf7f5b9
CMake build support for the IntegerUtilities module.
2021-08-26 15:18:40 -04:00
NevinBR
632919ce2a
Create GCDTests.swift
2021-08-26 14:56:04 -04:00
NevinBR
909a77c3d9
Create GCD.swift
...
Binary GCD algorithm
2021-08-26 14:51:05 -04:00
Stephen Canon
4a6730b024
Merge pull request #188 from stephentyrone/rotate
...
Setup IntegerUtilities module, implement bitwise rotates.
2021-08-26 08:57:24 -04:00
Stephen Canon
84474a3410
Initial setup of IntegerUtilities module.
...
Seeded with rotate(right:) and rotate(left:) on FixedWidthInteger. These implementations are basically sane, but need documentation written for users who are not already familiar with bitwise rotation.
2021-08-25 15:36:24 -04:00
Stephen Canon
97dfcff73b
Merge pull request #187 from apple/remove-sub-libraries
...
Remove Real and Complex _libraries_; keep modules.
2021-08-25 11:04:00 -04:00