[python-dtcwt] 41/497: remove use of convolve2d in lowlevel.py

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:05:47 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository python-dtcwt.

commit a02fa457dc0a4b8d1574b5da6a910ee6c97e2e79
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date:   Wed Aug 7 23:11:44 2013 +0100

    remove use of convolve2d in lowlevel.py
---
 dtcwt/lowlevel.py | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/dtcwt/lowlevel.py b/dtcwt/lowlevel.py
index 7a944c5..f951ff9 100644
--- a/dtcwt/lowlevel.py
+++ b/dtcwt/lowlevel.py
@@ -1,5 +1,4 @@
 import numpy as np
-from scipy.signal import convolve2d
 
 def as_column_vector(v):
     """Return *v* as a column vector with shape (N,1).
@@ -34,10 +33,6 @@ def _column_convolve(X, h):
     h_size = h.shape[0]
     full_size = X.shape[0] + h_size - 1
 
-    # For small arrays, convolving directly is often faster
-    if full_size < 32:
-        return convolve2d(X, as_column_vector(h), 'valid')
-
     # Always use 2**n-sized FFT
     fsize = 2 ** np.ceil(np.log2(full_size)).astype(int)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git



More information about the debian-science-commits mailing list