[SciPy-user] lsim changes shape of input u

Ryan Krauss ryanlists at gmail.com
Wed Sep 20 06:56:42 CDT 2006


Thanks.  That is good to know.

On 9/20/06, Stefan van der Walt <stefan at sun.ac.za> wrote:
> Hi Ryan
>
> On Tue, Sep 19, 2006 at 06:50:20PM -0500, Ryan Krauss wrote:
> > Thanks.  I was hoping to learn from your fix, but I don't see what is
> > different in the code.   It looks like you fixed lsim2 as well.
>
> It used to be
>
> U.shape = ...
>
> instead of
>
> U = U.reshape(...)
>
> U.reshape does not modify the shape field of the original input
> argument, but instead returns a view on that array.
>
> Regards
> Stéfan
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>


More information about the SciPy-user mailing list