Set row of csr_matrix

前端 未结 5 2077
旧巷少年郎
旧巷少年郎 2020-12-18 12:04

I have a sparse csr_matrix, and I want to change the values of a single row to different values. I can\'t find an easy and efficient implementation however. This is what it

5条回答
  •  天命终不由人
    2020-12-18 12:28

    Something is wrong with this set_row_csr. Yes, it is fast and it seemed to work for some test cases. However, it seems to garble the internal csr structure of the csr sparse matrix in my test cases. Try lil_matrix(A) afterwards and you will see error messages.

提交回复
热议问题