<?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 Help with cblas_dgbmv in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-cblas-dgbmv/m-p/929305#M13617</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I would really appreciate help with the following problem. I have a matrix B&lt;BR /&gt;B = &lt;BR /&gt;Matrix: 4 x 4&lt;BR /&gt;[         1         3         0         0&lt;BR /&gt;          2         6         4         0&lt;BR /&gt;          0         9         7         5&lt;BR /&gt;          0         0        10         8 ]&lt;BR /&gt;I want to compute:&lt;BR /&gt;&lt;BR /&gt;    Bx * scalara + scalarb * y&lt;BR /&gt;with x = &lt;BR /&gt;x: 4&lt;BR /&gt; [         1         1         1         1  ]&lt;BR /&gt;&lt;BR /&gt;Using dgemv I get with y =  0 and scalara = scalarb = 1:&lt;BR /&gt;cblas_dgemv(CblasRowMajor, CblasNoTrans, 4, 4, 1.0, B, 4, x, 1, 1.0, y, 1);&lt;BR /&gt;dgemv: 4&lt;BR /&gt; [         4        12        21        18  ]&lt;BR /&gt;&lt;BR /&gt;Now I try band storage: by Band Storage of B looks like this (in Column major):&lt;BR /&gt;&lt;BR /&gt;Column Major: 3 x 4&lt;BR /&gt;[         0         3         4         5&lt;BR /&gt;          1         6         7         8&lt;BR /&gt;          2         9        10         0 ]&lt;BR /&gt;&lt;BR /&gt;Using cblas_dgbmv with the same x and y and scalars from above I get:&lt;BR /&gt;cblas_dgbmv(CblasColMajor, CblasNoTrans, 3, 4, 1, 1, 1.0, bandB,&lt;BR /&gt;				3, x, 1, 1.0, y, 1)&lt;BR /&gt;dgbmv (Fortran storage)): 4&lt;BR /&gt; [         4        12        21         0  ]&lt;BR /&gt;&lt;BR /&gt;How do I get the 18 into the last element? Also how can I do this in row major? I tried the suggestion in the cblas document from netlib, but it didn't work at all.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Paul</description>
    <pubDate>Fri, 05 Nov 2004 14:31:50 GMT</pubDate>
    <dc:creator>paul_schneider</dc:creator>
    <dc:date>2004-11-05T14:31:50Z</dc:date>
    <item>
      <title>Help with cblas_dgbmv</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-cblas-dgbmv/m-p/929305#M13617</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I would really appreciate help with the following problem. I have a matrix B&lt;BR /&gt;B = &lt;BR /&gt;Matrix: 4 x 4&lt;BR /&gt;[         1         3         0         0&lt;BR /&gt;          2         6         4         0&lt;BR /&gt;          0         9         7         5&lt;BR /&gt;          0         0        10         8 ]&lt;BR /&gt;I want to compute:&lt;BR /&gt;&lt;BR /&gt;    Bx * scalara + scalarb * y&lt;BR /&gt;with x = &lt;BR /&gt;x: 4&lt;BR /&gt; [         1         1         1         1  ]&lt;BR /&gt;&lt;BR /&gt;Using dgemv I get with y =  0 and scalara = scalarb = 1:&lt;BR /&gt;cblas_dgemv(CblasRowMajor, CblasNoTrans, 4, 4, 1.0, B, 4, x, 1, 1.0, y, 1);&lt;BR /&gt;dgemv: 4&lt;BR /&gt; [         4        12        21        18  ]&lt;BR /&gt;&lt;BR /&gt;Now I try band storage: by Band Storage of B looks like this (in Column major):&lt;BR /&gt;&lt;BR /&gt;Column Major: 3 x 4&lt;BR /&gt;[         0         3         4         5&lt;BR /&gt;          1         6         7         8&lt;BR /&gt;          2         9        10         0 ]&lt;BR /&gt;&lt;BR /&gt;Using cblas_dgbmv with the same x and y and scalars from above I get:&lt;BR /&gt;cblas_dgbmv(CblasColMajor, CblasNoTrans, 3, 4, 1, 1, 1.0, bandB,&lt;BR /&gt;				3, x, 1, 1.0, y, 1)&lt;BR /&gt;dgbmv (Fortran storage)): 4&lt;BR /&gt; [         4        12        21         0  ]&lt;BR /&gt;&lt;BR /&gt;How do I get the 18 into the last element? Also how can I do this in row major? I tried the suggestion in the cblas document from netlib, but it didn't work at all.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Paul</description>
      <pubDate>Fri, 05 Nov 2004 14:31:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-cblas-dgbmv/m-p/929305#M13617</guid>
      <dc:creator>paul_schneider</dc:creator>
      <dc:date>2004-11-05T14:31:50Z</dc:date>
    </item>
  </channel>
</rss>

