finesse.cymath.cmatrix.CCSMatrix.to_scipy_csr¶
- CCSMatrix.to_scipy_csr(self)¶
Converts the current matrix to a scipy CSR (Compressed Sparse Row) sparse matrix.
This method retrieves the matrix elements using the get_matrix_elements method and then uses these elements to create a scipy CSR sparse matrix.
- Returns
- csr_matrix
The scipy CSR sparse matrix representation of the current matrix.