summaryrefslogtreecommitdiff
path: root/numpy/oldnumeric/olddefaults.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-07-01 17:11:27 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-07-01 17:11:27 +0000
commit3bf7055cef2d027048f09d318cdff0dd3160d085 (patch)
treedf943cdf34a1fa9e9c961c95d12af5f9e9408b32 /numpy/oldnumeric/olddefaults.py
parent355f943419200c921e49c225dab44ac8da0d94db (diff)
downloadnumpy-3bf7055cef2d027048f09d318cdff0dd3160d085.tar.gz
Added histogram2d #161
Diffstat (limited to 'numpy/oldnumeric/olddefaults.py')
-rw-r--r--numpy/oldnumeric/olddefaults.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/oldnumeric/olddefaults.py b/numpy/oldnumeric/olddefaults.py
index d818ed57c..356f5f00c 100644
--- a/numpy/oldnumeric/olddefaults.py
+++ b/numpy/oldnumeric/olddefaults.py
@@ -27,7 +27,7 @@ def eye(N, M=None, k=0, dtype=int):
and everything else is zeros.
"""
if M is None: M = N
- m = equal(subtract.outer(arange(N), arange(M)),-k)
+ m = nn.equal(nn.subtract.outer(nn.arange(N), nn.arange(M)),-k)
if m.dtype != dtype:
return m.astype(dtype)
@@ -36,7 +36,7 @@ def tri(N, M=None, k=0, dtype=int):
lower left corner up to the k-th are all ones.
"""
if M is None: M = N
- m = greater_equal(subtract.outer(arange(N), arange(M)),-k)
+ m = nn.greater_equal(nn.subtract.outer(nn.arange(N), nn.arange(M)),-k)
if m.dtype != dtype:
return m.astype(dtype)