[SciPy-dev] Does it worth the trouble to support non contiguous array in C extensions ?

Robert Kern robert.kern at gmail.com
Tue Nov 28 12:45:31 EST 2006


David Cournapeau wrote:
>     Is there a general policy regarding thoses issues for scipy ? Is it 
> enough to write simple C extensions expecting contiguous arrays, and 
> converting input to contiguous layout if necessary ?

That's what I've always done when hand-writing C code. That's essentially what
most f2py wrappers do, too, since FORTRAN-77 will *only* deal with contiguous
arrays.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco



More information about the SciPy-Dev mailing list