<?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: vector-matrix product in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vector-matrix-product/m-p/847568#M6353</link>
    <description>&lt;P&gt;I don't see anything about y in your code. Remember that dgemv does the following operation:&lt;/P&gt;
&lt;P&gt;y = alpha*A*x + beta*y.&lt;/P&gt;
&lt;P&gt;y must be a vector. To get the values you seek, y must by zeroed.&lt;/P&gt;
&lt;P&gt;I tried this out using sgemv (not the cblas version) and got the answers you think you should get.&lt;/P&gt;
&lt;P&gt;If you still have problems, I will look at this anew.&lt;/P&gt;
&lt;P&gt;Bruce&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jul 2007 12:21:25 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2007-07-19T12:21:25Z</dc:date>
    <item>
      <title>vector-matrix product</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vector-matrix-product/m-p/847567#M6352</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have need to implement the vector-matrix product (&lt;B&gt;not matrix-vector product&lt;/B&gt;).&lt;BR /&gt;which function can I use?&lt;BR /&gt;&lt;BR /&gt;I have tried with dgemv (with the parameter trans = 112) but it doesn't work. &lt;BR /&gt;I have the following matrix and vectors:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;  x	= -1.2  -0.8  1.0&lt;/PRE&gt;&lt;PRE&gt;&lt;BR /&gt;	    0	 0.4  0.6&lt;/PRE&gt;&lt;PRE&gt; M 	=  -0.4	 0    0.4&lt;/PRE&gt;&lt;PRE&gt; 	   -0.6	 0    0.6&lt;/PRE&gt;&lt;BR /&gt;I wont compute x*M as M'*x' . &lt;BR /&gt;&lt;PRE&gt;M'*v' = -0.28 -0.48 -0.44&lt;/PRE&gt;This is the code example:&lt;BR /&gt;&lt;PRE&gt;double alpha = 1.0;&lt;/PRE&gt;&lt;PRE&gt;double beta = 0.0;&lt;/PRE&gt;&lt;PRE&gt;int incx = 1;&lt;/PRE&gt;&lt;PRE&gt;int incy = 1;&lt;/PRE&gt;&lt;PRE&gt;CBLAS_ORDER order = CblasRowMajor;&lt;/PRE&gt;&lt;PRE&gt;CBLAS_TRANSPOSE trans = CblasTrans;&lt;/PRE&gt;&lt;PRE&gt;int r = 3;&lt;/PRE&gt;&lt;PRE&gt;int c = 3;&lt;/PRE&gt;&lt;PRE&gt;int lda = 3;&lt;/PRE&gt;&lt;PRE&gt;&lt;BR /&gt;cblas_dgemv(order,trans,r,c,alpha,M,lda,x,incx,beta,y,incy);&lt;/PRE&gt;But the result "y" is incorrect !!?&lt;BR /&gt;The result y is following:&lt;BR /&gt;&lt;PRE&gt;y = (-2656984258037080400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0, 94150893907688424300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0, 0.0)&lt;/PRE&gt;Help me!&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Jul 2007 10:40:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vector-matrix-product/m-p/847567#M6352</guid>
      <dc:creator>anacondgame</dc:creator>
      <dc:date>2007-07-04T10:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: vector-matrix product</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vector-matrix-product/m-p/847568#M6353</link>
      <description>&lt;P&gt;I don't see anything about y in your code. Remember that dgemv does the following operation:&lt;/P&gt;
&lt;P&gt;y = alpha*A*x + beta*y.&lt;/P&gt;
&lt;P&gt;y must be a vector. To get the values you seek, y must by zeroed.&lt;/P&gt;
&lt;P&gt;I tried this out using sgemv (not the cblas version) and got the answers you think you should get.&lt;/P&gt;
&lt;P&gt;If you still have problems, I will look at this anew.&lt;/P&gt;
&lt;P&gt;Bruce&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2007 12:21:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vector-matrix-product/m-p/847568#M6353</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2007-07-19T12:21:25Z</dc:date>
    </item>
  </channel>
</rss>

