Skip to content Skip to sidebar Skip to footer

Numexpr Doesn't Recognize Float Type (sparse Matrix)

I would like to evaluate the performance of numexpr module in python (2.7). For that purpose, I created a random sparse matrix of size (10^5, 10^5). However, the script below throw

Solution 1:

numexpr expects the variables to be numpy arrays. It doesn't handle scipy's sparse matrices. (See, for example, this email thread: http://numpy-discussion.10968.n7.nabble.com/ANN-numexpr-2-3-final-released-td36154.html)


Post a Comment for "Numexpr Doesn't Recognize Float Type (sparse Matrix)"