MathGroup Archive 1997

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

Search the Archive

Re: passing arg to CompiledFunction array

  • To: mathgroup at smc.vnet.net
  • Subject: [mg6876] Re: [mg6833] passing arg to CompiledFunction array
  • From: seanross at worldnet.att.net
  • Date: Fri, 25 Apr 1997 02:31:42 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

David S Tuch wrote:
> 
> Given an array of CompiledFunctions such as
> 
> array={{Compile[{x},Sin[x]],Compile[{x},Cos[x]]},
> {Compile[{x},-Cos[x]],Compile[{x},Sin[x]]}};
> 
> how can one pass the argument to each CompiledFunction?
> I suspect the answer looks something like
> 
> array/.CompiledFunction[x__]->CompiledFunction[x__][arg]
> 
> which obviously doesn't work.  Any tips would be greatly
> appreciated.  Thanks in advance.
> 
> Dave Tuch

The command you want is "Through".  I use it for arrays of 
InterpolationFunction objects.


  • Prev by Date: Re: alternating sum
  • Next by Date: Re: passing arg to CompiledFunction array
  • Previous by thread: passing arg to CompiledFunction array
  • Next by thread: Re: passing arg to CompiledFunction array