Surge
Surge copied to clipboard
Broadcasting
When using numpy dividing an matrix by a vector is possible via broadcasting.
Any opinions on implementing broadcasting in Surge? Some thing similar to what numpy does.
https://docs.scipy.org/doc/numpy/user/basics.broadcasting.html
Not entirely an answer - but side note - with latest tensorflow - you can import Python + numpy with swift for tensorflow / it's not going to help for ios though.
// Import Python modules
let matplotlib = Python.import("matplotlib")
let np = Python.import("numpy")
https://github.com/tensorflow/swift https://github.com/tensorflow/swift-models/blob/stable/Autoencoder/Autoencoder.swift