Hello
I am trying to set up both, a plain together with compiled versions of a function.
In particular the function operates on lists of coordinates, returning the unitized cumulative distance between points.
Things work as expected for the plain (non compiled) version.
Same ist true if I copy&paste the expression inside a Compile[ ].
Specifying the same stuff twice is not so nice ...
How can I reference the non compiled version from within a Compile[ ]?
Like referencing a macro or meta programming ...
Tried a lot of things Hold, Evaluate, ... no success so far.
The functions are called:
EstimatedArc (* plain *)
EstimatedArcC (* compiled copy&paste *)
EstimatedArcM (* macro like reference *)
Any hints how this could be accomplished?