diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-01-16 21:32:58 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-01-16 21:32:58 +0000 |
commit | edc8a8542059b76f131d5d32612543d506970a48 (patch) | |
tree | a99192852db331b4dcdb9c5d7801e04427fd81a6 /numpy/core/numeric.py | |
parent | 8b271e09233bdb81d0f4706e1021ca2e5c227fe3 (diff) | |
download | numpy-edc8a8542059b76f131d5d32612543d506970a48.tar.gz |
Fix shape() function. Fix so that longdouble typecode never overwrites double if longdouble is the same as double. Fix missing math module import.
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 1 |
1 files changed, 1 insertions, 0 deletions
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: |