[SciPy-dev] sparsetools - new and (hopefully) improved!

Travis Oliphant oliphant at ee.byu.edu
Sat Jan 6 21:41:10 CST 2007


Nathan Bell wrote:
> On 1/6/07, Tim Leslie <tim.leslie at gmail.com> wrote:
>   
>> Problem solved. There were some arrays which were created without
>> dtype=numpy.intc. These have been fixed in revision 2500.
>>     
>
> Great! Thanks for following up on that bug.
>
> In the future I plan to template the index type in sparsetools to
> provide support for both int32 and int64.  Until then we'll need to
> stick with numpy.intc.
>
> I don't expect many people will have SciPy matrices with > 2^31 rows
> anytime soon, but it's good to be future-proof :)
>
> Does numpy support arrays with dimension > 2^31?
>
>   

Yes, but only on 64-bit machines..  The c-type of the dimension is an 
integer large-enough to hold a pointer on the platform (npy_intp)



-Travis




More information about the Scipy-dev mailing list