<?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: matrices in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/matrices/m-p/140915#M1153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A quick way to add a constant to the diagonal elements of a matrix:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* add B to diagonal of a square matrix A */&lt;/P&gt;&lt;P&gt;C = A + diag(&amp;nbsp; j(nrow(A),&amp;nbsp; 1,&amp;nbsp;&amp;nbsp; B)&amp;nbsp; );&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 May 2014 19:26:13 GMT</pubDate>
    <dc:creator>Hutch_sas</dc:creator>
    <dc:date>2014-05-01T19:26:13Z</dc:date>
    <item>
      <title>matrices</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/matrices/m-p/140914#M1152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="padding: 0 15px; color: #333333; font-family: Arial, sans-serif;"&gt;How would I write a subrountine that takes 2 parameters (a constant and a square matrix). Then adds that constant to the every element of the diagonal of the matrix, and passes the results back in a new parameter?&lt;/P&gt;&lt;P style="padding: 0 15px; color: #333333; font-family: Arial, sans-serif;"&gt;Then out puts the new matrix after the subtracted constant&lt;/P&gt;&lt;P style="padding: 0 15px; color: #333333; font-family: Arial, sans-serif;"&gt;I have the general idea but getting stuck on the diagonal part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 17:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/matrices/m-p/140914#M1152</guid>
      <dc:creator>arbongard</dc:creator>
      <dc:date>2014-05-01T17:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: matrices</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/matrices/m-p/140915#M1153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A quick way to add a constant to the diagonal elements of a matrix:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* add B to diagonal of a square matrix A */&lt;/P&gt;&lt;P&gt;C = A + diag(&amp;nbsp; j(nrow(A),&amp;nbsp; 1,&amp;nbsp;&amp;nbsp; B)&amp;nbsp; );&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 19:26:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/matrices/m-p/140915#M1153</guid>
      <dc:creator>Hutch_sas</dc:creator>
      <dc:date>2014-05-01T19:26:13Z</dc:date>
    </item>
  </channel>
</rss>

