On 21 June 2015 at 23:16, Isaiah Norton <[email protected]> wrote:

> To expand slightly, what I meant was that if you have an API like:
>
>     compute_large_foo(double* array, int nrows, int ncols)
>
>
I cannot really muck around with the C API. In my real problem, the C
library is not mine. I have tried to overwrite the global variable in the C
library, but so far without success. I am very tempted to use Julia 0.4
even if it is unstable. Since 0.4 will one day be stable, any time I spend
trying to force 0.3 to do what I want will be wasted time.


Although note (correction!) that the default Array memory layout in Julia
> is column-major (like Fortran), not row-major (like C).
>
>

Yeah. So I'd have to transpose 2D arrays if I wanted to share those with C.

Cheers,
Daniel.

Reply via email to