slice assignment: strange behaviour

Robert Kern robert.kern at
Wed Nov 8 17:26:23 CST 2006

koara wrote:
> koara wrote:
>> Hello,
>> a piece of my code started giving strange results with certain data; i
>> managed to track down the cause to a slice array assignment. In the
>> ....
> Also if i first build a sequence of columns and then use
> numpy.transpose(numpy.vstack(sequence)) the result is ok. But the
> arrays can be quite big so in this case i fear space overhead -- or am
> i wrong?

You might want to use column_stack() instead, for clarity if nothing else.

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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

More information about the Numpy-discussion mailing list