asm: add generation of DaxpyUnitary and DaxpyUnitaryTo

This commit is contained in:
Vladimir Chalupecky
2015-12-18 17:26:59 +09:00
parent 47575a787c
commit daa0b08d52
10 changed files with 352 additions and 41 deletions

View File

@@ -6,6 +6,12 @@
package asm
func CaxpyUnitary(alpha complex64, x, y []complex64) {
for i, v := range x {
y[i] += alpha * v
}
}
func CaxpyUnitaryTo(dst []complex64, alpha complex64, x, y []complex64) {
for i, v := range x {
dst[i] = alpha*v + y[i]