Stephen Canon
3403d50630
Merge branch 'main' into enable-macos-github
2025-11-13 16:09:08 -05:00
Stephen Canon
167fe9b22a
Merge pull request #332 from incertum/chore/workflow-permissions
...
chore: restrict GitHub workflow permissions - future-proof
2025-10-27 17:08:09 -04:00
Melissa Kilby
50552bf86b
chore: restrict GitHub workflow permissions - future-proof
...
Signed-off-by: Melissa Kilby <mkilby@apple.com >
2025-10-17 16:12:07 -07:00
Stephen Canon
18274b1caa
Merge pull request #330 from ebariaux/main
...
Support Embedded Swift
2025-09-25 11:15:42 -04:00
Eric Bariaux
894008997c
Ensure compatibility with Swift versions below 6
2025-09-25 12:41:14 +02:00
Eric Bariaux
d46e20b4c5
String(reflecting:) not available in Embedded mode.
...
And Real does not conform to CustomDebugStringConvertible, so can't access debugDescription property directly on x and y
2025-09-18 07:21:15 +02:00
Eric Bariaux
6a7cf593bf
Codable not available right-now in Embedded mode
2025-09-18 07:20:19 +02:00
Stephen Canon
be0d7c65d1
Merge pull request #325 from stephentyrone/enable-wasm-testing
...
Enable workflows testing for wasm.
2025-08-14 12:57:32 -04:00
Stephen Canon
5bfe9e16ce
Remove relaxed add/mul for Float16 on wasm, as they cannot be defined.
2025-08-14 09:45:04 -04:00
Stephen Canon
46619b49ec
Attempt to turn on workflows testing for wasm.
2025-08-14 09:40:35 -04:00
Stephen Canon
231815ea4b
Merge pull request #324 from stephentyrone/disable-windows-5.9
...
Disable Swift 5.9 testing on Windows for now
2025-08-14 09:36:21 -04:00
Stephen Canon
e74905c6d5
Disable Swift 5.9 testing on Windows for now
...
That docker image seems to be broken, so it's all false positives.
2025-08-14 09:08:40 -04:00
Stephen Canon
a50d9575fe
Merge pull request #265 from stephentyrone/docc-stuff
...
Documentation overhaul, including broad .docc adoption and organization.
2025-08-13 23:02:13 -04:00
Stephen Canon
1e94d23860
Cleanup further doc comment typos.
2025-08-13 14:37:51 -04:00
Stephen Canon
b3fe4357f8
Fix typo.
2025-08-13 13:50:49 -04:00
Stephen Canon
aa901641d1
Further docc improvements for RealModule.
...
This commit _also_ relaxes the constraint on Augmented algorithms from Real to FloatingPoint. It's worth calling out that fastTwoSum does not work with decimal floating-point types, so the unordered `Augemented.sum(_:_:)` now has a radix check and calls into the ordered twoSum function instead for Decimal. This makes more sense that a `BinaryFloatingPoint` constraint, as otherwise generic code written against Real or FloatingPoint would have to do the check at every call site.
2025-08-13 12:38:56 -04:00
Stephen Canon
2c19b7b8cd
Last few review notes on complex.
2025-08-12 15:13:07 -04:00
Stephen Canon
221387985a
Further review edits from Nate.
2025-08-12 15:04:11 -04:00
Stephen Canon
8b2fd7bbde
Provide transliteration of Чебышёв.
2025-08-12 14:52:42 -04:00
Stephen Canon
b43c10c1e3
Merge branch 'main' into docc-stuff
2025-08-12 13:23:02 -04:00
Stephen Canon
61a8b91b3e
Some formatting cleanup around code blocks.
2025-08-12 13:20:29 -04:00
Stephen Canon
8c4747f116
Merge pull request #321 from stephentyrone/remove-2sum-assert
...
Remove precondition assert from Augmented.sum(large:small:)
2025-08-11 19:34:53 -04:00
Stephen Canon
c3757dc266
Fix typo. (Thanks, Guillaume)
2025-08-11 19:33:27 -04:00
Stephen Canon
d86286fc8b
Remove precondition assert from Augmented.sum(large:small:)
...
This is potentially useful to identify some bugs, but there are also algorithms (notably Kahan summation) that can be written in terms of fast2sum but would fail this check. Rework documentation to account for the change.
2025-08-11 18:14:41 -04:00
Stephen Canon
9c548804c8
Massage docc files to make the Documentation check happier
2025-08-11 18:11:44 -04:00
Stephen Canon
acbf4257ca
Remove precondition assert from Augmented.sum(large:small:)
...
This is potentially useful to identify some bugs, but there are also algorithms (notably Kahan summation) that can be written in terms of fast2sum but would fail this check. Rework documentation to account for the change.
2025-08-11 18:09:22 -04:00
Stephen Canon
6ff93f255e
Merge pull request #319 from lamtrinhdev/Fix_Typo_Issue
...
Correct typo issue at ApproximateEquality.swift
2025-08-09 20:18:34 -04:00
Stephen Canon
af0352e8b1
Some additional organization for Complex docc.
2025-08-09 14:29:05 -04:00
LamTrinh.Dev
e79692fab1
Correct typo issue from occured to occurred at ApproximateEquality.swift
2025-08-10 01:15:04 +07:00
Stephen Canon
c1e6972eeb
Merge pull request #315 from stephentyrone/algebraic-field-magnitude
...
Constrain AlgebraicField to required Magnitude:AlgebraicField
2025-08-08 17:17:28 -04:00
Stephen Canon
30074a3846
Enable macos checks via github workflows.
2025-08-08 13:55:13 -04:00
Stephen Canon
da6c765795
Constrain AlgebraicField to required Magnitude:AlgebraicField
...
This is formally a source-breaking change. However it is expected to not be source-breaking in practice, because any conforming type either has a real magnitude (in the case of real or complex types), which would necessarily have to support all the AF operations to implement the type, or is perhaps a finite field with a bogus stand-in Magnitude.
2025-08-08 13:45:33 -04:00
Stephen Canon
2361b4959b
Add overview for RealModule documentation.
2025-08-08 13:43:30 -04:00
Stephen Canon
264b17140b
Merge pull request #314 from stephentyrone/relax-f16-x86
...
Restore relaxed mul/add bindings for Float16 on x86
2025-08-08 10:07:29 -04:00
Stephen Canon
5cc83cc00a
WIP
2025-08-08 09:56:01 -04:00
Stephen Canon
5b34639450
Further documentation work for Complex.
2025-08-08 09:55:59 -04:00
Stephen Canon
450691764d
typo.
2025-08-08 09:55:56 -04:00
Stephen Canon
95e9441f8c
Changes from review feedback.
2025-08-08 09:55:54 -04:00
Stephen Canon
d2f6811b87
More docc changes.
2025-08-08 09:55:47 -04:00
Stephen Canon
129e496ef1
Further docc work.
2025-08-08 09:55:46 -04:00
Stephen Canon
5d8425644a
Initial work on docc setup.
2025-08-08 09:55:42 -04:00
Stephen Canon
cd967fa90f
Restore relaxed mul/add bindings for Float16 on x86
...
The ABI is stable, so these operations can be turned on.
2025-08-08 09:52:30 -04:00
Stephen Canon
6356eb395b
Merge pull request #307 from j-hui/add-extern-c
...
Add extern "C" to shim header file
2025-05-28 15:27:45 -04:00
John Hui
1be6eb5b47
Add extern "C" to shim header file
...
Adding this allows this package to be used with C++ interop enabled.
Otherwise, building a package that depends on this leads to linker
errors
rdar://113756245
2025-05-22 18:09:11 -07:00
Stephen Canon
2b458e8aeb
Merge pull request #305 from stephentyrone/remove-stochastic-rounding
...
Remove stochastic rounding mode
2025-04-10 11:51:13 -04:00
Stephen Canon
31fe14d084
Remove stochastic rounding mode
...
It's a useful operation, but it deserves its own API to allow the use of a custom random source.
Also, the existing API blocks some constant-folding operations because the call to the system random source is an opaque optimization barrier, so removing it allows us to produce better codegen for the other rounding modes.
We're also bumping required Swift version to 5.9, and removing the executable test targets for log/log1p, as they're really only useful for development of those algorithms.
2025-04-10 10:39:51 -04:00
Stephen Canon
c327d04b01
Merge pull request #304 from stephentyrone/language-cleanup
...
s/sanity check/basic check/
2025-03-11 11:41:53 -04:00
Stephen Canon
9b36b1ce46
s/sanity check/basic check/
2025-03-11 10:08:58 -04:00
Mishal Shah
7888cf22cc
Merge pull request #301 from apple/github-actions-support
...
[CI] Add support for GitHub Actions
2025-03-10 17:07:58 -07:00
Mishal Shah
1d23717b47
Disable license and format checks
2025-03-09 18:01:10 -07:00