[Numpy-discussion] Cython-based OpenMP-accelerated quartic polynomial solver

Juha Jeronen juha.jeronen at jyu.fi
Fri Oct 2 06:31:47 EDT 2015


On 02.10.2015 13:07, Daπid wrote:
>
> On 2 October 2015 at 11:58, Juha Jeronen <juha.jeronen at jyu.fi 
> <mailto:juha.jeronen at jyu.fi>> wrote:
>
>
>
>     First version done and uploaded:
>
>     https://yousource.it.jyu.fi/jjrandom2/miniprojects/trees/master/misc/polysolve_for_numpy
>
>
> Small comment: now you are checking if the input is a scalar or a 
> ndarray, but it should also accept any array-like. If I pass a list, I 
> expect it to work, internally converting it into an array.

Good catch.

Is there an official way to test for array-likes? Or should I always 
convert with asarray()? Or something else?


  -J

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20151002/5993ca41/attachment.html>


More information about the NumPy-Discussion mailing list