summaryrefslogtreecommitdiff
path: root/scipy/base/numeric.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2005-10-14 02:22:07 +0000
committerTravis Oliphant <oliphant@enthought.com>2005-10-14 02:22:07 +0000
commit366fab195fb063e243b54994df6bb4b30b707f8c (patch)
treeec3c99977ecef71ec6e78d4755ab1e8da4c04064 /scipy/base/numeric.py
parent9f1286587474fb3fcbdf2020b1fe47400ca20b68 (diff)
downloadnumpy-366fab195fb063e243b54994df6bb4b30b707f8c.tar.gz
Fixes made necessary by change to asarray.
Diffstat (limited to 'scipy/base/numeric.py')
-rw-r--r--scipy/base/numeric.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scipy/base/numeric.py b/scipy/base/numeric.py
index 8e0306877..3f2688b4d 100644
--- a/scipy/base/numeric.py
+++ b/scipy/base/numeric.py
@@ -97,8 +97,8 @@ def outer(a,b):
result(i,j) = a(i)*b(j) when a and b are vectors
Will accept any arguments that can be made into vectors.
"""
- a = asndarray(a)
- b = asndarray(b)
+ a = asarray(a)
+ b = asarray(b)
return a.ravel()[:,newaxis]*b.ravel()[newaxis,:]
def vdot(a, b):
@@ -136,8 +136,8 @@ def cross(a, b, axisa=-1, axisb=-1, axisc=-1):
the z-component of the equivalent three-dimensional cross product is
returned.
"""
- a = _move_axis_to_0(asndarray(a), axisa)
- b = _move_axis_to_0(asndarray(b), axisb)
+ a = _move_axis_to_0(asarray(a), axisa)
+ b = _move_axis_to_0(asarray(b), axisb)
msg = "incompatible dimensions for cross product\n"\
"(dimension must be 2 or 3)"
if (a.shape[0] not in [2,3]) or (b.shape[0] not in [2,3]):