Hi Adam,
On Fri, Nov 6, 2015 at 2:55 AM, Ryan Gonzalez <
rym...@gmail.com> wrote:
> I think this is a misunderstanding?
>>> To use this syntax, I need to define test.h as follows:
>>>
>>> void add_array(int x, int y, double (*a)[NUM_COLS], double
>>> (*b)[NUM_COLS], double (*result)[NUM_COLS]);
Yes, indeed. This is half-nonsensical C code. Don't do that and pass
plain "double *a" and "double *b" arguments and do the arithmetic
yourself---you need to anyway if the number of columns is not a
constant. That's how C works.
A bientôt,
Armin.