Documentation ¶
Overview ¶
Package c64 provides complex64 vector primitives.
Index ¶
- func Add(dst, s []complex64)
- func AddConst(alpha complex64, x []complex64)
- func AxpyInc(alpha complex64, x, y []complex64, n, incX, incY, ix, iy uintptr)
- func AxpyIncTo(dst []complex64, incDst, idst uintptr, alpha complex64, x, y []complex64, ...)
- func AxpyUnitary(alpha complex64, x, y []complex64)
- func AxpyUnitaryTo(dst []complex64, alpha complex64, x, y []complex64)
- func CumProd(dst, s []complex64) []complex64
- func CumSum(dst, s []complex64) []complex64
- func Div(dst, s []complex64)
- func DivTo(dst, s, t []complex64) []complex64
- func DotUnitary(x, y []complex64) (sum complex64)
- func DotcInc(x, y []complex64, n, incX, incY, ix, iy uintptr) (sum complex64)
- func DotcUnitary(x, y []complex64) (sum complex64)
- func DotuInc(x, y []complex64, n, incX, incY, ix, iy uintptr) (sum complex64)
- func DotuUnitary(x, y []complex64) (sum complex64)
- func L2DistanceUnitary(x, y []complex64) (norm float32)
- func L2NormUnitary(x []complex64) (norm float32)
- func ScalInc(alpha complex64, x []complex64, n, incX uintptr)
- func ScalIncTo(dst []complex64, incDst uintptr, alpha complex64, x []complex64, ...)
- func ScalUnitary(alpha complex64, x []complex64)
- func ScalUnitaryTo(dst []complex64, alpha complex64, x []complex64)
- func SscalInc(alpha float32, x []complex64, n, inc uintptr)
- func SscalUnitary(alpha float32, x []complex64)
- func Sum(x []complex64) complex64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AxpyInc ¶
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 CumProd ¶
CumProd is
if len(s) == 0 { return dst } dst[0] = s[0] for i, v := range s[1:] { dst[i+1] = dst[i] * v } return dst
func CumSum ¶
CumSum is
if len(s) == 0 { return dst } dst[0] = s[0] for i, v := range s[1:] { dst[i+1] = dst[i] + v } return dst
func DotcInc ¶
DotcInc is
for i := 0; i < int(n); i++ { sum += y[iy] * conj(x[ix]) ix += incX iy += incY } return sum
func DotuInc ¶
DotuInc is
for i := 0; i < int(n); i++ { sum += y[iy] * x[ix] ix += incX iy += incY } return sum
func L2DistanceUnitary ¶
L2DistanceUnitary returns the L2-norm of x-y.
func L2NormUnitary ¶
L2NormUnitary returns the L2-norm of x.
func ScalIncTo ¶
ScalIncTo is
var idst, ix uintptr for i := 0; i < int(n); i++ { dst[idst] = alpha * x[ix] ix += incX idst += incDst }
func SscalInc ¶
SscalInc 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 SscalUnitary ¶
SscalUnitary is
for i, v := range x { x[i] = complex(real(v)*alpha, imag(v)*alpha) }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.