Equal returns whether the vectors have the same size and are element-wise equal.
(b *Record)
| 68 | |
| 69 | // Equal returns whether the vectors have the same size and are element-wise equal. |
| 70 | func (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. |
| 75 | func (w *Record) Dot(b *Record) float64 { |