<?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 Working with Triangular Matrices in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Working-with-Triangular-Matrices/m-p/818219#M4472</link>
    <description>In my code, I do matrix multiplication of a square matrix (doubles) with a vector that has the same size as the square matrix dimension. The operation is such that I only need to do matrix math for the lower triangle values of the matrix including the main diagonal (sometimes it's ones, sometimes it's not).&lt;BR /&gt;&lt;BR /&gt;So far, I used the general matrix MKL function dgemv to perform the entire matrix multiplication by the vector while zeroing out the upper triangle of the matrix values so these elements have no effect upon the result vector.&lt;BR /&gt;&lt;BR /&gt;Behind the scenes, what's the difference between using dgemv as I described above and dtrmv to perform this operation? Is dtrmv faster? Without using parallelism which MKL function is the fastest one to use for my operation?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
    <pubDate>Mon, 21 May 2012 19:32:45 GMT</pubDate>
    <dc:creator>bstrouse</dc:creator>
    <dc:date>2012-05-21T19:32:45Z</dc:date>
    <item>
      <title>Working with Triangular Matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Working-with-Triangular-Matrices/m-p/818219#M4472</link>
      <description>In my code, I do matrix multiplication of a square matrix (doubles) with a vector that has the same size as the square matrix dimension. The operation is such that I only need to do matrix math for the lower triangle values of the matrix including the main diagonal (sometimes it's ones, sometimes it's not).&lt;BR /&gt;&lt;BR /&gt;So far, I used the general matrix MKL function dgemv to perform the entire matrix multiplication by the vector while zeroing out the upper triangle of the matrix values so these elements have no effect upon the result vector.&lt;BR /&gt;&lt;BR /&gt;Behind the scenes, what's the difference between using dgemv as I described above and dtrmv to perform this operation? Is dtrmv faster? Without using parallelism which MKL function is the fastest one to use for my operation?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 21 May 2012 19:32:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Working-with-Triangular-Matrices/m-p/818219#M4472</guid>
      <dc:creator>bstrouse</dc:creator>
      <dc:date>2012-05-21T19:32:45Z</dc:date>
    </item>
    <item>
      <title>Working with Triangular Matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Working-with-Triangular-Matrices/m-p/818220#M4473</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;dtrmv will only use upper or lower triangle data, but it does not assume the upper or lower triangle data is 0. For your case, it looks you can zero the upper data, and then use dgemv. But using dtrmv, it may create a different result. &lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Chao&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2012 03:22:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Working-with-Triangular-Matrices/m-p/818220#M4473</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2012-05-23T03:22:19Z</dc:date>
    </item>
    <item>
      <title>Working with Triangular Matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Working-with-Triangular-Matrices/m-p/818221#M4474</link>
      <description>I did an experiment where I used dgemv with a square matrix with the upper triangle all zeroed out. I then used dtrmv. It appeared to be slightly faster. I was just wondering if dtrmv multiplied less elements in the matrix than dgemv does (multiplying every matrix element). It appears to do so.</description>
      <pubDate>Wed, 23 May 2012 05:03:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Working-with-Triangular-Matrices/m-p/818221#M4474</guid>
      <dc:creator>bstrouse</dc:creator>
      <dc:date>2012-05-23T05:03:44Z</dc:date>
    </item>
    <item>
      <title>Working with Triangular Matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Working-with-Triangular-Matrices/m-p/818222#M4475</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;yes, dtrmv multiplied less elements as it is assuming the symmetric matrix, the dgemv will take the full matrix for multiplication. But have you checkif the result is right for you? &lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Chao&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2012 07:28:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Working-with-Triangular-Matrices/m-p/818222#M4475</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2012-05-23T07:28:41Z</dc:date>
    </item>
    <item>
      <title>Working with Triangular Matrices</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Working-with-Triangular-Matrices/m-p/818223#M4476</link>
      <description>Thanks for the background. In my experiment, the results were the same for both methods. I am not using the parallel libraries for matrix multiplication, thus there shouldn't be any discrepancy due to that. &lt;BR /&gt;&lt;BR /&gt;Thanks for the responses.&lt;BR /&gt;&lt;BR /&gt;Blake</description>
      <pubDate>Wed, 23 May 2012 16:24:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Working-with-Triangular-Matrices/m-p/818223#M4476</guid>
      <dc:creator>bstrouse</dc:creator>
      <dc:date>2012-05-23T16:24:00Z</dc:date>
    </item>
  </channel>
</rss>

