Documentation ¶
Index ¶
- func ArgMax(v []float64) int
- func ArgMin(v []float64) int
- func ArgMinMax(v []float64) (imin, imax int)
- func Copy(in []float64) []float64
- func CumSum(dst, src []float64) []float64
- func EqualApprox(a, b float64) bool
- func FillFloatSlice(slice []float64, value float64)
- func MakeFloat64Matrix(rows, cols int) [][]float64
- func Max(v []float64) (m float64)
- func Sign(a float64) int
- func SoftMax(v []float64) (sm []float64)
- func StrToFloat64Slice(str string) ([]float64, error)
- func Sum(v []float64) (s float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqualApprox ¶
EqualApprox returns true if a and b are equal to within reasonable absolute or relative tolerances (both hardcoded as 1.0e-06).
func FillFloatSlice ¶
FillFloatSlice fills the given slice's elements with value.
func MakeFloat64Matrix ¶
MakeFloat64Matrix returns a new 2-dimensional slice.
func StrToFloat64Slice ¶
StrToFloat64Slice parses a string representation of a slice of float64 values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.