Skip to content
Prev 306171 / 398525 Next

passing a matrix from R to C code

Erin,

you seem to confuse R and C syntax a bit, among other things. See below.
On Mon, Sep 24, 2012 at 3:03 PM, Erin Hodgess <erinm.hodgess at gmail.com> wrote:
Comma missing?
In C you must write l[i][j] and u[i][j].
l[i,j] is actually equal to l[j] and that's an array of 200 doubles.
a is a single-index array. You cannot index it using two indices.
Convert the two into one using something like i*dimension + k. Same
below.


HTH,

Peter