c64

package
v0.0.0-...-dfba71b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2020 License: BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package c64 provides complex64 vector primitives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AxpyInc

func AxpyInc(alpha complex64, x, y []complex64, n, incX, incY, ix, iy uintptr)

AxpyInc is

for i := 0; i < int(n); i++ {
	y[iy] += alpha * x[ix]
	ix += incX
	iy += incY
}

func AxpyIncTo

func AxpyIncTo(dst []complex64, incDst, idst uintptr, alpha complex64, x, y []complex64, n, incX, incY, ix, iy uintptr)

AxpyIncTo is

for i := 0; i < int(n); i++ {
	dst[idst] = alpha*x[ix] + y[iy]
	ix += incX
	iy += incY
	idst += incDst
}

func AxpyUnitary

func AxpyUnitary(alpha complex64, x, y []complex64)

AxpyUnitary is

for i, v := range x {
	y[i] += alpha * v
}

func AxpyUnitaryTo

func AxpyUnitaryTo(dst []complex64, alpha complex64, x, y []complex64)

AxpyUnitaryTo is

for i, v := range x {
	dst[i] = alpha*v + y[i]
}

func DotcInc

func DotcInc(x, y []complex64, n, incX, incY, ix, iy uintptr) (sum complex64)

DotcInc is

for i := 0; i < int(n); i++ {
	sum += y[iy] * conj(x[ix])
	ix += incX
	iy += incY
}
return sum

func DotcUnitary

func DotcUnitary(x, y []complex64) (sum complex64)

DotcUnitary is

for i, v := range x {
	sum += y[i] * conj(v)
}
return sum

func DotuInc

func DotuInc(x, y []complex64, n, incX, incY, ix, iy uintptr) (sum complex64)

DotuInc is

for i := 0; i < int(n); i++ {
	sum += y[iy] * x[ix]
	ix += incX
	iy += incY
}
return sum

func DotuUnitary

func DotuUnitary(x, y []complex64) (sum complex64)

DotuUnitary is

for i, v := range x {
	sum += y[i] * v
}
return sum

func ScalInc

func ScalInc(alpha complex64, x []complex64, n, incX uintptr)

ScalInc is

var ix uintptr
for i := 0; i < int(n); i++ {
	x[ix] *= alpha
	ix += incX
}

func ScalIncTo

func ScalIncTo(dst []complex64, incDst uintptr, alpha complex64, x []complex64, n, incX uintptr)

ScalIncTo is

var idst, ix uintptr
for i := 0; i < int(n); i++ {
	dst[idst] = alpha * x[ix]
	ix += incX
	idst += incDst
}

func ScalUnitary

func ScalUnitary(alpha complex64, x []complex64)

ScalUnitary is

for i := range x {
	x[i] *= alpha
}

func ScalUnitaryTo

func ScalUnitaryTo(dst []complex64, alpha complex64, x []complex64)

ScalUnitaryTo is

for i, v := range x {
	dst[i] = alpha * v
}

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL