<?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: call inv in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/call-inv/m-p/272800#M2781</link>
    <description>&lt;P&gt;If Y is the inverse matrix of X, then&amp;nbsp;Y*X = I, where I is the identity matrix that has 1s on the diagonal and 0s off the diagonal.&lt;/P&gt;
&lt;P&gt;The inverse matrix is used to solve matrix equation. For example, if you are given a square nxn matrix A and and an nx1 vector w, then you might want to know if there is a vector v such that&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A*v = w&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Under certain conditions, the solution is the vector v = inv(A)*w.&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2016 17:37:28 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2016-05-24T17:37:28Z</dc:date>
    <item>
      <title>call inv</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/call-inv/m-p/272799#M2780</link>
      <description>&lt;DIV align="center"&gt;&lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;b={&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;9&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;, &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;16&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;25&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;, &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;36&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;49&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;x={&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;7&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;5&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;, &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;16&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;9&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;};&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;a=sqrt(b); &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Courier New" size="2"&gt;&lt;FONT color="#008000" face="Courier New" size="2"&gt;&lt;FONT color="#008000" face="Courier New" size="2"&gt;* Assign square root of each element of B to corresponding element of A;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;y=inv(x); &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000" face="Courier New" size="2"&gt;&lt;FONT color="#008000" face="Courier New" size="2"&gt;&lt;FONT color="#008000" face="Courier New" size="2"&gt;* Call INV function to compute inverse matrix of X and assign results to Y;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;r=rank(x);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not know how inv is calculated. I do not know how I can get the follow numbers. Can you explain the function of inv?Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;-0.529412&lt;/TD&gt;&lt;TD&gt;0.2941176&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.9411765&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;-0.411765&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 May 2016 17:30:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/call-inv/m-p/272799#M2780</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-05-24T17:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: call inv</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/call-inv/m-p/272800#M2781</link>
      <description>&lt;P&gt;If Y is the inverse matrix of X, then&amp;nbsp;Y*X = I, where I is the identity matrix that has 1s on the diagonal and 0s off the diagonal.&lt;/P&gt;
&lt;P&gt;The inverse matrix is used to solve matrix equation. For example, if you are given a square nxn matrix A and and an nx1 vector w, then you might want to know if there is a vector v such that&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A*v = w&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Under certain conditions, the solution is the vector v = inv(A)*w.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 17:37:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/call-inv/m-p/272800#M2781</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-05-24T17:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: call inv</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/call-inv/m-p/272809#M2782</link>
      <description>&lt;P&gt;Thanks. I am not clear for some parts. Why I get negative numbers for inv?&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 17:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/call-inv/m-p/272809#M2782</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-05-24T17:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: call inv</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/call-inv/m-p/272815#M2783</link>
      <description>&lt;P&gt;Because the negative values are required so that X*inv(X) = I.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since your example is a 2x2 matrix, there is even a formula for the inverse. &amp;nbsp;for any numbers a,b,c, and d, define the matrix&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A = {a b, c d};&lt;/P&gt;
&lt;P&gt;Then&amp;nbsp;&lt;/P&gt;
&lt;P&gt;inv(A) = {d -b, -c a} / (ad-bc);&lt;/P&gt;
&lt;P&gt;So you can see that if&amp;nbsp;all the original elements are positive, then exactly two of the elements in the inverse must be negative.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 18:11:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/call-inv/m-p/272815#M2783</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-05-24T18:11:21Z</dc:date>
    </item>
  </channel>
</rss>

