| # | Line 20 | Line 20 | typedef struct { | |
|---|---|---|
| 20 | double mtx[1]; /* extends struct */ | |
| 21 | } RMATRIX; | |
| 22 | ||
| 23 | < | #define rmx_lval(rm,r,c,i) (rm)->mtx[((i)*(rm)->nrows+(r))*(rm)->ncols+(c)] |
| 23 | > | #define rmx_lval(rm,r,c,i) (rm)->mtx[(i)+(rm)->ncomp*((c)+(rm)->ncols*(r))] |
| 24 | ||
| 25 | /* Allocate a nr x nc matrix with n components */ | |
| 26 | extern RMATRIX *rmx_alloc(int nr, int nc, int n); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |