|  | @@ -85,7 +85,7 @@ static int MinParameterBlock(const ResidualBlock* residual_block,
 | 
	
		
			
				|  |  |    return min_parameter_block_position;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -#if EIGEN_VERSION_AT_LEAST(3, 2, 2) && defined(CERES_USE_EIGEN_SPARSE)
 | 
	
		
			
				|  |  | +#if defined(CERES_USE_EIGEN_SPARSE)
 | 
	
		
			
				|  |  |  Eigen::SparseMatrix<int> CreateBlockJacobian(
 | 
	
		
			
				|  |  |      const TripletSparseMatrix& block_jacobian_transpose) {
 | 
	
		
			
				|  |  |    typedef Eigen::SparseMatrix<int> SparseMatrix;
 | 
	
	
		
			
				|  | @@ -179,7 +179,6 @@ void OrderingForSparseNormalCholeskyUsingCXSparse(
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -#if EIGEN_VERSION_AT_LEAST(3, 2, 2)
 | 
	
		
			
				|  |  |  void OrderingForSparseNormalCholeskyUsingEigenSparse(
 | 
	
		
			
				|  |  |      const TripletSparseMatrix& tsm_block_jacobian_transpose,
 | 
	
		
			
				|  |  |      int* ordering) {
 | 
	
	
		
			
				|  | @@ -212,7 +211,6 @@ void OrderingForSparseNormalCholeskyUsingEigenSparse(
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  #endif  // CERES_USE_EIGEN_SPARSE
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  | -#endif
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  }  // namespace
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -385,10 +383,7 @@ static void MaybeReorderSchurComplementColumnsUsingEigen(
 | 
	
		
			
				|  |  |      const int size_of_first_elimination_group,
 | 
	
		
			
				|  |  |      const ProblemImpl::ParameterMap& parameter_map,
 | 
	
		
			
				|  |  |      Program* program) {
 | 
	
		
			
				|  |  | -#if !EIGEN_VERSION_AT_LEAST(3, 2, 2) || !defined(CERES_USE_EIGEN_SPARSE)
 | 
	
		
			
				|  |  | -  return;
 | 
	
		
			
				|  |  | -#else
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +#if defined(CERES_USE_EIGEN_SPARSE)
 | 
	
		
			
				|  |  |    std::unique_ptr<TripletSparseMatrix> tsm_block_jacobian_transpose(
 | 
	
		
			
				|  |  |        program->CreateJacobianBlockSparsityTranspose());
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -574,18 +569,9 @@ bool ReorderProgramForSparseCholesky(
 | 
	
		
			
				|  |  |      return true;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    } else if (sparse_linear_algebra_library_type == EIGEN_SPARSE) {
 | 
	
		
			
				|  |  | -#if EIGEN_VERSION_AT_LEAST(3, 2, 2)
 | 
	
		
			
				|  |  | -       OrderingForSparseNormalCholeskyUsingEigenSparse(
 | 
	
		
			
				|  |  | +    OrderingForSparseNormalCholeskyUsingEigenSparse(
 | 
	
		
			
				|  |  |          *tsm_block_jacobian_transpose,
 | 
	
		
			
				|  |  |          &ordering[0]);
 | 
	
		
			
				|  |  | -#else
 | 
	
		
			
				|  |  | -    // For Eigen versions less than 3.2.2, there is nothing to do as
 | 
	
		
			
				|  |  | -    // older versions of Eigen do not expose a method for doing
 | 
	
		
			
				|  |  | -    // symbolic analysis on pre-ordered matrices, so a block
 | 
	
		
			
				|  |  | -    // pre-ordering is a bit pointless.
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    return true;
 | 
	
		
			
				|  |  | -#endif
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    // Apply ordering.
 |