RFC: update vecdot
to accept keepdims
and axis
to support tuples
#910
Labels
RFC
Request for comments. Feature requests and proposed changes.
topic: Linear Algebra
Linear algebra.
Uh oh!
There was an error while loading. Please reload this page.
I'm working on a PR for SciPy that replaces the
sum(x * y)
pattern withvecdot(x, y)
, since there are pretty substantial performance advantages. There is at least one place where the code currently relies on thekeepdims
argument ofsum
. Should that be accepted byvecdot
?How about
axis
tuples? I understand this does not look ideal, and I would also be happy if axis tuples were never allowed. But the motivation is the same - there are existing functions that usesum(x * y)
and supportaxis
tuples. Ifvecdot
doesn't allow them, these functions all have to manually ravel the axes ofx
andy
separately. (This operation can be moved into a helper function if need be, but hopefully it need not be.)The text was updated successfully, but these errors were encountered: