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

Method Equal

wrapper/record.go:70–72  ·  view source on GitHub ↗

Equal returns whether the vectors have the same size and are element-wise equal.

(b *Record)

Source from the content-addressed store, hash-verified

68
69// Equal returns whether the vectors have the same size and are element-wise equal.
70func (w *Record) Equal(b *Record) bool {
71 return reflect.DeepEqual(w.record.Data, b.record.Data)
72}
73
74// Dot performs the dot product between a vector and another.
75func (w *Record) Dot(b *Record) float64 {

Callers 1

benchVMFunction · 0.80

Calls

no outgoing calls

Tested by 1

benchVMFunction · 0.64