Compiling
- To: mathgroup@smc.vnet.net
- Subject: [mg11188] Compiling
- From: TTCJ34A@prodigy.com ( JOHN C ERB)
- Date: Wed, 25 Feb 1998 03:31:56 -0500
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