f32

package
v0.0.0-...-6781cc5 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: LGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddScaled

func AddScaled(dst []float32, alpha float32, s []float32)

AddScaled performs dst = dst + alpha * s. It panics if the lengths of dst and s are not equal.

func AxpyUnitaryTo

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

AxpyUnitaryTo is

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

func Max

func Max(dst, s []float32)

Max is

for i, v := range s {
    if v > dst[i] {
        dst[i] = v
    }
}

func Min

func Min(dst, s []float32)

Min is

for i, v := range s {
    if v < dst[i] {
        dst[i] = v
    }
}

Types

This section is empty.

Jump to

Keyboard shortcuts

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