signs for scipy sparse matrices