Stephen Canon
Stephen Canon
Implements adding,subtracting,negating,multiplyingWithSaturation on FixedWidthInteger, which seems like a plausible MVP for saturating arithmetic. Still need to write tests. No attempt to make these map to HW instructions yet. I gave...
Implement IEEE 754 Decimal128 (and possibly Decimal64 as well, though it's less important). This has a dependency on [fixed-width integer types](https://github.com/apple/swift-numerics/issues/4) because we want to be able to leverage UInt128...
Add a ShapedArray type and/or protocol suitable for use as the common currency type for vectors / linear algebra / image processing / tensors, like ndarray is for numpy. This...
This commit adds the following implementation hooks to the AlgebraicField protocol: static func _relaxedAdd(_:Self, _:Self) -> Self static func _relaxedMul(_:Self, _:Self) -> Self These are equivalent to + and *,...
Provide a family of `[U]Int128`, `256`, ... up to a reasonable threshold where flexibly-sized bignum becomes competitive (most likely 1024 bits). This should be done as generically as possible so...
A new module providing additional functionality on the standard library integer types (and more generally, any fixed-width integer type), including: - [x] - bitwise rotation - [ ] - full...
Add sin(πx), cos(πx), tan(πx).
IEEE 754 recommends (but does not require) a `compound` function, which is in the process of being standardized for C and C++; we should expose it in swift-numerics. The simplest,...
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."...
At present, the implementations of these operations convert their `Int` arguments to the floating-point type. This works fine for small integers (the common case), but isn't quite right for large...