<?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 ippiMulC in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiMulC/m-p/827523#M5289</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Please check with documentation the function parameter types. The function ippiMulC_16s_C1R takes source as a pointer to signed 16-bit integer array while you supply array of 8-bit integers (I think the piece of code you use as an example should not even compile).&lt;BR /&gt;&lt;BR /&gt;Also, the result of casting -0.565 to 16-bit integer is 0 is not it? Then result of multiplication of any number with zero expected to be zero, correct?&lt;BR /&gt;&lt;BR /&gt;You have to use functions which produce floating point result instead of function which produce 16-bit integer result. For example, you may try to use ippiMulC_32f_C1R function (it will require you to convert your 8-bit integer image into 32-bit floating point format with ippiConvert_8u32f_C1R function).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt; Vladimir</description>
    <pubDate>Sat, 08 Jan 2011 20:56:00 GMT</pubDate>
    <dc:creator>Vladimir_Dudnik</dc:creator>
    <dc:date>2011-01-08T20:56:00Z</dc:date>
    <item>
      <title>ippiMulC</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiMulC/m-p/827522#M5288</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I'm learning more and more how to use ipp, which is a great optimized library. &lt;BR /&gt;However, I still have sometimes some problems to understand the results that I get.&lt;BR /&gt;For example, I'm using ippiMulC to multiply a matrix by a negative floating constant. More precisely, here is my code:&lt;BR /&gt;&lt;BR /&gt;Ipp8u src[6*2]={255,123,134,76,65,127,&lt;BR /&gt; 128,34,78,84,121,149};&lt;BR /&gt;Ipp16s dst[6*2];&lt;BR /&gt;IppiSize size={6,2};&lt;BR /&gt;ippiMulC_16s_C1RSfs(src, 6, (Ipp16s) (-0.565), dst, 6, size,0);&lt;BR /&gt;&lt;BR /&gt;int i,j;&lt;BR /&gt;for (i=0;i&amp;lt;2;i++)&lt;BR /&gt;{&lt;BR /&gt; for (j=0;j&amp;lt;6;j++)&lt;BR /&gt; {&lt;BR /&gt; printf("%d ", dst[j+i*6]);&lt;BR /&gt; }&lt;BR /&gt; printf("\\n");&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;The result is:&lt;BR /&gt;&lt;BR /&gt;0 0 0 0 0 0&lt;BR /&gt;0 0 0 -21279 -22152 -16420&lt;BR /&gt;&lt;BR /&gt;How could I get a floating result (32f uses only complex) as close as possible from the expected answer?&lt;BR /&gt;Should I transform -0.565 into a complex number? Should I use divC instead of mulC?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 08 Jan 2011 15:29:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiMulC/m-p/827522#M5288</guid>
      <dc:creator>bibi88</dc:creator>
      <dc:date>2011-01-08T15:29:07Z</dc:date>
    </item>
    <item>
      <title>ippiMulC</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiMulC/m-p/827523#M5289</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Please check with documentation the function parameter types. The function ippiMulC_16s_C1R takes source as a pointer to signed 16-bit integer array while you supply array of 8-bit integers (I think the piece of code you use as an example should not even compile).&lt;BR /&gt;&lt;BR /&gt;Also, the result of casting -0.565 to 16-bit integer is 0 is not it? Then result of multiplication of any number with zero expected to be zero, correct?&lt;BR /&gt;&lt;BR /&gt;You have to use functions which produce floating point result instead of function which produce 16-bit integer result. For example, you may try to use ippiMulC_32f_C1R function (it will require you to convert your 8-bit integer image into 32-bit floating point format with ippiConvert_8u32f_C1R function).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt; Vladimir</description>
      <pubDate>Sat, 08 Jan 2011 20:56:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiMulC/m-p/827523#M5289</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2011-01-08T20:56:00Z</dc:date>
    </item>
    <item>
      <title>ippiMulC</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiMulC/m-p/827524#M5290</link>
      <description>Thanks to your advices, it works now quite well! Thank you!</description>
      <pubDate>Sun, 09 Jan 2011 00:20:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiMulC/m-p/827524#M5290</guid>
      <dc:creator>bibi88</dc:creator>
      <dc:date>2011-01-09T00:20:15Z</dc:date>
    </item>
  </channel>
</rss>

