noasm

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const ENABLED_COSINE = true
View Source
const ENABLED_EUCLIDEAN = true

Variables

This section is empty.

Functions

func CosineF32

func CosineF32(a, b []float32) (d float32)

Cosine distance between two vectors

func EqualF32 added in v0.0.5

func EqualF32(a, b []float32) bool

func EuclideanF32

func EuclideanF32(a, b []float32) (d float32)

Squared Euclidean distance between two vectors

Types

type Cosine

type Cosine int

Type Class for Cosine distance

func (Cosine) Distance

func (Cosine) Distance(a, b []float32) float32

func (Cosine) Equal added in v0.0.5

func (Cosine) Equal(a, b []float32) bool

type Euclidean

type Euclidean int

Type Class for Euclidean distance

func (Euclidean) Distance

func (Euclidean) Distance(a, b []float32) float32

func (Euclidean) Equal added in v0.0.5

func (Euclidean) Equal(a, b []float32) bool

Jump to

Keyboard shortcuts

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