A Swift library that uses the Accelerate framework to provide high-performance functions for matrix math, digital signal processing, and image manipulation.
Vector<Scalar>
type (#110).diagonal
/eye
/identity
& closure initializers to Matrix<Scalar>
(#111, #134).shape
property to Matrix<Scalar>
(#152).variance
function (#133).random
/randomNormal
functions for efficiently generating batches of random values (#154, #156).The plus +
operator is used by Swift for array concatenation. This caused some confusion with Surge's +
element-wise addition. For this version all element-wise operators are preceded by a dot: .+
.
This version also updates to Swift 4.0 and adds a few extra functions.
It took a while but it's finally here. This version support Swift 3.2 and Xcode 9.
Other changes include:
subscript
support to return specific row or columnpow
support applying to every elementThis release is the last version to support Swift 1.0. Surge 2.x releases will support Swift 2.0.