Closed mtazzari closed 6 years ago
Unfortunately the error message doesn't say which input array is not contiguous but that's a cython limitation. We require all array inputs to be contiguous because the underlying C/C++ implementation is agnostic of numpy tricks. The solution is easy. Call
u = numpy.ascontiguousarray(u)
v = numpy.ascontiguousarray(v)
...
on all your inputs. You can check manually if an array is contiguous with u.flags
. Often you will call galario repeatedly in a fit. To avoid making copies again and again, we ask the user to do the conversion if necessary. In fact, ascontiguousarray(u)
doesn't copy u
if u
is already contiguous.
I get this error by calling one of
galario
functions: