minor performance improvement in steady_direct_sparse