finesse.cymath.cmatrix.CCSMatrix.to_scipy_coo

CCSMatrix.to_scipy_coo(self)

Converts the current matrix to a scipy COO (Coordinate) sparse matrix.

This method retrieves the matrix elements using the get_matrix_elements method and then uses these elements to create a scipy COO sparse matrix.

Returns
coo_matrix

The scipy COO sparse matrix representation of the current matrix.