nickna / Neighborly

An open-source vector database
MIT License
9 stars 2 forks source link

feat: Perform mathematical operations in-place #37

Closed hangy closed 3 weeks ago

hangy commented 3 weeks ago

📝 Description

Add explicit method to add and subtract vectors and divide by a divisor in-place.

🔗 Related Issues

Closes #4

💡 Additional Notes

I decided to be pretty specific with the method names to make it obvious that the original object will be modified. This is to contract framework methods like DateTime.Add, which don't do in-place operations.