rickvanveen / sklvq

http://sklvq.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
47 stars 9 forks source link

Possible Performance Improvement: matmul vs dot vs einsum #58

Open rickvanveen opened 3 years ago

rickvanveen commented 3 years ago

Is your feature request related to a problem? Please describe. Not a problem just enhancement. Should check if there is a possible performance gain (probably mostly in the distance function) when changing any of the dot products to matmul or better einsums. Furthermore changing certain dot calls to matmul makes it more clear what is going on for anyone not that familiar with numpy.

Describe the solution you'd like Change dot function to better einsum or matmul calls.

Describe alternatives you've considered n/a

Additional context