[Numpy-discussion] Undefined "wrap" in linalg.py:tensorsolve.py

Robert Kern robert.kern@gmail....
Mon Jun 30 12:20:16 CDT 2008


On Mon, Jun 30, 2008 at 12:17, Alan McIntyre <alan.mcintyre@gmail.com> wrote:
> While I was working on the doctest tweaks, I ran across a doctest that
> failed because tensorsolve uses a function "wrap" that's not defined.
> It seems that I should make the following change to fix it (at the
> start of tensorsolve's code) :
>
> -    a = asarray(a)
> +    a,wrap = _makearray(a)
>
> Doing so seems to make the example run, but I just wanted to see if
> this was the appropriate thing to do.

It is.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
 -- Umberto Eco


More information about the Numpy-discussion mailing list