[SciPy-user] Mathematica Element-wise Multiplication
Johann Cohen-Tanugi
cohen@slac.stanford....
Fri Dec 21 11:07:30 CST 2007
IMHO I think that we are reaching noise level on this thread.... Erik
and Travis's option to put a warning in the doc string seems reasonable,
easy, and efficient to me. numpy.array can but is not meant to do LinA
lg matrix computation, acknowledged! That should be CAPITALIZED in
tutorials, docstrings, whathever, and that should be enough.
cheers,
Johann
Matthieu Brucher wrote:
>
> I can't think of a situation where code would need to be generic
> enough to need to acceptably call what's basically a no-op on a 1D
> array. But you might be right. Still, I think it should be
> discouraged somehow, for the benefit of new users; perhaps a warn()?
>
>
> This remains the same : why do you want to change something that is
> correct to something that is not ? Why do you want to put a warning
> when people want to do generic code ?
> I do a lot of generic code, and the fact that .T does nothing for a 1D
> array and does not put a warning is the behaviour I expect from Numpy.
> The behaviour in Matlab is not the correct one, I can't count the
> number of times I had to explain to a student why what he does does
> not give the expected result.
> Python is about to make things simple and clear, let's jus do not the
> opposite in Numpy.
>
> Matthieu
> --
> French PhD student
> Website : http://matthieu-brucher.developpez.com/
> <http://matthieu-brucher.developpez.com/>
> Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
> LinkedIn : http://www.linkedin.com/in/matthieubrucher
> ------------------------------------------------------------------------
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>
More information about the SciPy-user
mailing list