scipy.sparse.csr_matrix.count_nonzero
scipy.sparse.csr_matrix.diagonal
Element-wise deg2rad.
See numpy.deg2rad for more information.