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
NevinBR
4fbcb11f03
Improved GCD documentation
2021-08-26 19:49:13 -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 Canon and Xiaodi 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 Canon and Xiaodi 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 Canon and Xiaodi 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 Canon and Xiaodi 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 Canon and Xiaodi 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
Stephen Canon
9f55a78685
Merge pull request #175 from stephentyrone/eighty-columns-wide-my-father-lies
...
80-column formatting for source doc comments
2021-03-03 20:01:35 -05:00
Steve (Numerics) Canon
5827f9a943
80-column formatting for source doc comments
...
Tidying, plus a few small edits. This commit should not include any code changes.
2021-03-03 14:01:09 -05:00
Stephen Canon
3cad9b69a0
Update README.md
...
Update version number in sample code.
2021-02-21 21:22:01 -05:00
Stephen Canon
6583ac70c3
Merge pull request #172 from stephentyrone/float16-availability
...
Adjust Float16 availability for Swift 5.4 toolchains.
0.1.0
2021-02-19 17:38:49 -05:00
Steve (Numerics) Canon
97852afaf5
Adjust Float16 availability for Swift 5.4 toolchains.
...
In older toolchains, Float16 is marked unavailable on all mac targets; starting with the 5.4 toolchain, it is available starting in macOS 11.0 when targeting Apple Silicon.
2021-02-19 15:53:15 -05:00
Steve (Numerics) Canon
105b59b8a4
Remove vestigal C complex shims.
...
These used to be used by some test appratus, but they are no longer
used and can be removed.
2021-02-19 15:16:30 -05:00
Steve (Numerics) Canon
0cf166da79
Remove zeroTangentVectorInitializer test, as the requirement has been removed from Swift main.
2021-02-19 15:11:21 -05:00
Stephen Canon
4a2cbc186b
Merge pull request #166 from NevinBR/patch-5
...
Cleaning up some comments
2020-11-15 12:22:56 -05:00
NevinBR
5a7eb37c19
Cleaned up some comments
2020-11-11 14:05:55 -05:00
Stephen Canon
198da2adf9
Merge pull request #165 from stephentyrone/complex-elfns-inlinable
...
Mark all complex elementary functions inlinable
2020-11-09 16:43:31 -05:00
Stephen Canon
26c51aca1b
Mark all complex elementary functions inlinable
...
This is kind of dubious, but necessary for performance reasons until we get dependable cross-module specialization. Also has a minor test fix for 32b platforms.
2020-11-09 16:41:45 -05:00
Stephen Canon
c5a3504143
Merge pull request #164 from compnerd/update
...
build: update file lists for `RealModule` and `_TestSupport`
2020-11-09 14:45:44 -05:00
Saleem Abdulrasool
00c6183670
build: update file lists for RealModule and _TestSupport
...
Add new files to the list that were missed in the CMakeLists.txt
updates.
2020-11-09 11:23:48 -08:00
Stephen Canon
ae364a28f0
Merge pull request #162 from apple/complex-elfns
...
Conform Complex to Elementary Functions
2020-11-09 11:39:18 -05:00
Stephen Canon
e042c13415
Merge pull request #150 from markuswntr/master
...
Refactor README.md and include Approximate Equality as part of the RealModule.
2020-11-09 11:28:25 -05:00
Stephen Canon
16837299c1
Added inverse trig and hyperbolics, some rough test coverage.
2020-11-09 11:25:08 -05:00
Stephen Canon
0c066bd268
Merge pull request #155 from stephentyrone/complex-log1p
...
Augmented arithmetic implementations of log and log(onePlus:) for enhanced accuracy close to the circle where the real part of the result vanishes.
2020-11-05 15:15:35 -05:00
Stephen Canon
2b4c6701f2
log and log(onePlus:) implementations for Complex
...
These significantly improve on the state of the art for arguments close to the circle where the result vanishes, producing good componentwise relative accuracy as well as relative accuracy in the complex norm.
Also drops the argument parser dependency, which is desirable to avoid possible circular dependencies in the future with algorithms.
2020-11-05 15:14:25 -05:00
Stephen Canon
874c767424
Merge pull request #159 from compnerd/autolink
...
build: enable building `Numerics` on Darwin with CMake
2020-10-14 12:05:59 -04:00
Saleem Abdulrasool
0ee972ff92
build: enable building Numerics on Darwin with CMake
...
The `-enable-force-autolink` flag is not supported on Darwin.
Fortunately, it is also unnecessary to work around the SR on Darwin.
Simply exclude the flag when targeting Darwin.
2020-10-12 14:01:56 -07:00
Stephen Canon
754cbd9e2e
Merge branch 'complex-elfns' of github.com:stephentyrone/swift-numerics into complex-elfns
2020-10-01 17:12:48 -04:00