<?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 Better way to compute phi0 + sigma*vector? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Better-way-to-compute-phi0-sigma-vector/m-p/1114606#M24571</link>
    <description>&lt;P abp="987"&gt;Hello!&lt;/P&gt;

&lt;P abp="987"&gt;I want to compute this quantity &lt;STRONG&gt;prob = phi0 + sigma*atilde&lt;/STRONG&gt;, where phi0 and sigma are scalars and atilde a vector 1xind. I have computed it like this:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;for(i=0;i&amp;lt;ind;i++){ones&lt;I&gt; = 1.0;}

&amp;nbsp;cblas_dcopy(ind, ones, 1, B, 1);
&amp;nbsp;cblas_dscal(ind, phi0, B, 1);
&amp;nbsp;cblas_dcopy(ind, atilde, 1, Bcan, 1);
&amp;nbsp;cblas_dscal(ind, sqrt(sigma2), Bcan, 1);
&amp;nbsp;vdAdd(ind, B, Bcan, prob);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to ask if there is a better way to do it.&lt;/P&gt;

&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jul 2016 00:23:29 GMT</pubDate>
    <dc:creator>Fiori</dc:creator>
    <dc:date>2016-07-01T00:23:29Z</dc:date>
    <item>
      <title>Better way to compute phi0 + sigma*vector?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Better-way-to-compute-phi0-sigma-vector/m-p/1114606#M24571</link>
      <description>&lt;P abp="987"&gt;Hello!&lt;/P&gt;

&lt;P abp="987"&gt;I want to compute this quantity &lt;STRONG&gt;prob = phi0 + sigma*atilde&lt;/STRONG&gt;, where phi0 and sigma are scalars and atilde a vector 1xind. I have computed it like this:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;for(i=0;i&amp;lt;ind;i++){ones&lt;I&gt; = 1.0;}

&amp;nbsp;cblas_dcopy(ind, ones, 1, B, 1);
&amp;nbsp;cblas_dscal(ind, phi0, B, 1);
&amp;nbsp;cblas_dcopy(ind, atilde, 1, Bcan, 1);
&amp;nbsp;cblas_dscal(ind, sqrt(sigma2), Bcan, 1);
&amp;nbsp;vdAdd(ind, B, Bcan, prob);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to ask if there is a better way to do it.&lt;/P&gt;

&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 00:23:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Better-way-to-compute-phi0-sigma-vector/m-p/1114606#M24571</guid>
      <dc:creator>Fiori</dc:creator>
      <dc:date>2016-07-01T00:23:29Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Better-way-to-compute-phi0-sigma-vector/m-p/1114607#M24572</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;you might want to have a look at Intel MKL VM v?LinearFrac() function with shifta=phi, scalea=sigma, a=atilde, scaleb=0, b declared, and shiftb=1.The additional details on the function and respective examples are available &lt;A href="https://software.intel.com/en-us/node/521774"&gt;https://software.intel.com/en-us/node/521774&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Andrey&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 05:55:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Better-way-to-compute-phi0-sigma-vector/m-p/1114607#M24572</guid>
      <dc:creator>Andrey_N_Intel</dc:creator>
      <dc:date>2016-07-01T05:55:10Z</dc:date>
    </item>
    <item>
      <title>You are the best!!! Thanks a</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Better-way-to-compute-phi0-sigma-vector/m-p/1114608#M24573</link>
      <description>&lt;P&gt;You are the best!!! Thanks a lot!!!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 18:47:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Better-way-to-compute-phi0-sigma-vector/m-p/1114608#M24573</guid>
      <dc:creator>Fiori</dc:creator>
      <dc:date>2016-07-01T18:47:42Z</dc:date>
    </item>
  </channel>
</rss>

