<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Dear customer, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Element-by-Element-matrix-multiplication/m-p/1096621#M23609</link>
    <description>&lt;P&gt;Dear customer,&lt;/P&gt;

&lt;P&gt;For the element-by-element multiplication, I am afraid there's no specify function for matrix, but only vector. If you would like to improve the performance, you could try with multi-threading calculation by using&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#pragma omp parallel for
for (int i = 0; i &amp;lt; row; i++) {
    vdMul(col, a&lt;I&gt;, b&lt;I&gt;, y&lt;I&gt;);
}&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;More physical core you have for your CPU, the higher performance you will get. Please also provide the testing performance with your hardware information to us, we will see if the performance acceptable. Thank you.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 01:12:00 GMT</pubDate>
    <dc:creator>Zhen_Z_Intel</dc:creator>
    <dc:date>2017-02-16T01:12:00Z</dc:date>
    <item>
      <title>Element-by-Element matrix multiplication</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Element-by-Element-matrix-multiplication/m-p/1096620#M23608</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I have a simple task at hand. I want to compute an element-by-element multiplication of two matrices A and B.&lt;/P&gt;

&lt;P&gt;If use C = A*B it delivers the result I want, but it is very slow.&lt;/P&gt;

&lt;P&gt;Do you know any faster way to make this computation?&lt;/P&gt;

&lt;P&gt;For instance, if A and B were vectors, vdmul would be an efficient way to proceed. I'm looking for something similar, but using matrices.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;Gaston&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 17:28:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Element-by-Element-matrix-multiplication/m-p/1096620#M23608</guid>
      <dc:creator>Gaston_N_</dc:creator>
      <dc:date>2017-02-15T17:28:09Z</dc:date>
    </item>
    <item>
      <title>Dear customer,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Element-by-Element-matrix-multiplication/m-p/1096621#M23609</link>
      <description>&lt;P&gt;Dear customer,&lt;/P&gt;

&lt;P&gt;For the element-by-element multiplication, I am afraid there's no specify function for matrix, but only vector. If you would like to improve the performance, you could try with multi-threading calculation by using&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#pragma omp parallel for
for (int i = 0; i &amp;lt; row; i++) {
    vdMul(col, a&lt;I&gt;, b&lt;I&gt;, y&lt;I&gt;);
}&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;More physical core you have for your CPU, the higher performance you will get. Please also provide the testing performance with your hardware information to us, we will see if the performance acceptable. Thank you.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 01:12:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Element-by-Element-matrix-multiplication/m-p/1096621#M23609</guid>
      <dc:creator>Zhen_Z_Intel</dc:creator>
      <dc:date>2017-02-16T01:12:00Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;...I have a simple task at</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Element-by-Element-matrix-multiplication/m-p/1096622#M23610</link>
      <description>&amp;gt;&amp;gt;...I have a simple task at hand. I want to compute an element-by-element multiplication of two matrices A and B.

If your matrices are stored as vectors, that is as &lt;STRONG&gt;1-D&lt;/STRONG&gt; data sets, like double dMxA[ size ], dMxB[ size ], etc,, then &lt;STRONG&gt;vdMul&lt;/STRONG&gt; needs to be used.

&lt;STRONG&gt;1-D&lt;/STRONG&gt; representation of a matrix is very efficient ( contiguous memory blocks ).</description>
      <pubDate>Fri, 17 Feb 2017 20:09:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Element-by-Element-matrix-multiplication/m-p/1096622#M23610</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2017-02-17T20:09:00Z</dc:date>
    </item>
    <item>
      <title>Quote:Sergey Kostrov wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Element-by-Element-matrix-multiplication/m-p/1096623#M23611</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Sergey Kostrov wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;gt;&amp;gt;...I have a simple task at hand. I want to compute an element-by-element multiplication of two matrices A and B.&lt;/P&gt;

&lt;P&gt;If your matrices are stored as vectors, that is as &lt;STRONG&gt;1-D&lt;/STRONG&gt; data sets, like double dMxA[ size ], dMxB[ size ], etc,, then &lt;STRONG&gt;vdMul&lt;/STRONG&gt; needs to be used.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;1-D&lt;/STRONG&gt; representation of a matrix is very efficient ( contiguous memory blocks ).&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;In this case you can even do hadamard with BLAS functions tbmv or sbmv. Both allow the input matrix to be stored in banded matrix form. With number of super-diagonals = 0 you only need to supply the diagonal, which in this case is one of the vectors&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2017 09:18:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Element-by-Element-matrix-multiplication/m-p/1096623#M23611</guid>
      <dc:creator>Mikhail_K_</dc:creator>
      <dc:date>2017-02-19T09:18:33Z</dc:date>
    </item>
  </channel>
</rss>

