[Numpy-discussion] force column vector

Robert Kern robert.kern@gmail....
Wed Feb 7 16:52:16 CST 2007

Keith Goodman wrote:
> I'd like to know what the -1 means.

It means "fill in with whatever is necessary to make the size correct given the
other specified dimensions".

> But first I'm trying to figure out
> why there are two reshapes?

reshape() used to be simply a function, not a method.

> Do they behave identically? The doc
> strings make it look like they might not.

The docstrings are different only because I updated the one and not, yet, the other.

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