<?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 creating a module in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/creating-a-module/m-p/143092#M1194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so I've just been messing around trying to figure out how to write modules and I'm trying to create a module that will input three matrices that are all 3x3 and then returns the one with the largest determinant. So far I've just created a module that takes the determinant of whatever matrix I tell it too but I can't figure out how to do anything else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc iml;&lt;/P&gt;&lt;P&gt;start module(A, D);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D= det(A);&lt;/P&gt;&lt;P&gt;finish; &lt;/P&gt;&lt;P&gt;*creating a matrices;&lt;/P&gt;&lt;P&gt;A = {5 8 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 6 4, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6 6 6};&lt;/P&gt;&lt;P&gt;B = {5 8 9,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 4 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 2 2};&lt;/P&gt;&lt;P&gt;C = {4 4 4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9 8 7,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 3 3};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*calls the module from above;&lt;/P&gt;&lt;P&gt;run module(A, D);&lt;/P&gt;&lt;P&gt;print A; &lt;/P&gt;&lt;P&gt;print D;&lt;/P&gt;&lt;P&gt;run module(B, D);&lt;/P&gt;&lt;P&gt;print B;&lt;/P&gt;&lt;P&gt;print D;&lt;/P&gt;&lt;P&gt;run module(C, D);&lt;/P&gt;&lt;P&gt;print C;&lt;/P&gt;&lt;P&gt;print D;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 May 2014 21:35:48 GMT</pubDate>
    <dc:creator>bri11</dc:creator>
    <dc:date>2014-05-02T21:35:48Z</dc:date>
    <item>
      <title>creating a module</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/creating-a-module/m-p/143092#M1194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so I've just been messing around trying to figure out how to write modules and I'm trying to create a module that will input three matrices that are all 3x3 and then returns the one with the largest determinant. So far I've just created a module that takes the determinant of whatever matrix I tell it too but I can't figure out how to do anything else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc iml;&lt;/P&gt;&lt;P&gt;start module(A, D);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D= det(A);&lt;/P&gt;&lt;P&gt;finish; &lt;/P&gt;&lt;P&gt;*creating a matrices;&lt;/P&gt;&lt;P&gt;A = {5 8 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 6 4, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6 6 6};&lt;/P&gt;&lt;P&gt;B = {5 8 9,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 4 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 2 2};&lt;/P&gt;&lt;P&gt;C = {4 4 4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9 8 7,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 3 3};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*calls the module from above;&lt;/P&gt;&lt;P&gt;run module(A, D);&lt;/P&gt;&lt;P&gt;print A; &lt;/P&gt;&lt;P&gt;print D;&lt;/P&gt;&lt;P&gt;run module(B, D);&lt;/P&gt;&lt;P&gt;print B;&lt;/P&gt;&lt;P&gt;print D;&lt;/P&gt;&lt;P&gt;run module(C, D);&lt;/P&gt;&lt;P&gt;print C;&lt;/P&gt;&lt;P&gt;print D;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 21:35:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/creating-a-module/m-p/143092#M1194</guid>
      <dc:creator>bri11</dc:creator>
      <dc:date>2014-05-02T21:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: creating a module</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/creating-a-module/m-p/143093#M1195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a very similar thread here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="active_link" href="https://communities.sas.com/message/209655"&gt;https://communities.sas.com/message/209655&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That you might want to look in to!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2014 08:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/creating-a-module/m-p/143093#M1195</guid>
      <dc:creator>IanWakeling</dc:creator>
      <dc:date>2014-05-03T08:19:55Z</dc:date>
    </item>
  </channel>
</rss>

