MathGroup Archive 1998

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

Search the Archive

Compiling



I am trying to compile an interpolation routine which is used thousands
of times in my program

alaway is a 2D table of data {{x1,y1,data1},{x2,y2,data2} ... }

h is an array of data; e.g. h = {{1,2},{2,3,} ... }, representing x's &
y's for which I want data's; this array has 1000's of entries

I can use

Map[Interpolation[alaway][#[[1]],#[[2]]]&,h]

and get an answer, but it takes several minutes to complete.

When I try to compile the routine:

fc=Compile[{h,_Real},Map[Interpolation[alaway][#[[1]],#[[2]]]&,h]]

I get:

Compile::"cplist": 
    h should be a tensor of type Integer, Real, or Complex;  evaluation
will use the uncompiled function."

General::"stop": 
    "Further output of Compile::cplist will be suppressed during this 
calculation."


I have tried several variations with no lukc. Anyone have any ideas?

Thanks

John C. Er




  • Prev by Date: Compiling
  • Next by Date: Re: Mathlink problem with lists of reals
  • Prev by thread: Compiling
  • Next by thread: lattice definition: help