Commit Graph
301 Commits
Author SHA1 Message Date
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 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
Stephen Canon 988f1e1cea Remove Real and Complex _libraries_; keep modules.
These are vestigial, and not needed to support swift-pm.
2021-08-25 10:52:07 -04:00
Stephen Canon 32c2b64370 Merge pull request #186 from apple/complex-readme
Update README.md
2021-08-20 09:29:44 -04:00
Stephen Canon ac7a9a9a92 Merge pull request #185 from stephentyrone/reciprocal-documentation
Further expand documentation of `reciprocal` with some example use.
2021-08-20 09:20:07 -04:00
Stephen Canon 3d6bff6cae Update README.md 2021-08-20 09:18:28 -04:00
Stephen CanonandXiaodi Wu 12148ffa66 Update Sources/RealModule/Real.swift
Co-authored-by: Xiaodi Wu <13952+xwu@users.noreply.github.com>
2021-08-20 09:06:44 -04:00
Stephen CanonandXiaodi Wu 3a5c73964b Update Sources/RealModule/Real.swift
Co-authored-by: Xiaodi Wu <13952+xwu@users.noreply.github.com>
2021-08-20 09:06:36 -04:00
Stephen CanonandXiaodi Wu 32f48e6b73 Update Sources/RealModule/Real.swift
Co-authored-by: Xiaodi Wu <13952+xwu@users.noreply.github.com>
2021-08-20 09:06:27 -04:00
Stephen CanonandXiaodi Wu 05440473eb Update Sources/ComplexModule/Arithmetic.swift
Co-authored-by: Xiaodi Wu <13952+xwu@users.noreply.github.com>
2021-08-20 09:06:10 -04:00
Stephen CanonandXiaodi Wu 342d38eb3b Update Sources/RealModule/AlgebraicField.swift
Co-authored-by: Xiaodi Wu <13952+xwu@users.noreply.github.com>
2021-08-20 09:05:56 -04:00
Stephen Canon ecc77886a1 Update Sources/ComplexModule/Arithmetic.swift 2021-08-19 21:20:58 -04:00
Stephen Canon 10e75aa392 Further expand documentation of reciprocal with some example use. 2021-08-19 20:47:36 -04:00
Stephen Canon d7e692e414 Merge pull request #182 from stephentyrone/more-documentation-for-1.0
Add some documentation for AlgebraicField ops, minor fix for Augmented.
2021-08-19 16:46:36 -04:00
Stephen Canon faf13772af Add some documentation for AlgebraicField ops, minor fix for Augmented. 2021-08-19 14:50:24 -04:00
Stephen Canon 17f5b59a07 Merge pull request #181 from stephentyrone/document-augmented-arithmetic
Document the Augmented enum in RealModule in advance of 1.0
2021-08-19 14:07:31 -04:00
Stephen Canon 702c6fc1d8 Document the Augmented enum in RealModule in advance of 1.0 2021-08-19 14:00:52 -04:00
Stephen Canon f50a1acf2d Merge pull request #178 from kylemacomber/remove-xcodesamplecode-plist
Remove .xcodesamplecode.plist, which prevents editing markdown from Xcode
2021-03-23 09:03:31 -04:00
Stephen Canon 2aa93ccf24 Merge pull request #179 from stephentyrone/remove-workflows
remove workflows, no longer needed.
2021-03-21 16:01:56 -04:00
Steve (Numerics) Canon 50161d39df remove workflows, no longer needed. 2021-03-21 16:01:23 -04:00
Kyle Macomber d34cff5a13 Remove .xcodesamplecode.plist, which prevents editing markdown from Xcode 2021-03-19 12:40:59 -07:00