CUDADot[] does not work with rectangular matrices
- To: mathgroup at smc.vnet.net
- Subject: [mg115465] CUDADot[] does not work with rectangular matrices
- From: Koslicki <koslicki at math.psu.edu>
- Date: Tue, 11 Jan 2011 19:22:42 -0500 (EST)
It seems like CUDADot[] does not work with rectangular matrices. For
example:
In[80]:= Dot[{{1,2,3,4},{1,2,3,4},{1,2,3,4},{1,2,3,4},{1,2,3,4}},
{125,25,5,1}]
Out[80]= {194,194,194,194,194}
Yet
In[81]:= CUDADot[{{1,2,3,4},{1,2,3,4},{1,2,3,4},{1,2,3,4},{1,2,3,4}},
{125,25,5,1}]
During evaluation of In[81]:= CUDADot::invdim: CUDALink encountered an
object with invalid dimensions. >>
Out[81]= CUDADot[{{1,2,3,4},{1,2,3,4},{1,2,3,4},{1,2,3,4},{1,2,3,4}},
{125,25,5,1}]
So unless the first matrix is square with the same dimensions as the
vector, CUDADot[] will not work.
Has anyone else come across this and/or found a workaround?
Thanks,
~David