<?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 Help with ippmL2Norm and zero vectors in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Help-with-ippmL2Norm-and-zero-vectors/m-p/913593#M14667</link>
    <description>&lt;PRE&gt;&lt;FONT face="Times New Roman" size="3"&gt;Hi, I was trying to compute the norm of some vector and vector arrays.&lt;BR /&gt;My question is: why the function "ippmL2Norm" returns -1.#IO when&lt;BR /&gt;in input there is a vector with all 0 components?&lt;BR /&gt;According to the formula on the manual I think that it should return 0.&lt;BR /&gt;&lt;BR /&gt;This is the piece of code that I use for test:&lt;/FONT&gt;&lt;BR /&gt;&lt;PRE&gt;Ipp32f c[5*3] = { 1.0f, 2.0f, 3.0f,&lt;BR /&gt;		  0.0f, 0.0f, 0.0f,&lt;BR /&gt;		  7.0f, 8.0f, 9.0f,&lt;BR /&gt;		  3.0f, 1.0f, 8.0f,&lt;BR /&gt;		  9.0f, 6.0f, 4.0f }; &lt;BR /&gt;Ipp32f d[5*3] = { 3.0f, 5.0f, 6.0f,&lt;BR /&gt;		  5.0f, 1.0f, 1.0f,&lt;BR /&gt;		  7.0f, 8.0f, 3.0f,&lt;BR /&gt;		  1.0f, 9.0f, 5.0f,&lt;BR /&gt;		  2.0f, 2.0f, 6.0f };&lt;BR /&gt;Ipp32f e[3]   = { 0.0f, 0.0f, 0.0f };&lt;BR /&gt;&lt;BR /&gt;int cstride0 = sizeof(Ipp32f)*3;&lt;BR /&gt;int cstride2 = sizeof(Ipp32f);&lt;BR /&gt;int dstride0 = sizeof(Ipp32f)*3;&lt;BR /&gt;int dstride2 = sizeof(Ipp32f);&lt;BR /&gt;int estride2 = sizeof(Ipp32f);&lt;BR /&gt;	&lt;BR /&gt;int len   = 3;&lt;BR /&gt;int count = 5;&lt;BR /&gt;int i     = 0;&lt;BR /&gt;	&lt;BR /&gt;Ipp32f dst[5];&lt;BR /&gt;Ipp32f c_nor[5];&lt;BR /&gt;Ipp32f d_nor[5];&lt;BR /&gt;Ipp32f e_nor;&lt;BR /&gt;&lt;BR /&gt;ippmDotProduct_vava_32f(c, cstride0, cstride2, d, dstride0, dstride2, dst, len, count);&lt;BR /&gt;&lt;BR /&gt;ippmL2Norm_va_32f(c, cstride0, cstride2, c_nor, len, count);&lt;BR /&gt;ippmL2Norm_va_32f(d, dstride0, dstride2, d_nor, len, count);&lt;BR /&gt;ippmL2Norm_v_32f(e, estride2, &amp;amp;e_nor, len);&lt;BR /&gt;&lt;BR /&gt;printf("Dot Prod
