This change changes checking if a matrix is sparse to use scipy\'s built-in util for this instead of rolling one ourselves.