[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: element-wise matrix multiplication
From: |
Kai Torben Ohlhus |
Subject: |
Re: element-wise matrix multiplication |
Date: |
Tue, 25 Feb 2020 17:27:10 +0900 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 |
On 2/25/20 5:12 PM, niconeuman wrote:
> Greetings,
> I would like to know in which part of the Octave source code the operation
> A.*B is defined (where A and B are matrices of the same size).
> I have been able to find other operations between matrices, but not the
> element-wise multiplication.
> Thank you very much!
> Nicolas
>
Dear Nicolas,
Element-wise multiplication might end up in the `mx_inline_mul` template
function [1] that gets instantiated by the NDArray-class or whatsoever
the type of your matrices A and B is.
HTH,
Kai
[1]
https://hg.savannah.gnu.org/hgweb/octave/file/480490faf659/liboctave/operators/mx-inlines.cc#l109