On 6/19/05, Rob Lopaka Lee <[EMAIL PROTECTED]> wrote:
> I'm interfacing to C code that uses 1-based indexing on arrays -- it
> ignores the zeroth element. Thus, input vectors from R must be moved up
> one, and output arrays must be moved down one.
>
> What is the best way to deal with this using
I'm interfacing to C code that uses 1-based indexing on arrays -- it
ignores the zeroth element. Thus, input vectors from R must be moved up
one, and output arrays must be moved down one.
What is the best way to deal with this using R internal code?
My current approach is:
For an input R vector
Peter Dalgaard <[EMAIL PROTECTED]> writes:
> Peter Dalgaard <[EMAIL PROTECTED]> writes:
>
> > Prof Brian Ripley <[EMAIL PROTECTED]> writes:
> >
> > > I've seen many similar things in a report from valgrind. But they
> > > went away when compiled without optimization: it seems optimization
> > >