summaryrefslogtreecommitdiff
path: root/scipy/base/oldscipy.py
diff options
context:
space:
mode:
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)
+