MathGroup Archive 2008

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

Search the Archive

Re: Using ListCorrelate with Inner

  • To: mathgroup at smc.vnet.net
  • Subject: [mg87315] Re: Using ListCorrelate with Inner
  • From: dh <dh at metrohm.ch>
  • Date: Mon, 7 Apr 2008 05:18:44 -0400 (EDT)
  • References: <fta9nc$eb5$1@smc.vnet.net>


Hi Art,

just realized that my wording was a bit sloppy. With argument of Inner, 

I meant the argument of the first function of Inner.

Daniel



Art wrote:

> I have a matrix of filter vectors h which I would like to

> ListCorrelate with a column of data vectors d as (pseudocode) r =

> Inner[ListCorrelate, h, d, Plus]. I haven't been able to write this in

> a neat form with Inner, which I suspect will also be faster than the

> below:

> 

> {l,m,n,o} = {5,5,8,1000};

> h = RandomReal[1., {l,m,n}];

> d = RandomReal[1., {m,o}];

> 

> r = Total /@ Table[ListCorrelate[h[[i, j]], d[[j]]], {i, l}, {j,m}]

> 

> Thanks,

> Art

> 




  • Prev by Date: Re: Using ListCorrelate with Inner
  • Next by Date: Text does not show up in vertices of GraphPlot3D
  • Previous by thread: Re: Using ListCorrelate with Inner
  • Next by thread: A problem with solving some nonlinear system