We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a7f315 commit dd98c83Copy full SHA for dd98c83
stumpy/sdp.py
@@ -52,12 +52,7 @@ def _convolve_sliding_dot_product(Q, T):
52
output : numpy.ndarray
53
Sliding dot product between `Q` and `T`.
54
"""
55
- n = T.shape[0]
56
- m = Q.shape[0]
57
- Qr = np.flipud(Q) # Reverse/flip Q
58
- QT = convolve(Qr, T)
59
-
60
- return QT.real[m - 1 : n]
+ return convolve(np.flipud(Q), T, mode="valid")
61
62
63
def _sliding_dot_product(Q, T):
0 commit comments