summaryrefslogtreecommitdiff
path: root/scipy/base/oldscipy.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2005-09-14 22:28:28 +0000
committerTravis Oliphant <oliphant@enthought.com>2005-09-14 22:28:28 +0000
commit61b48697e440f76b2337c790ec5ca763cd55200b (patch)
treeda64ece2ba0b6b97deb51c36ca320c64102e9baa /scipy/base/oldscipy.py
parent575d373479c63a42bc4a729a058da31a74e75d3e (diff)
downloadnumpy-61b48697e440f76b2337c790ec5ca763cd55200b.tar.gz
Moving things to live under scipy
Diffstat (limited to 'scipy/base/oldscipy.py')
-rw-r--r--scipy/base/oldscipy.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/scipy/base/oldscipy.py b/scipy/base/oldscipy.py
new file mode 100644
index 000000000..d09496876
--- /dev/null
+++ b/scipy/base/oldscipy.py
@@ -0,0 +1,10 @@
+
+# Need this to change array type for low precision values
+# Should really be done with method call and rtype
+# This is for backwards compatibility...
+def sum(x, axis=0, rtype=None):
+ x = asarray(x)
+ if x.dtypechar in ['b','h','B','H']:
+ x = x.astype(intp)
+ return _nx.sum(x,axis)
+