From 9b86617974fee246df0ebba859102897f531f659 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sun, 27 Jun 2010 11:07:15 +0000 Subject: BUG: lib: fix sinc to handle array-like inputs properly (fixes #1523) --- numpy/lib/function_base.py | 1 + 1 file changed, 1 insertion(+) (limited to 'numpy/lib/function_base.py') diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 1a93b5a1d..03a4ef0b6 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -2737,6 +2737,7 @@ def sinc(x): """ + x = np.asanyarray(x) y = pi* where(x == 0, 1.0e-20, x) return sin(y)/y -- cgit v1.2.1