Documentation ¶
Overview ¶
Package vec provides functions for float64 vectors.
Index ¶
- func Concat(xss ...[]float64) []float64
- func Linspace(lo, hi float64, num int) []float64
- func Logspace(lo, hi float64, num int, base float64) []float64
- func Map(f func(float64) float64, xs []float64) []float64
- func Sum(xs []float64) float64
- func Vectorize(f func(float64) float64) func(xs []float64) []float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Linspace ¶
Linspace returns num values spaced evenly between lo and hi, inclusive. If num is 1, this returns an array consisting of lo.
func Logspace ¶
Logspace returns num values spaced evenly on a logarithmic scale between base**lo and base**hi, inclusive.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.