MathGroup Archive 1997

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

Search the Archive

Re: Compiling a Module

  • To: mathgroup at smc.vnet.net
  • Subject: [mg8383] Re: [mg8278] Compiling a Module
  • From: Allan Hayes <hay at haystack.demon.co.uk>
  • Date: Tue, 26 Aug 1997 20:41:19 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

carlos at mars.Colorado.EDU (Carlos A. Felippa)
[mg8278] Compiling a Module
writes

>Can a Module be compiled?

Carlos,

Yes:

cf =Compile[x,Module[{a=3},a x]]

	CompiledFunction[{x},Module[{a=3},a x],"-CompiledCode-"]

cf[5]
	15.
	
Allan Hayes
hay at haystack.demon.co.uk
http://www.haystack.demon.co.uk/training.html
voice:+44 (0)116 2714198
fax: +44 (0)116 2718642
Leicester,  UK




  • Prev by Date: MathLink Question
  • Next by Date: Re: Simplifying Sqrt[a^2*d^2] -> a*d
  • Previous by thread: Re: Compiling a Module
  • Next by thread: automatic animations