[PYTHON MATRIX-SIG] ValueError: function not supported

Dietmar Schwertberger dietmar.schwertberger@student.uni-ulm.de
Thu, 20 Mar 1997 22:20:04 +0100 (MEZ)

When using NumPy I always get an error
"ValueError: function not supported".

An example is included at the end.

Any ideas what could have gone wrong?

The System I'm using is Acorn RISC OS.



Python 1.4 (Mar 20 1997) [C]
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> from Numeric import *
>>> array([1,2.3,4])

Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "PythonLibs:NumPy.NumPy.py.Numeric", line 113, in array_repr
    return array2string(a, max_line_width, precision, suppress_small, ', ', 1)
  File "PythonLibs:NumPy.NumPy.py.ArrayPrinter", line 46, in array2string
    format, item_length = _floatFormat(data, precision, suppress_small)
  File "PythonLibs:NumPy.NumPy.py.ArrayPrinter", line 94, in _floatFormat
    non_zero = abs(Numeric.compress(not_equal(data, 0), data))
  File "PythonLibs:NumPy.NumPy.py.Numeric", line 285, in compress
    return take(m, nonzero(condition), dimension)
  File "PythonLibs:NumPy.NumPy.py.Numeric", line 263, in nonzero
    return repeat(arange(len(a)), not_equal(a, 0))
  File "PythonLibs:NumPy.NumPy.py.Numeric", line 28, in arrayrange
    m = (add.accumulate(ones((n,), Int))-1)*step + (start + stop-stop)
  File "PythonLibs:NumPy.NumPy.py.Numeric", line 301, in ones
    return zeros(shape, typecode)+array(1, typecode)
ValueError: function not supported

MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org