<?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 Vector quantization memory problem in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Vector-quantization-memory-problem/m-p/922892#M15899</link>
    <description>&lt;DIV&gt;HI,&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I am using the function &lt;FONT size="2"&gt;ippsCdbkInitAlloc_L2_32f with parameter I&lt;FONT size="2"&gt;PP_CDBK_KMEANS_NUM to train the codebook for VQ.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I would like to know what is the difference between the parameter "width" and the parameter "step".&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Is step the length in bytes of a row of the input matrix?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;If no what is the use of "step". Is it relatedto the memory allongnment of the input data?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;If yes do you have an example of how toallocate the memory for the input?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Thanks&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Emilio&lt;/FONT&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 09 Jun 2006 23:05:39 GMT</pubDate>
    <dc:creator>emilio_maggio</dc:creator>
    <dc:date>2006-06-09T23:05:39Z</dc:date>
    <item>
      <title>Vector quantization memory problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Vector-quantization-memory-problem/m-p/922892#M15899</link>
      <description>&lt;DIV&gt;HI,&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I am using the function &lt;FONT size="2"&gt;ippsCdbkInitAlloc_L2_32f with parameter I&lt;FONT size="2"&gt;PP_CDBK_KMEANS_NUM to train the codebook for VQ.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I would like to know what is the difference between the parameter "width" and the parameter "step".&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Is step the length in bytes of a row of the input matrix?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;If no what is the use of "step". Is it relatedto the memory allongnment of the input data?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;If yes do you have an example of how toallocate the memory for the input?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Thanks&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Emilio&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Jun 2006 23:05:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Vector-quantization-memory-problem/m-p/922892#M15899</guid>
      <dc:creator>emilio_maggio</dc:creator>
      <dc:date>2006-06-09T23:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Vector quantization memory problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Vector-quantization-memory-problem/m-p/922893#M15900</link>
      <description>&lt;P&gt;hi, Emilio,&lt;/P&gt;
&lt;P&gt;Row step in all functions from ippsr.h are in array elements, not in bytes.&lt;/P&gt;
&lt;P&gt;The goal of step argument is the memory alignment. width should be less than or equal to step.&lt;/P&gt;
&lt;P&gt;To allocate the aligned memory you can use ippsMalloc_32f function and step that is the multiple of 4 for 32f data or multiple of 8 for 16s data.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;step=(width+3)&amp;amp;(~3);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;ptr=ippsMalloc_32f(height*step);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Alexander&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2006 19:27:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Vector-quantization-memory-problem/m-p/922893#M15900</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2006-07-03T19:27:32Z</dc:date>
    </item>
  </channel>
</rss>

