diff options
Diffstat (limited to 'numpy/oldnumeric/compat.py')
-rw-r--r-- | numpy/oldnumeric/compat.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/oldnumeric/compat.py b/numpy/oldnumeric/compat.py index 0a4b41228..3c8cf9b70 100644 --- a/numpy/oldnumeric/compat.py +++ b/numpy/oldnumeric/compat.py @@ -7,7 +7,7 @@ __all__ = ['NewAxis', 'UInt8','UInt16','UInt32', 'UnsignedInt32', 'UnsignedInteger', # UnsignedInt64 and Unsigned128 added below if possible # same for Int64 and Int128, Float128, and Complex128 - 'Int8', 'Int16', 'Int32', + 'Int8', 'Int16', 'Int32', 'Int0', 'Int', 'Float0', 'Float', 'Complex0', 'Complex', 'PyObject', 'Float32', 'Float64', 'Float16', 'Float8', 'Complex32', 'Complex64', 'Complex8', 'Complex16', @@ -19,6 +19,7 @@ __all__ = ['NewAxis', 'dump', 'dumps' ] + import numpy.core.multiarray as mu import numpy.core.umath as um import numpy.core.numerictypes as nt @@ -38,6 +39,7 @@ multiarray = mu def sarray(a, dtype=None, copy=False): return array(a, dtype, copy) + #Use this to add a new axis to an array #compatibility only NewAxis = None |