Hacker News new | past | comments | ask | show | jobs | submit login

Yes, this would be fast assuming the vectors are pre-normalized, obviating the need to repeatedly calculate two square roots.



Even if the vectors are NOT normalized, you don't always need to normalize them.

Add in nd indices and the costs tend to be very small.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: