Numpy outer product is broken

Issue #26 resolved
Former user created an issue

The numpy.outer function appears to be broken in numpypy/numpy for pypy.

import numpy as np a1=np.ones(10) np.outer(a1,a1)

Python output: Out[6]: array([[ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]])

pypy output:

TypeError: output must be an array

Comments (1)

  1. mattip

    Somewhere along the line this got fixed, it now works for me with PyPy 4.0.1 and pypy/numpy tag pypy-4.0.1. Feel free to reopen if it fails for you, but please leave enough information to reproduce

  2. Log in to comment