");&lt;BR /&gt;for(i=0;i&amp;lt;5;i++)&lt;BR /&gt;	printf("[%d] = %.3f
",i,dst&lt;I&gt;);&lt;BR /&gt;printf("
Norm of vector array c:
");&lt;BR /&gt;for(i=0;i&amp;lt;5;i++)&lt;BR /&gt;	printf("[%d] = %.3f
",i,c_nor&lt;I&gt;);	&lt;BR /&gt;printf("
Norm of vector array d:
");&lt;BR /&gt;for(i=0;i&amp;lt;5;i++)&lt;BR /&gt;	printf("[%d] = %.3f
",i,d_nor&lt;I&gt;);&lt;BR /&gt;printf("
Norm of vector e: %.3f", e_nor);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="Times New Roman"&gt;And in output I have:&lt;BR /&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;PRE&gt;&lt;I&gt;&lt;I&gt;&lt;I&gt;Dot Prod&lt;BR /&gt;[0] = 31.000&lt;BR /&gt;[1] = 0.000&lt;BR /&gt;[2] = 140.000&lt;BR /&gt;[3] = 52.000&lt;BR /&gt;[4] = 54.000&lt;BR /&gt;&lt;BR /&gt;Norm of vector array c:&lt;BR /&gt;[0] = 3.742&lt;BR /&gt;[1] = -1.#IO&lt;BR /&gt;[2] = 13.928&lt;BR /&gt;[3] = 8.602&lt;BR /&gt;[4] = 11.533&lt;BR /&gt;&lt;BR /&gt;Norm of vector array d:&lt;BR /&gt;[0] = 8.367&lt;BR /&gt;[1] = 5.196&lt;BR /&gt;[2] = 11.045&lt;BR /&gt;[3] = 10.344&lt;BR /&gt;[4] = 6.633&lt;BR /&gt;&lt;BR /&gt;Norm of vector e: -1.#IO&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't understand where is my error, thank you for your help.&lt;BR /&gt;Samuele.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 11 Mar 2008 11:07:04 GMT</pubDate>
    <dc:creator>samueleforconi</dc:creator>
    <dc:date>2008-03-11T11:07:04Z</dc:date>
    <item>
      <title>Help with ippmL2Norm and zero vectors</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Help-with-ippmL2Norm-and-zero-vectors/m-p/913593#M14667</link>
      <description>&lt;PRE&gt;&lt;FONT face="Times New Roman" size="3"&gt;Hi, I was trying to compute the norm of some vector and vector arrays.&lt;BR /&gt;My question is: why the function "ippmL2Norm" returns -1.#IO when&lt;BR /&gt;in input there is a vector with all 0 components?&lt;BR /&gt;According to the formula on the manual I think that it should return 0.&lt;BR /&gt;&lt;BR /&gt;This is the piece of code that I use for test:&lt;/FONT&gt;&lt;BR /&gt;&lt;PRE&gt;Ipp32f c[5*3] = { 1.0f, 2.0f, 3.0f,&lt;BR /&gt;		  0.0f, 0.0f, 0.0f,&lt;BR /&gt;		  7.0f, 8.0f, 9.0f,&lt;BR /&gt;		  3.0f, 1.0f, 8.0f,&lt;BR /&gt;		  9.0f, 6.0f, 4.0f }; &lt;BR /&gt;Ipp32f d[5*3] = { 3.0f, 5.0f, 6.0f,&lt;BR /&gt;		  5.0f, 1.0f, 1.0f,&lt;BR /&gt;		  7.0f, 8.0f, 3.0f,&lt;BR /&gt;		  1.0f, 9.0f, 5.0f,&lt;BR /&gt;		  2.0f, 2.0f, 6.0f };&lt;BR /&gt;Ipp32f e[3]   = { 0.0f, 0.0f, 0.0f };&lt;BR /&gt;&lt;BR /&gt;int cstride0 = sizeof(Ipp32f)*3;&lt;BR /&gt;int cstride2 = sizeof(Ipp32f);&lt;BR /&gt;int dstride0 = sizeof(Ipp32f)*3;&lt;BR /&gt;int dstride2 = sizeof(Ipp32f);&lt;BR /&gt;int estride2 = sizeof(Ipp32f);&lt;BR /&gt;	&lt;BR /&gt;int len   = 3;&lt;BR /&gt;int count = 5;&lt;BR /&gt;int i     = 0;&lt;BR /&gt;	&lt;BR /&gt;Ipp32f dst[5];&lt;BR /&gt;Ipp32f c_nor[5];&lt;BR /&gt;Ipp32f d_nor[5];&lt;BR /&gt;Ipp32f e_nor;&lt;BR /&gt;&lt;BR /&gt;ippmDotProduct_vava_32f(c, cstride0, cstride2, d, dstride0, dstride2, dst, len, count);&lt;BR /&gt;&lt;BR /&gt;ippmL2Norm_va_32f(c, cstride0, cstride2, c_nor, len, count);&lt;BR /&gt;ippmL2Norm_va_32f(d, dstride0, dstride2, d_nor, len, count);&lt;BR /&gt;ippmL2Norm_v_32f(e, estride2, &amp;amp;e_nor, len);&lt;BR /&gt;&lt;BR /&gt;printf("Dot Prod
