MathGroup Archive 2006

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

Search the Archive

Re: Redundant numerical input

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67867] Re: Redundant numerical input
  • From: dh <dh at metrohm.ch>
  • Date: Tue, 11 Jul 2006 05:58:30 -0400 (EDT)
  • References: <e8nsji$k46$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,
if I understand right, you want to repeatedly call a function with many 
arguments where only 3 actually change.
Well, redefine your function and use constants for the non changing values:
fun[x1_,x2_,x3_]:=Module[{const1=1.,const2=2.,..},...]

Daniel

gregorc wrote:
> Dear group members,
> 
> I am using manually defined (compiled) function which takes for input 
> over 50 arguments of length 3. Most of these are just material 
> parameters which are constant during numerical simulation and only 3 of 
> them are calculation variables. When the function is threaded over many 
> discretization points, the calculation becomes rather time consuming. I 
> was wondering if it is somehow posible to "tell" the numerical function 
> not to parse the redundant parameters every time, since they are already 
> in the memory, i.e. use the same form of numerical function, but only 3 
> calculation varibles are evaluated each time used. I think this would 
> greatly speed up my calculations!?
> 
> Thank you and best regards.
> 


  • Prev by Date: Q Legredre functions defined
  • Next by Date: 3D plot of globe (map of world)?
  • Previous by thread: Redundant numerical input
  • Next by thread: Re: Redundant numerical input