[Matrix-SIG] I couldn't find 'outer' in the name space.

Oishi, Takahiro Takahiro.Oishi@db.com
Tue, 22 Dec 1998 15:20:30 +0900


Hi,

I'm trying to use MLab.py.
But I found errors with some functions defined in MLab.py.
I can't use 'outer' (defined in 'ufuncobject.c) like below.

>>> from MLab import *
>>> cov(a)                # 'a' is an array
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "/usr/local/python/lib/python1.5/MLab.py",
line 162, in cov
    sum_cov = sum_cov+outer(multiply, v,v)
NameError: outer
>>>

Of course, I can't use 'corrcoef' using 'outer', either.

Has anyone found same kind of problem?
Did not I build NumPy and python correctly?
Or if anyone have any suggestion, plese let me know.
I appreciate that.

My python runs under Red Hat Linux 4.2 (kernel 2.0.33) on Pentium II
and Solaris 2.5.
(Same kind of errors happened under both unix.)
Basically I succeeded to build NumPy with no special options.
(Version of NumPy and NumPyLib
    NumPy-1.0b3.tar.gz
    NumPyLib-1.0b2.tar.gz )

As regards,

T.Oishi