f64utils

package
v0.0.0-...-ab595c2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArgMax

func ArgMax(v []float64) int

ArgMax finds the index of the max argument

func ArgMin

func ArgMin(v []float64) int

ArgMin finds the index of the min argument

func ArgMinMax

func ArgMinMax(v []float64) (imin, imax int)

ArgMinMax finds the indices of min and max arguments

func Copy

func Copy(in []float64) []float64

func EqualApprox

func EqualApprox(a, b float64) bool

func FillFloatSlice

func FillFloatSlice(slice []float64, value float64)

Fill the given slice's elements with value

func MakeFloat64Matrix

func MakeFloat64Matrix(rows, cols int) [][]float64

func Max

func Max(v []float64) (m float64)

func SoftMax

func SoftMax(v []float64) (sm []float64)

func StrToFloat64Slice

func StrToFloat64Slice(str string) ([]float64, error)

func Sum

func Sum(v []float64) (s float64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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