matrix multiplication

Dan Stromberg drsalists at gmail.com
Mon Feb 26 17:12:26 EST 2018


On Mon, Feb 26, 2018 at 2:07 PM, Ian Kelly <ian.g.kelly at gmail.com> wrote:
> On Mon, Feb 26, 2018 at 2:40 PM, Dan Stromberg <drsalists at gmail.com> wrote:
>> On Mon, Feb 26, 2018 at 8:53 AM, Seb <spluque at gmail.com> wrote:
>>> On Sun, 25 Feb 2018 18:52:14 -0500,
>>> Terry Reedy <tjreedy at udel.edu> wrote:
>>>
>>> [...]
>>>
>>>> numpy has a matrix multiply function and now the '@' matrix multiply
>>>> operator.
>>>
>>> Yes, but what I was wondering is whether there's a faster way of
>>> multiplying each row (1x3) of a matrix by another matrix (3x3), compared
>>> to looping through the matrix row by row as shown in the code.  Perhaps
>>> I'm not understanding how to use the broadcasting features of `matmul`.
>>
>> I'm a bit of a numpy newb, but this sounds like numpy's "broadcasting" feature:
>> http://lmgtfy.com/?q=numpy+broadcasting
>
> Taking LMGTFY to a whole new level of rudeness by obviously not even
> bothering to read the entire paragraph before responding.

Is LMGTFY rude?  I think maybe it was back when it said "Now, was that
so hard?", but today there's no snarkiness to be found on the site,
AFAIK.

Also, like I said, I'm a numpy newbie.  If I misunderstood the
question, that's probably why.



More information about the Python-list mailing list