Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

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


  • Prev by Date: Re: FittedModel Objects... How does Mathematica do it?
  • Next by Date: Units question
  • Previous by thread: Conditional FindRoot iteration Question
  • Next by thread: Re: CUDADot[] does not work with rectangular matrices