summaryrefslogtreecommitdiff
path: root/numpy/oldnumeric/functions.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-08-05 01:52:55 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-08-05 01:52:55 +0000
commit65343e533fbf10a5f93970497065478e24ee6238 (patch)
treedc0d6510d62983cfb041a4ad257c2973dbf01983 /numpy/oldnumeric/functions.py
parent9d8e2024ff9014fa2fd9a29812cec615dff6feb9 (diff)
downloadnumpy-65343e533fbf10a5f93970497065478e24ee6238.tar.gz
Fix-up oldnumeric compatibility layer.
Diffstat (limited to 'numpy/oldnumeric/functions.py')
-rw-r--r--numpy/oldnumeric/functions.py36
1 files changed, 34 insertions, 2 deletions
diff --git a/numpy/oldnumeric/functions.py b/numpy/oldnumeric/functions.py
index a905aa9a7..8b9828664 100644
--- a/numpy/oldnumeric/functions.py
+++ b/numpy/oldnumeric/functions.py
@@ -1,4 +1,4 @@
-# Functions that should behave the same as Numeric
+# Functions that should behave the same as Numeric and need changing
import numpy as N
import numpy.core.multiarray as mu
@@ -7,7 +7,9 @@ from typeconv import convtypecode
__all__ = ['take', 'repeat', 'sum', 'product', 'sometrue', 'alltrue',
'cumsum', 'cumproduct']
-__all__ += ['ones', 'empty', 'identity', 'zeros']
+__all__ += ['ones', 'empty', 'identity', 'zeros', 'array', 'asarray', 'nonzero',
+ 'reshape', 'arange', 'fromstring', 'ravel', 'trace', 'indices',
+ 'where']
def take(a, indicies, axis=0):
return N.take(a, indicies, axis)
@@ -60,3 +62,33 @@ def empty(shape, typecode='l', dtype=None):
dtype = convtypecode(typecode, dtype)
return mu.empty(shape, dtype, order)
+
+def array(sequence, typecode=None, copy=1, savespace=0):
+ pass
+
+def asarray(a, typecode=None):
+ pass
+
+def nonzero(a):
+ pass
+
+def reshape(a, shape):
+ pass
+
+def arange(start, stop=None, step=1, typecode=None):
+ pass
+
+def fromstring(string, typecode='l', count=-1):
+ pass
+
+def ravel(m):
+ pass
+
+def trace(a, offset=0, axis1=0, axis2=1):
+ pass
+
+def indices(dimensions, typecode=None):
+ pass
+
+def where(condition, x, y):
+ pass