floats

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(dst, s []float64)

Add two vectors: dst = dst + s

func Div

func Div(dst, s []float64)

Div one vectors by another: dst = dst / s

func Dot

func Dot(a, b []float64) float64

func Mul

func Mul(dst, s []float64)

Mul two vectors: dst = dst * s

func MulConst

func MulConst(dst []float64, c float64)

MulConst multiplies a vector with a const: dst = dst * c

func MulConstAddTo

func MulConstAddTo(a []float64, c float64, dst []float64)

func MulConstTo

func MulConstTo(a []float64, c float64, dst []float64)

func Sub

func Sub(dst, s []float64)

Sub one vector by another: dst = dst - s

func SubTo

func SubTo(a, b, dst []float64)

SubTo subtracts one vector by another and saves the result in dst: dst = a - b

Types

This section is empty.

Jump to

Keyboard shortcuts

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