dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #12005
Re: [Fwd: Re: Image to Function data structure conversion]
On Monday 09 February 2009 12:33:14 Kent Andre wrote:
Nice to see the JIT compile function interface in full action ;)
If you instead for the included set_image use this:
set_image(int _array_dim_0, int _array_dim_1, double* _array){
N = _array_dim_0;
M = _array_dim_1;
image = _array;
}
it should trigger an included typemap for 2D numpy arrays, with all checks you
want to include!
Disclaimer I have not tested it :)
Johan
References