Commit Graph
336 Commits
Author SHA1 Message Date
Stephen Canon 80d758ac5b Merge pull request #211 from stephentyrone/further-doublewidth-cleanup
Clean out some unnecessary stuff in DoubleWidth.
2021-11-03 09:37:41 -04:00
Stephen Canon 48099a09b4 Clean out some unnecessary stuff in DoubleWidth. 2021-11-03 09:33:32 -04:00
Stephen Canon 9e50430d23 Merge pull request #210 from stephentyrone/double-width-comments
Expand some comments on DoubleWidth basic properties and inits.
2021-11-03 09:08:24 -04:00
Stephen Canon cdb092bb31 Expand some comments on DoubleWidth basic properties and inits. 2021-11-03 08:46:34 -04:00
Stephen Canon 84044a8382 Merge pull request #209 from stephentyrone/unnecessary-endian
Remove big/little endiant distinction in representation of DoubleWidth
2021-11-03 08:38:28 -04:00
Stephen Canon db932c9871 Remove big/little endiant distinction in representation of DoubleWidth
This doesn't really add anything that we need; we might as well simply pick one.
2021-11-03 08:22:25 -04:00
Stephen Canon b501ca406c Merge pull request #197 from benrimmington/experimental
Add the `DoubleWidth` type
2021-10-27 15:48:29 -04:00
be0534a3e3 Add the DoubleWidth type
Co-authored-by: Nate Cook <natecook@apple.com>
Co-authored-by: Max Moiseev <moiseev@users.noreply.github.com>
Co-authored-by: Xiaodi Wu <13952+xwu@users.noreply.github.com>
2021-10-27 18:14:10 +01:00
Stephen Canon c74d817e8d Merge pull request #208 from markuswntr/two-sum
Add `Augmented.sum(_:_:)` aka "twoSum"
2021-10-27 12:27:16 -04:00
Markus Winter 05366d7f4a Revert names of temporary variables 2021-10-27 08:48:54 +02:00
Markus WinterandXiaodi Wu 6ec74ec80e Fix source code formatting
Co-authored-by: Xiaodi Wu <13952+xwu@users.noreply.github.com>
2021-10-27 08:28:25 +02:00
Markus Winter d4a440fd05 Update range of random values in test cases 2021-10-26 16:27:04 +02:00
Markus Winter f6e5563514 Fix argument ordering in twoSum and add test cases 2021-10-26 15:57:30 +02:00
Markus Winter 8b05d1c8e0 Update comments on the difference of sum(_:_:) and sum(large:small:) 2021-10-21 10:55:24 +02:00
Markus Winter 1e724835bd Add twoSum to augmented arithmetic 2021-10-20 23:47:27 +02:00
Stephen Canon f956c239e1 Merge pull request #203 from stephentyrone/rounding
Right shift and division with rounding.
2021-10-15 11:40:53 -04:00
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