DotSub performs the dot product between a vector and another using up until the specificed number of elements.
(b *Record, elems uint)
| 86 | |
| 87 | // DotSub performs the dot product between a vector and another using up until the specificed number of elements. |
| 88 | func (w *Record) DotSub(b *Record, elems uint) float64 { |
| 89 | return w.DotRange(b, 0, elems) |
| 90 | } |
| 91 | |
| 92 | // Magnitude returns the magnitude of the vector. |
| 93 | func (w *Record) Magnitude() float64 { |