Documentation ¶
Overview ¶
Package floats provides functions for numeric computations.
There are two implementations:
- gonum version: implemented by gonum. It is the default implementation.
- AVX2 version: implemented by AVX2 instructions. This implementation should be built with `avx2` tag.
Index ¶
- func Add(dst, s []float64)
- func AddTo(a, b, dst []float64)
- func Div(dst, s []float64)
- func Dot(a, b []float64) float64
- func Mul(dst, s []float64)
- func MulConst(dst []float64, c float64)
- func MulConstAddTo(a []float64, c float64, dst []float64)
- func MulConstTo(a []float64, c float64, dst []float64)
- func Sub(dst, s []float64)
- func SubTo(a, b, dst []float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTo ¶
func AddTo(a, b, dst []float64)
AddTo adds two vectors and saves the result in dst: dst = a + b
func MulConstAddTo ¶
MulConstAddTo multiplies a vector and a const, then adds to dst: dst = dst + a * c
func MulConstTo ¶
MulConstTo multiplies a vector and a const, then saves the result in dst: dst = a * c
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.