From 0330812bca3a97a2b808964e32d5ae81b466441c Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Tue, 10 Oct 2006 08:52:18 +0000 Subject: Fix segfault in .imag for real array scalars. Be specific about infix multiplication. --- numpy/lib/shape_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/shape_base.py') diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py index ed84e9f5d..c6dc7b5c9 100644 --- a/numpy/lib/shape_base.py +++ b/numpy/lib/shape_base.py @@ -552,7 +552,7 @@ def kron(a,b): a = array(a,copy=False,subok=True,ndmin=b.ndim) ndb, nda = b.ndim, a.ndim if (nda == 0 or ndb == 0): - return a * b + return _nx.multiply(a,b) as = a.shape bs = b.shape if not a.flags.contiguous: -- cgit v1.2.1