Displaying 1 result from an estimated 1 matches for "evalpoly".
Did you mean:
  calpoly
  
2012 Jan 27
1
.C returned array has odd results
...d
loops in C, and always get the same results, so I assume that this is
something I'm doing wrong in R.
Here is the code for my .C call.  I could post the C code if someone thinks
it's important, but I'm just changing the values of integer array specified
in R.
r.result <-
.C("evalPoly",
 as.double(c.polygonX),
 as.double(c.polygonY),
 as.double(c.neighborX),
 as.double(c.neighborY),
 integer(c.numberOfNeighbors*c.height*c.length),
 as.integer(c.polygonLength),
 as.integer(c.neighborLength),
 as.integer(c.numberOfNeighbors),
 as.integer(c.length),
 as.integer(c.height),
 DUP...