Releases: alejandro-isaza/Upsurge
Swift 4.0
Swift 3.2, Xcode 9
Update for Xcode 9.
Swift Package Manager
Swift 3.0
0.8.0 Update playground
Span is public
We changed the way we expose a TensorType
extent. It is now called its span and is consistent across all types. Also updated for Swift 2.2 (Xcode 7.3).
Prevent incorrect use of pointers
The problem with having a pointer
property is that it's too easy to get the pointer and have the object be destroyed immediately, before getting a chance of even using the pointer. Therefore switched to the Swift's array way of doing it: withUsafePointer
methods. Also added pointer utility methods to avoid having nested withUsafePointer
calls.
Single-precision ops
Reconsidered the decision to support only Double
, now all containers, functions and operators support Float
as well. This means that RealArray
is no more. You need to choose either ValueArray<Double>
or ValueArray<Float>
.
Tensors
- There is now a Tensor class with slice operations
- FFT improvements
ValueArray
andMatrix
are nowEquatable
Support opperations on slices
This is a major overhaul of the array classes and interfaces. Most of the changes are related to being able to operate on slices. For instance 2 * a[0...2] + b[4...6]
. There are also major updates to the playground examples and the Readme file.