MathGroup Archive 1996

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

Search the Archive

Re: Help - Compile[] problems

  • To: mathgroup at smc.vnet.net
  • Subject: [mg4892] Re: Help - Compile[] problems
  • From: frankeye at aol.com (FrankEye)
  • Date: Fri, 4 Oct 1996 00:17:32 -0400
  • Organization: America Online, Inc. (1-800-827-6364)
  • Sender: owner-wri-mathgroup at wolfram.com

It's me, the original poster of the thread.  I have discovered that when
the Mathematica book tells one to declare the return type of all built-in
functions, when the intended type differs from approximate (scalar) Real
(the default), it means so.  

For instance, since I'm expecting a 1D list of integers back from Range[],
I must declare it at the trailing section of Compile[], per:
    {Range[_,_], _Integer,1}.

Also, it appears necessary to do so, even for subtle expression forms such
as indices[[m,1]], which in FullForm is Part[indices,m,1].  Hence:
   {Part[indices,_,_], _Integer}.  

I have found some true bugs with Compile[] in Version 3 beta, but this set
of problems I was having is certainly not among them.  

Frank J. Iannarilli, Jr.
frankeye at aol.com  OR franki at aerodyne.com

==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Re: Help - Compile[] problems
  • Next by Date: be careful with LogLinearPlot
  • Previous by thread: Re: Help - Compile[] problems
  • Next by thread: be careful with LogLinearPlot