From 366fab195fb063e243b54994df6bb4b30b707f8c Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Fri, 14 Oct 2005 02:22:07 +0000 Subject: Fixes made necessary by change to asarray. --- scipy/base/numeric.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scipy/base/numeric.py') 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]): -- cgit v1.2.1