MCPcopy Create free account
hub / github.com/evilsocket/sum / Dot

Method Dot

wrapper/record.go:75–77  ·  view source on GitHub ↗

Dot performs the dot product between a vector and another.

(b *Record)

Source from the content-addressed store, hash-verified

73
74// Dot performs the dot product between a vector and another.
75func (w *Record) Dot(b *Record) float64 {
76 return backend.Dot(w.vec, b.vec)
77}
78
79// DotRange performs the dot product between a vector and another using a range of elements.
80func (w *Record) DotRange(b *Record, start uint, end uint) float64 {

Callers 2

MagnitudeMethod · 0.95
CosineMethod · 0.95

Calls 1

DotMethod · 0.65

Tested by

no test coverage detected