[SciPy-user] csr_matrix

Robert Cimrman cimrman3 at ntc.zcu.cz
Wed Nov 1 07:01:27 CST 2006

Sam frizou wrote:
> Thank you Robert.
> In fact, I need to do row and columns basic operations on my matrices
> (switch 2 rows, switch 2 cols, add a row with another into the matrix
> (eg. m[1,:]=m[1,:]+m[3,:]), and same things for columns.
> Moreover I do not need that my program is extremly fast. In fact my
> matrices are vrey sparse and classical matrix simply do not fit into
> the memory.
> So, if I well understand what you told me. I would better use DOK matrices ?

For those kinds of operations, yes.


More information about the SciPy-user mailing list