79442418

Date: 2025-02-16 00:25:21
Score: 1.5
Natty:
Report link

np.dot(arr1, arr2.T) seems fast enough (equivalent: np.tensordot(arr1, arr2, axes=(1,1)); see here for the tensordot documentation). If it's faster for your array sizes then why use your for loop version?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • High reputation (-1):
Posted by: jared