scipy.sparse.dia_matrix.

asfptype#

dia_matrix.asfptype()[source]#

将矩阵向上转换为浮点格式(如果需要)