gonum: gonum.org/v1/gonum/internal/asm/c128 Index | Files

package c128

import "gonum.org/v1/gonum/internal/asm/c128"

Package c128 provides complex128 vector primitives.

Index

Package Files

doc.go scal.go stubs_amd64.go

func AxpyInc Uses

func AxpyInc(alpha complex128, x, y []complex128, 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 Uses

func AxpyIncTo(dst []complex128, incDst, idst uintptr, alpha complex128, x, y []complex128, 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 Uses

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

AxpyUnitary is

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

func AxpyUnitaryTo Uses

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

AxpyUnitaryTo is

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

func DotcInc Uses

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

DotcInc is

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

func DotcUnitary Uses

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

DotcUnitary is

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

func DotuInc Uses

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

DotuInc is

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

func DotuUnitary Uses

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

DotuUnitary is

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

func DscalInc Uses

func DscalInc(alpha float64, x []complex128, n, inc uintptr)

DscalInc is

var ix uintptr
for i := 0; i < int(n); i++ {
	x[ix] = complex(real(x[ix])*alpha, imag(x[ix])*alpha)
	ix += inc
}

func DscalUnitary Uses

func DscalUnitary(alpha float64, x []complex128)

DscalUnitary is

for i, v := range x {
	x[i] = complex(real(v)*alpha, imag(v)*alpha)
}

func ScalInc Uses

func ScalInc(alpha complex128, x []complex128, n, inc uintptr)

ScalInc is

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

func ScalIncTo Uses

func ScalIncTo(dst []complex128, incDst uintptr, alpha complex128, x []complex128, 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 Uses

func ScalUnitary(alpha complex128, x []complex128)

ScalUnitary is

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

func ScalUnitaryTo Uses

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

ScalUnitaryTo is

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

Package c128 is imported by 1 packages. Updated 2019-04-02. Refresh now. Tools for package owners.