[Numpy-discussion] Silent Broadcasting considered harmful
Eelco Hoogendoorn
hoogendoorn.eelco at gmail.com
Sun Feb 8 16:57:05 EST 2015
This. (nd)arrays are a far more widespread concept than linear algebraic
operations. If you want LA semantics, use the matrix subclass. Or don't,
since simply sticking to the much more pervasive and general ndarray
semantics is usually simpler and less confusing.
On Sun, Feb 8, 2015 at 10:54 PM, Warren Focke <focke at slac.stanford.edu>
wrote:
> On Sun, 8 Feb 2015, Stefan Reiterer wrote:
>
> > And as already mentioned: other matrix languages also allow it, but they
> warn about it's usage.
> > This has indeed it's merits.
>
> numpy isn't a matrix language. They're arrays. Storing numbers that you are
> thinking of as a vector in an array doesn't turn the array into a vector.
> There
> are linear algebra modules; I haven't used them.
>
> w
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20150208/2e2834a9/attachment.html>
More information about the NumPy-Discussion
mailing list