<?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: matrix Product by IML in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/matrix-Product-by-IML/m-p/149219#M1340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Feb 2015 15:24:18 GMT</pubDate>
    <dc:creator>freeliu</dc:creator>
    <dc:date>2015-02-04T15:24:18Z</dc:date>
    <item>
      <title>matrix Product by IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/matrix-Product-by-IML/m-p/149216#M1337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data a; &lt;/P&gt;&lt;P&gt;input investor $ y;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;fdcd1 0.006157039&lt;/P&gt;&lt;P&gt;fdcd2 0.001510721&lt;/P&gt;&lt;P&gt;fdcd3 0.35458659&lt;/P&gt;&lt;P&gt;fdcd4 -0.04071315&lt;/P&gt;&lt;P&gt;fdcd5 -0.01494467&lt;/P&gt;&lt;P&gt;fdcd6&amp;nbsp;&amp;nbsp; -0.009&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The matrix is like this( Note: the colname of matrix is a mess of vector. Their orders are different).&amp;nbsp; How to give their Product?&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fdcd1 fdcd3 fdcd2 fdcd5 fdcd4 fdcd6&lt;/P&gt;&lt;P&gt;0.79 0.01 1.09 3.75 0.82 0.43&lt;/P&gt;&lt;P&gt;1.4 0.23 0.86 0.88 1.44 1.19&lt;/P&gt;&lt;P&gt;0 0 0 0 0 0&lt;/P&gt;&lt;P&gt;0 0.09 0 0 0 0.02&lt;/P&gt;&lt;P&gt;0.33 0 0 0 0.33 0.29&lt;/P&gt;&lt;P&gt;0.28 0 0 0 0.27 0.42&lt;/P&gt;&lt;P&gt;0 0 0 0 0 0&lt;/P&gt;&lt;P&gt;0 0 0 0 0 0.04&lt;/P&gt;&lt;P&gt;0 0 0 0 0 0&lt;/P&gt;&lt;P&gt;0.14 0.19 0 0 0.14 0.1&lt;/P&gt;&lt;P&gt;0 0 0 0 0 0&lt;/P&gt;&lt;P&gt;0.19 0 0 0 0.19 0.17&lt;/P&gt;&lt;P&gt;0 0 0 0 0 0&lt;/P&gt;&lt;P&gt;0.12 0.1 0 0 0.12 0.15&lt;/P&gt;&lt;P&gt;0 0 0 0 0 0.06&lt;/P&gt;&lt;P&gt;0 0 0 0 0 0&lt;/P&gt;&lt;P&gt;0.1 0 0 0 0.1 0.09&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 15:11:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/matrix-Product-by-IML/m-p/149216#M1337</guid>
      <dc:creator>freeliu</dc:creator>
      <dc:date>2015-02-02T15:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: matrix Product by IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/matrix-Product-by-IML/m-p/149217#M1338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normally I think of the "matrix product" as the multiplication of two (or more) matrices, but you only seem to have one matrix. Could you explain further what you want?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 15:26:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/matrix-Product-by-IML/m-p/149217#M1338</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-02-02T15:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: matrix Product by IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/matrix-Product-by-IML/m-p/149218#M1339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you want the product of the matrix (in the second part) with the vector (in the first part). The problem you are having is that the columns of the matrix are not in the same order as the elements in the vector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read in the investors and the y vector from data set A.&amp;nbsp; Then use the INVESTORS vector to specify the order of the variables when you read the matrix, which I assume is in a data set named M:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc iml;&lt;BR /&gt;use a;&lt;BR /&gt;read all var {investor y};&lt;BR /&gt;close a;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use m;&lt;BR /&gt;read all var investor into X;&amp;nbsp; /* read variables in order contained in INVESTOR */&lt;BR /&gt;close m;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v = X*y;&amp;nbsp;&amp;nbsp; /* matrix-vector product */&lt;BR /&gt;print v;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 15:41:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/matrix-Product-by-IML/m-p/149218#M1339</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-02-02T15:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: matrix Product by IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/matrix-Product-by-IML/m-p/149219#M1340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 15:24:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/matrix-Product-by-IML/m-p/149219#M1340</guid>
      <dc:creator>freeliu</dc:creator>
      <dc:date>2015-02-04T15:24:18Z</dc:date>
    </item>
  </channel>
</rss>

