<?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 You are right, you may use  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-implement-numpy-broadcast-mechanism-with-mkl/m-p/1126802#M25313</link>
    <description>&lt;P&gt;You are right, you may use&amp;nbsp; loop +cblas_dscal/vdSub&amp;nbsp;but this approach will not be efficient. current version of MKL doesn't provide such functionality,&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jan 2019 05:28:09 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2019-01-07T05:28:09Z</dc:date>
    <item>
      <title>How to implement numpy broadcast mechanism with mkl?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-implement-numpy-broadcast-mechanism-with-mkl/m-p/1126801#M25312</link>
      <description>&lt;P&gt;How to implement numpy broadcast mechanism with mkl?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;I have been confused, how to use mkl to efficiently implement the broadcast mechanism in numpy ((Element wise operator "+","-","*")?&lt;BR /&gt;such as&lt;BR /&gt;2-D array sub 1-D array&lt;BR /&gt;[[1,2,3],&lt;BR /&gt;[4,5,6],&lt;BR /&gt;[7,8,9]]&lt;BR /&gt;-&lt;BR /&gt;[1, 2, 3]&lt;BR /&gt;=&lt;BR /&gt;[[0, 0, 0],&lt;BR /&gt;[3, 3, 3],&lt;BR /&gt;[6, 6, 6]]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And the second operation (can be understood as a matrix multiplied by a diagonal matrix)&lt;BR /&gt;2-D array multiply 1-D array(Element wise multiply )&lt;BR /&gt;[[1,2,3],&lt;BR /&gt;[4,5,6],&lt;BR /&gt;[7,8,9]]&lt;BR /&gt;*&lt;BR /&gt;[1, 2, 3]&lt;BR /&gt;=&lt;BR /&gt;[[1, 4, 9],&lt;BR /&gt;[4, 10, 18],&lt;BR /&gt;[7, 16, 27]]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried to implement with the for loop +cblas_dscal/vdSub&lt;BR /&gt;But I think this is not efficient, I don't know if there is any better implementation.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 14:47:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-implement-numpy-broadcast-mechanism-with-mkl/m-p/1126801#M25312</guid>
      <dc:creator>xianfeng__liang</dc:creator>
      <dc:date>2019-01-04T14:47:01Z</dc:date>
    </item>
    <item>
      <title>You are right, you may use </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-implement-numpy-broadcast-mechanism-with-mkl/m-p/1126802#M25313</link>
      <description>&lt;P&gt;You are right, you may use&amp;nbsp; loop +cblas_dscal/vdSub&amp;nbsp;but this approach will not be efficient. current version of MKL doesn't provide such functionality,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 05:28:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-implement-numpy-broadcast-mechanism-with-mkl/m-p/1126802#M25313</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2019-01-07T05:28:09Z</dc:date>
    </item>
    <item>
      <title>in the case if user</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-implement-numpy-broadcast-mechanism-with-mkl/m-p/1126803#M25314</link>
      <description>&lt;P&gt;in the case if user experiences some performance problem when using numpy, scipy or etc -- Our recommendation to try optimized version of Python where many of math operations are optimized by Intel Performance libraries (IPP, MKL and DAAL) as a backend.&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/en-us/distribution-for-python" target="_blank"&gt;https://software.intel.com/en-us/distribution-for-python&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 05:32:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-implement-numpy-broadcast-mechanism-with-mkl/m-p/1126803#M25314</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2019-01-07T05:32:00Z</dc:date>
    </item>
  </channel>
</rss>

