passing arg to CompiledFunction array
- To: mathgroup at smc.vnet.net
 - Subject: [mg6833] passing arg to CompiledFunction array
 - From: dtuch at athena.mit.edu (David S Tuch)
 - Date: Tue, 22 Apr 1997 02:33:02 -0400 (EDT)
 - Organization: Massachvsetts Institvte of Technology
 - Sender: owner-wri-mathgroup at wolfram.com
 
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