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
Stephen Canon
209a794eb6
Initial implementation of log(onePlus:)
2020-10-01 16:39:11 -04:00
Stephen Canon
af19aec6ff
WIP
2020-10-01 16:39:11 -04:00
Stephen Canon
ed8fc21f1e
Add TODO for algorithmic improvements on tanh.
2020-10-01 16:39:11 -04:00
Stephen Canon
1cbb94ac71
First pass over hyperbolics and trig functions for Complex.
2020-10-01 16:39:11 -04:00
Stephen Canon
0b2dc469ed
Moved sampling-based tests out of unit and into an exectuable target.
2020-10-01 16:39:11 -04:00
Stephen Canon
efbe11a734
Fix typo expMinusOne/exp in near-overflow check.
2020-10-01 16:39:11 -04:00
Stephen Canon
4798b68203
Refactor test support to remove XCTest dependency.
2020-10-01 16:39:11 -04:00
Stephen Canon
5f408c0121
Cleanup.
2020-10-01 16:39:11 -04:00
Stephen Canon
09beddce47
WIP on complex elementary functions.
...
Rebased on master, then cleaned up exp and expm1. New algorithm for expm1 that gives good componentwise accuracy as well as normwise. I _think_ that this is fundamentally new; I can't recall seeing it anywhere before, though it's simple enough that I expect someone has thought of it before.
Also beefed up testing for exp and expm1. Left sketches of log/pow/sqrt/root in place, though I'm still working on filling out the testing for those.
2020-10-01 16:39:11 -04:00
Stephen Canon
2179fa1f82
Rename some tests to reflect what they actually do.
2020-10-01 16:39:11 -04:00
Stephen Canon
6d9de5d4ce
Updates to resync with changes on master.
...
- Renamed scaled/unscaled to multiplied/divided
- Adopted new Real module name
- Adopted expMinusOne, log(onePlus:) names
2020-10-01 16:39:11 -04:00
Steve (Numerics) Canon
e20b32d40f
Initial pass over implementing ElementaryFunctions for Complex.
2020-10-01 16:39:11 -04:00
Stephen Canon
21282166fa
Merge pull request #152 from stephentyrone/complex-trig
...
First pass over hyperbolics and trig functions for Complex.
2020-09-30 11:53:11 -04:00
Stephen Canon
6b24333510
Merge pull request #157 from stephentyrone/float16-availability-redux
...
Swap availability for #if check on Float16.
0.0.8
2020-09-18 16:59:35 -04:00
Stephen Canon
e07b39453b
Swap availability for #if check on Float16.
2020-09-18 16:01:51 -04:00
Stephen Canon
0f02c65854
Initial implementation of log(onePlus:)
2020-09-16 14:24:54 -04:00
Stephen Canon
a76404b263
WIP
2020-09-15 14:33:21 -04:00
Markus Winter
298ea7d3f5
Merge pull request #6 from 8bitmp3/patch-1
...
Update Swift Numerics README to address feedback
2020-09-07 16:09:08 +02:00
8bitmp3
8e580358d4
Update Swift Numerics README to address feedback
2020-09-07 14:01:43 +01:00
Markus Winter
4b4dd42ad4
Merge pull request #5 from 8bitmp3/patch-1
...
Update Swift Numerics README to address feedback
2020-09-05 20:09:40 +02:00
8bitmp3
7be984de7e
Update Swift Numerics README to address feedback
2020-09-05 18:16:28 +01:00
Markus Winter
6f96e6522d
Merge pull request #4 from 8bitmp3/patch-2
...
Revert "new uses are discovered" in Swift Numerics README
2020-09-03 20:31:50 +02:00
8bitmp3
e95124c81f
Revert "new uses are discovered" in Swift Numerics README
2020-09-03 18:21:31 +01:00
Markus Winter
2aeb3f8475
Merge pull request #3 from 8bitmp3/patch-1
...
Unwrap text, update Swift Numerics README
2020-09-03 19:14:54 +02:00
8bitmp3
ecfc4db4e9
Unwrap text, fix two minor syntactical errors in Swift Numerics README
2020-09-03 17:50:41 +01:00
Markus Winter
f3e99a9c70
Syncs version number with latest release
2020-09-03 15:04:47 +02:00
Markus Winter
6d8d614bf2
Incorporate feedback in PR
2020-09-03 15:04:24 +02:00
Stephen Canon
beb85076a5
Add TODO for algorithmic improvements on tanh.
2020-09-02 16:20:34 -04:00
Stephen Canon
6d396dfb44
First pass over hyperbolics and trig functions for Complex.
2020-09-02 16:02:41 -04:00
Stephen Canon
f49d1af281
Moved sampling-based tests out of unit and into an exectuable target.
2020-09-02 09:09:39 -04:00
Markus Winter
82b04be57e
Merge pull request #1 from 8bitmp3/patch-1
...
Enhance Swift Numerics README.md (technical writing perspective)
2020-09-02 15:06:58 +02:00
Stephen Canon
5eb865d25d
Fix typo expMinusOne/exp in near-overflow check.
2020-09-02 08:49:46 -04:00
Stephen Canon
81e76b1a9a
Refactor test support to remove XCTest dependency.
2020-09-02 08:49:19 -04:00
8bitmp3
dcad77ec73
Enhance Swift Numerics README.md (technical writing perspective)
2020-09-02 12:58:12 +01:00
Markus Winter
6ae59362f8
Update README to reflect inclusion of Approximate Equality
2020-09-02 09:53:06 +02:00
Stephen Canon
3d7462a834
Merge pull request #148 from stephentyrone/remove-f16-muladd
...
Remove muladdf16 for now.
0.0.7
2020-08-24 20:32:59 -04:00
Stephen Canon
0f8ef268d0
Remove muladdf16 for now.
2020-08-24 20:31:40 -04:00