<?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 Summary statistics and padding in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Summary-statistics-and-padding/m-p/972344#M16812</link>
    <description>&lt;P&gt;When using matrices in MKL, I'm careful to align my columns as recommended by Intel for maximum throughput (this seems to be particularly important on the Intel Xeon Phi). MKL's BLAS interface makes it easy to deal with matrices with padded columns, &amp;nbsp;since the number of rows and the size of the leading dimension are always specified separately. For example, I can specify that my matrix has 1021 rows, but that the leading dimension is 1024.&lt;/P&gt;

&lt;P&gt;However I can't figure out how to do this with the summary statistics functions. I want to calculate a correlation matrix from the columns of a (column-major) matrix with padding in each column.&lt;/P&gt;

&lt;P&gt;Do I have to use an indices array with all but the last few elements set to 1? This seems inconvenient and inefficient. What if I want padding in the correlation matrix?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2014 20:18:26 GMT</pubDate>
    <dc:creator>Peter_B_9</dc:creator>
    <dc:date>2014-01-30T20:18:26Z</dc:date>
    <item>
      <title>Summary statistics and padding</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Summary-statistics-and-padding/m-p/972344#M16812</link>
      <description>&lt;P&gt;When using matrices in MKL, I'm careful to align my columns as recommended by Intel for maximum throughput (this seems to be particularly important on the Intel Xeon Phi). MKL's BLAS interface makes it easy to deal with matrices with padded columns, &amp;nbsp;since the number of rows and the size of the leading dimension are always specified separately. For example, I can specify that my matrix has 1021 rows, but that the leading dimension is 1024.&lt;/P&gt;

&lt;P&gt;However I can't figure out how to do this with the summary statistics functions. I want to calculate a correlation matrix from the columns of a (column-major) matrix with padding in each column.&lt;/P&gt;

&lt;P&gt;Do I have to use an indices array with all but the last few elements set to 1? This seems inconvenient and inefficient. What if I want padding in the correlation matrix?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2014 20:18:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Summary-statistics-and-padding/m-p/972344#M16812</guid>
      <dc:creator>Peter_B_9</dc:creator>
      <dc:date>2014-01-30T20:18:26Z</dc:date>
    </item>
    <item>
      <title>The matrix passed to a</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Summary-statistics-and-padding/m-p/972345#M16813</link>
      <description>&lt;P&gt;The matrix passed to a summary statistics routine is packed as a one-dimensional array. You don't need to pad each column or row to make its starting address aligned against certain boundary. For performance considerations, you only need to make sure the starting address of the entire matrix lies on the boundary of, say 64-byte, boundaries. Matrix arguments in BLAS are also passed in the form of one-dimensional arrays. The concept of leading dimensions is more about facilitating the handling of sub-matrices than about performance.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2014 23:39:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Summary-statistics-and-padding/m-p/972345#M16813</guid>
      <dc:creator>Zhang_Z_Intel</dc:creator>
      <dc:date>2014-01-30T23:39:54Z</dc:date>
    </item>
    <item>
      <title>Hi Zhang, thanks for the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Summary-statistics-and-padding/m-p/972346#M16814</link>
      <description>&lt;P&gt;Hi Zhang, thanks for the information. This seems like a significant limitation. The BLAS approach has several advantages: for example, it's very easy to select a subset of a BLAS matrix by adjusting the size of the leading dimension. I hope that Intel considers enhancing VSL to support padding in a future version. (I note that NAG's statistics functions do support an explicit leading dimension.)&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 14:20:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Summary-statistics-and-padding/m-p/972346#M16814</guid>
      <dc:creator>Peter_B_9</dc:creator>
      <dc:date>2014-01-31T14:20:04Z</dc:date>
    </item>
    <item>
      <title>Peter, Thanks for your</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Summary-statistics-and-padding/m-p/972347#M16815</link>
      <description>&lt;P&gt;Peter, Thanks for your suggestion. I see some NAG statistic functions do take a 'stride' argument for the matrix it operates on. One example is function 'nag_corr_cov' (http://www.nag.com/numeric/CL/nagdoc_cl23/html/G02/g02bxc.html). Is this what you have in mind? If so, I can put in a feature request to MKL VSL.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 17:52:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Summary-statistics-and-padding/m-p/972347#M16815</guid>
      <dc:creator>Zhang_Z_Intel</dc:creator>
      <dc:date>2014-01-31T17:52:50Z</dc:date>
    </item>
  </channel>
</rss>

