scipy.sparse
scipy.sparse.lil_matrix.asfptype
scipy.sparse.lil_matrix.conj
lil_matrix.
astype
Cast the matrix elements to a specified type.
The data will be copied.
t : string or numpy dtype
Typecode or data-type to which to cast the data.