<?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 NORM function in PROC IML in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NORM-function-in-PROC-IML/m-p/126659#M976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure why I get the following error when I run the code that follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Invocation of unresolved module NORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc iml;&lt;/P&gt;&lt;P&gt;x = {1 2, 3 4};&lt;/P&gt;&lt;P&gt;print x;&lt;/P&gt;&lt;P&gt;mn1 = norm(x, "L1");&lt;/P&gt;&lt;P&gt;mnF = norm(x, "Frobenius");&lt;/P&gt;&lt;P&gt;mnInf = norm(x, "LInf");&lt;/P&gt;&lt;P&gt;print mnF;&lt;/P&gt;&lt;P&gt;print mn1;&lt;/P&gt;&lt;P&gt;run; quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2012 21:12:00 GMT</pubDate>
    <dc:creator>SlutskyFan</dc:creator>
    <dc:date>2012-11-14T21:12:00Z</dc:date>
    <item>
      <title>NORM function in PROC IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NORM-function-in-PROC-IML/m-p/126659#M976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure why I get the following error when I run the code that follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Invocation of unresolved module NORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc iml;&lt;/P&gt;&lt;P&gt;x = {1 2, 3 4};&lt;/P&gt;&lt;P&gt;print x;&lt;/P&gt;&lt;P&gt;mn1 = norm(x, "L1");&lt;/P&gt;&lt;P&gt;mnF = norm(x, "Frobenius");&lt;/P&gt;&lt;P&gt;mnInf = norm(x, "LInf");&lt;/P&gt;&lt;P&gt;print mnF;&lt;/P&gt;&lt;P&gt;print mn1;&lt;/P&gt;&lt;P&gt;run; quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 21:12:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NORM-function-in-PROC-IML/m-p/126659#M976</guid>
      <dc:creator>SlutskyFan</dc:creator>
      <dc:date>2012-11-14T21:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: NORM function in PROC IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NORM-function-in-PROC-IML/m-p/126660#M977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That function was introduced in SAS/IML 12.1 (SAS 9.2M2). You must be running an earlier version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, those functions are simple to program. Here they are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc iml;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;start matnorm(x, method);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; s = substr(upcase(method), 1, 4);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; isValid = (s="FROB" | s="L1" | s="LINF");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if ^isValid then return(.);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; if (s="FROB") then do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return( sqrt(x[##]) );&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; else if (s="L1") then do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return( max(x[+,]) );&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; else if (s="LINF") then do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return( max(x[,+]) );&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;finish;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x={1 2, 3 4};&lt;BR /&gt;mn1 = matnorm(x, "L1");&lt;BR /&gt;mnF = matnorm(x, "Frobenius");&lt;BR /&gt;mnInf = matnorm(x, "LInf");&lt;BR /&gt;print mn1 mnF mnInf;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 23:24:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NORM-function-in-PROC-IML/m-p/126660#M977</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2012-11-14T23:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: NORM function in PROC IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NORM-function-in-PROC-IML/m-p/126661#M978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="129106" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;: Did you mean 9.3M2?&amp;nbsp; I'm running SAS/OR 9.3_M1 (thus don't have 12) and they don't work for me either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 23:31:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NORM-function-in-PROC-IML/m-p/126661#M978</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-11-14T23:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: NORM function in PROC IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NORM-function-in-PROC-IML/m-p/126662#M979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again Rick. I've run into this issue because I'm actually playing around with some SNA stuff. I'm also looking at incorporating some of your code from your post: &lt;A class="active_link" href="http://blogs.sas.com/content/iml/2012/05/09/the-power-method/" title="http://blogs.sas.com/content/iml/2012/05/09/the-power-method/"&gt; The power method: compute only the largest eigenvalue of a matrix - The DO Loop &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 02:26:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NORM-function-in-PROC-IML/m-p/126662#M979</guid>
      <dc:creator>SlutskyFan</dc:creator>
      <dc:date>2012-11-15T02:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: NORM function in PROC IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NORM-function-in-PROC-IML/m-p/126663#M980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. Sorry for the typo. 12.1 is the most recent release of 9.3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 10:41:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NORM-function-in-PROC-IML/m-p/126663#M980</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2012-11-15T10:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: NORM function in PROC IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NORM-function-in-PROC-IML/m-p/126664#M981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right. Notice in that post I used the statement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; normZ = sqrt( z[##] );&lt;/P&gt;&lt;P&gt;I try to avoid using new features in my blog posts for about least 6 months after a release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 10:43:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NORM-function-in-PROC-IML/m-p/126664#M981</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2012-11-15T10:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: NORM function in PROC IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NORM-function-in-PROC-IML/m-p/126665#M982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THat's what I'll do. As a side note, I have SAS 9.3 TS1MO. I'm not sure what version of SAS IML I actually have. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 17:32:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/NORM-function-in-PROC-IML/m-p/126665#M982</guid>
      <dc:creator>SlutskyFan</dc:creator>
      <dc:date>2012-11-15T17:32:58Z</dc:date>
    </item>
  </channel>
</rss>

