<?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 Re: How can I normalize a vector in SAS/IML? in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-can-I-normalize-a-vector-in-SAS-IML/m-p/682925#M5281</link>
    <description>&lt;P&gt;If you used SAS/IML to get the eigenvector, then it is already normalized. All eigenvectors have unit L2 norm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you got the vector from somewhere else, Paige gives the correct answer for real eigenvectors.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the eigenvector is complex, write back, and we can help with that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Sep 2020 12:54:16 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2020-09-10T12:54:16Z</dc:date>
    <item>
      <title>How can I normalize a vector in SAS/IML?</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-can-I-normalize-a-vector-in-SAS-IML/m-p/682738#M5278</link>
      <description>&lt;P&gt;I got an eigenvector of a matrix and I need to normalize this vector but I don't know how. Anyone can help?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 12:46:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-can-I-normalize-a-vector-in-SAS-IML/m-p/682738#M5278</guid>
      <dc:creator>Amink</dc:creator>
      <dc:date>2020-09-10T12:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can i normolize avector in sas iml?</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-can-I-normalize-a-vector-in-SAS-IML/m-p/682743#M5279</link>
      <description>&lt;P&gt;You can use the NORM() function in PROC IML (and then divide the vector itself by its NORM)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=imlug&amp;amp;docsetTarget=imlug_langref_sect303.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=imlug&amp;amp;docsetTarget=imlug_langref_sect303.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 19:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-can-I-normalize-a-vector-in-SAS-IML/m-p/682743#M5279</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-09T19:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can i normolize avector in sas iml?</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-can-I-normalize-a-vector-in-SAS-IML/m-p/682911#M5280</link>
      <description>Calling &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;</description>
      <pubDate>Thu, 10 Sep 2020 11:53:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-can-I-normalize-a-vector-in-SAS-IML/m-p/682911#M5280</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-09-10T11:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I normalize a vector in SAS/IML?</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-can-I-normalize-a-vector-in-SAS-IML/m-p/682925#M5281</link>
      <description>&lt;P&gt;If you used SAS/IML to get the eigenvector, then it is already normalized. All eigenvectors have unit L2 norm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you got the vector from somewhere else, Paige gives the correct answer for real eigenvectors.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the eigenvector is complex, write back, and we can help with that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 12:54:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-can-I-normalize-a-vector-in-SAS-IML/m-p/682925#M5281</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-09-10T12:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can i normolize avector in sas iml?</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-can-I-normalize-a-vector-in-SAS-IML/m-p/683066#M5282</link>
      <description>&lt;P&gt;Thanks so much&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 20:12:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-can-I-normalize-a-vector-in-SAS-IML/m-p/683066#M5282</guid>
      <dc:creator>Amink</dc:creator>
      <dc:date>2020-09-10T20:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I normalize a vector in SAS/IML?</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-can-I-normalize-a-vector-in-SAS-IML/m-p/683068#M5283</link>
      <description>&lt;P&gt;First thank you so much Rick&lt;/P&gt;&lt;P&gt;Actually I got my eigenvectors from sas/iml. However i like to learn more, so if you do not mind, could you please share how can i get normalized vectors if they are complex.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 20:19:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-can-I-normalize-a-vector-in-SAS-IML/m-p/683068#M5283</guid>
      <dc:creator>Amink</dc:creator>
      <dc:date>2020-09-10T20:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I normalize a vector in SAS/IML?</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-can-I-normalize-a-vector-in-SAS-IML/m-p/683072#M5284</link>
      <description>&lt;P&gt;If x + i*y is a complex vector, then the norm is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;|| x + i*y || =&amp;nbsp; (x+i*y)*(x-i*y) = sqrt(sum(x##2 + y##2) = sqrt(norm(x) + norm(y))&lt;/P&gt;
&lt;P&gt;Thus, either of the following will work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc iml
/* For a complex vector x + i*y, the complex norm is 
   (x+i*y)*(x-i*y) = sqrt(x##2 + y##2)
*/
x = {1,  1, 3};
y = {2, -2, 0};

norm1 = sqrt( sum(x##2 + y##2) );
norm2 = sqrt(norm(x)**2 + norm(y)**2);
print norm1 norm2;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Sep 2020 20:44:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-can-I-normalize-a-vector-in-SAS-IML/m-p/683072#M5284</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-09-10T20:44:01Z</dc:date>
    </item>
  </channel>
</rss>

