Bitwise Operations on Rows of lil_matrix
Posted
by Ryan Rosario
on Stack Overflow
See other posts from Stack Overflow
or by Ryan Rosario
Published on 2010-04-26T19:27:53Z
Indexed on
2010/04/26
20:13 UTC
Read the original article
Hit count: 378
How can I quickly extract two rows of a scipy.sparse.lil_matrix and apply bitwise operations on them? I've tried:
np.bitwise_and(A[1,:], A[2,:])
but NumPy seems to want an array type according to the documentation.
© Stack Overflow or respective owner