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

package f32

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

Package f32 provides float32 vector primitives.

Index

Package Files

doc.go ge_amd64.go scal.go stubs_amd64.go

func AxpyInc Uses

func AxpyInc(alpha float32, x, y []float32, 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 []float32, incDst, idst uintptr, alpha float32, x, y []float32, 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 float32, x, y []float32)

AxpyUnitary is

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

func AxpyUnitaryTo Uses

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

AxpyUnitaryTo is

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

func DdotInc Uses

func DdotInc(x, y []float32, n, incX, incY, ix, iy uintptr) (sum float64)

DdotInc is

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

func DdotUnitary Uses

func DdotUnitary(x, y []float32) (sum float64)

DdotUnitary is

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

func DotInc Uses

func DotInc(x, y []float32, n, incX, incY, ix, iy uintptr) (sum float32)

DotInc is

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

func DotUnitary Uses

func DotUnitary(x, y []float32) (sum float32)

DotUnitary is

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

func Ger Uses

func Ger(m, n uintptr, alpha float32,
    x []float32, incX uintptr,
    y []float32, incY uintptr,
    a []float32, lda uintptr)

Ger performs the rank-one operation

A += alpha * x * y^T

where A is an m×n dense matrix, x and y are vectors, and alpha is a scalar.

func ScalInc Uses

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

ScalInc is

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

func ScalIncTo Uses

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

ScalUnitary is

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

func ScalUnitaryTo Uses

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

ScalUnitaryTo is

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

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