swift-numerics
swift-numerics copied to clipboard
Advanced mathematical types and functions for Swift
#111 added derivatives for some `Complex` APIs but the implementation did not consider `.infinity`, `.nan`, overflow and underflow. The following comments made by Steve should be addressed at some point:...
Write documentation for Approximate Equality and link document to README.md See: > We should definitely link to detail on ApproximateEquality, but we should link to a markdown document, rather than...
For example, in binary32: x = 1.09590280055999755859375 y = 1.230000019073486328125 The real part of e^{x + iy} - 1, computed in high precision with Sollya and rounded to binary32, is...
I just took a look at this project, and have some suggestions for slight tweaks. - `magnitude` should return `RealType.magnitude` instead of `RealType`. - `IntegerLiteralType` should alias to `RealType`’s version....
I'd like to make this more precise. If I wasn't concerned about jargon, I would say "the canonical representative of the equivalence class of quaternions representing the same 3d transformation."...
Since the Numerics modules cover complex numbers and operations, and you mentioned here (#6) that ShapedArrays are within the scope of the project, would quaternion math and possibly other algebras...
The natural place to write many generic algorithms is the protocol composition `AlgebraicField & ElementaryFunctions`, as it provides all the basic arithmetic operations including negation and division, as well as...
`ElementaryFunctions` was added to apple/swift with [conformances for `SIMD` types](https://github.com/stephentyrone/swift/blob/8708c7b5819e45e1f44fafd4e0ad02affb3535ad/stdlib/public/core/MathFunctions.swift.gyb#L128-L172). It seems those conformances were dropped when `ElementaryFunctions` was moved to apple/swift-numerics. Is it reasonable to re-add `SIMD{n}: ElementaryFunctions` conformances...
Hi, my framework uses the Numerics package. We developed a model using the SwiftRT API and a version using TensorFlow. On the Mac we get the exact same results. The...