From edc8a8542059b76f131d5d32612543d506970a48 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Mon, 16 Jan 2006 21:32:58 +0000 Subject: Fix shape() function. Fix so that longdouble typecode never overwrites double if longdouble is the same as double. Fix missing math module import. --- numpy/core/numeric.py | 1 + 1 file changed, 1 insertion(+) (limited to 'numpy/core/numeric.py') diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index d4a23d2f1..c784b7fb9 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -308,6 +308,7 @@ def base_repr (number, base=2, padding=0): """ chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' + import math lnb = math.log(base) res = padding*chars[0] if number == 0: -- cgit v1.2.1