summaryrefslogtreecommitdiff
path: root/scipy/base/oldnumeric.py
diff options
context:
space:
mode:
Diffstat (limited to 'scipy/base/oldnumeric.py')
-rw-r--r--scipy/base/oldnumeric.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scipy/base/oldnumeric.py b/scipy/base/oldnumeric.py
index 49fa24be7..aea2c984b 100644
--- a/scipy/base/oldnumeric.py
+++ b/scipy/base/oldnumeric.py
@@ -26,6 +26,11 @@ UnsignedInt16 = nt.uint16
UnsignedInt32 = nt.uint32
UnsignedInt = nt.uint
+typecodes = {'Character':'S1', 'Integer':'bhilqp', 'UnsignedInteger':'BHILQP',
+ 'Float':'fdg', 'Complex':'FDG'}
+
+def sarray(a, dtype=None, copy=0):
+ return array(a, dtype, copy)
try:
UnsignedInt64 = nt.uint64