dpnp.scipy.sparse.csr_matrix.data

property

property csr_matrix.data

Non-zero values, one per stored entry (read-only).

Read-only because the oneMKL SpMV handle caches raw pointers into this array (see module docstring); reassigning it would leave the cached handle pointing at stale or freed USM memory without any signal that it needs to be rebuilt. Use copy() or construct a new csr_matrix to change the stored values.