");&lt;BR /&gt;for(i=0;i&amp;lt;5;i++)&lt;BR /&gt;	printf("[%d] = %.3f
",i,dst&lt;I&gt;);&lt;BR /&gt;printf("
Norm of vector array c:
");&lt;BR /&gt;for(i=0;i&amp;lt;5;i++)&lt;BR /&gt;	printf("[%d] = %.3f
",i,c_nor&lt;I&gt;);	&lt;BR /&gt;printf("
Norm of vector array d:
");&lt;BR /&gt;for(i=0;i&amp;lt;5;i++)&lt;BR /&gt;	printf("[%d] = %.3f
",i,d_nor&lt;I&gt;);&lt;BR /&gt;printf("
Norm of vector e: %.3f", e_nor);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="Times New Roman"&gt;And in output I have:&lt;BR /&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;PRE&gt;&lt;I&gt;&lt;I&gt;&lt;I&gt;Dot Prod&lt;BR /&gt;[0] = 31.000&lt;BR /&gt;[1] = 0.000&lt;BR /&gt;[2] = 140.000&lt;BR /&gt;[3] = 52.000&lt;BR /&gt;[4] = 54.000&lt;BR /&gt;&lt;BR /&gt;Norm of vector array c:&lt;BR /&gt;[0] = 3.742&lt;BR /&gt;[1] = -1.#IO&lt;BR /&gt;[2] = 13.928&lt;BR /&gt;[3] = 8.602&lt;BR /&gt;[4] = 11.533&lt;BR /&gt;&lt;BR /&gt;Norm of vector array d:&lt;BR /&gt;[0] = 8.367&lt;BR /&gt;[1] = 5.196&lt;BR /&gt;[2] = 11.045&lt;BR /&gt;[3] = 10.344&lt;BR /&gt;[4] = 6.633&lt;BR /&gt;&lt;BR /&gt;Norm of vector e: -1.#IO&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't understand where is my error, thank you for your help.&lt;BR /&gt;Samuele.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Mar 2008 11:07:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Help-with-ippmL2Norm-and-zero-vectors/m-p/913593#M14667</guid>
      <dc:creator>samueleforconi</dc:creator>
      <dc:date>2008-03-11T11:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ippmL2Norm and zero vectors</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Help-with-ippmL2Norm-and-zero-vectors/m-p/913594#M14668</link>
      <description>&lt;P&gt;Hi Samuele,&lt;/P&gt;
&lt;P&gt;could you please specify what version of IPP do you use, how do you link that and what is your target platform and OS?&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2008 21:52:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Help-with-ippmL2Norm-and-zero-vectors/m-p/913594#M14668</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2008-03-24T21:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ippmL2Norm and zero vectors</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Help-with-ippmL2Norm-and-zero-vectors/m-p/913595#M14669</link>
      <description>Hi,&lt;BR /&gt;thank you for your answer.&lt;BR /&gt;&lt;BR /&gt;I'm actually using Intel IPP v5.2 for Windows on IA-32.&lt;BR /&gt;I use dynamic linkage (to ippm.lib from directory stublib).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Samuele.</description>
      <pubDate>Tue, 25 Mar 2008 00:10:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Help-with-ippmL2Norm-and-zero-vectors/m-p/913595#M14669</guid>
      <dc:creator>samueleforconi</dc:creator>
      <dc:date>2008-03-25T00:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help with ippmL2Norm and zero vectors</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Help-with-ippmL2Norm-and-zero-vectors/m-p/913596#M14670</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;there is comment from our expert:&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;Function ippmL2Norm really returns -1.#IO in case of input vector with all 0 components for vector length =3,4,5,6&lt;SPAN&gt; &lt;/SPAN&gt;on IA32&amp;amp;EM64t architecture. &lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;This implementation error will be corrected to IPP 6.0 version.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Mar 2008 21:13:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Help-with-ippmL2Norm-and-zero-vectors/m-p/913596#M14670</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2008-03-30T21:13:21Z</dc:date>
    </item>
  </channel>
</rss>

