diff --git a/internal/ceres/block_sparse_matrix.cc b/internal/ceres/block_sparse_matrix.cc index 909389ce5..2efee398e 100644 --- a/internal/ceres/block_sparse_matrix.cc +++ b/internal/ceres/block_sparse_matrix.cc @@ -67,7 +67,6 @@ void ComputeCumulativeNumberOfNonZeros(std::vector& rows) { template std::unique_ptr CreateStructureOfCompressedRowSparseMatrix( - const double* values, int num_rows, int num_cols, int num_nonzeros, @@ -451,7 +450,7 @@ std::unique_ptr BlockSparseMatrix::ToCompressedRowSparseMatrixTranspose() const { auto bs = transpose_block_structure_.get(); auto crs_matrix = CreateStructureOfCompressedRowSparseMatrix( - values(), num_cols_, num_rows_, num_nonzeros_, bs); + num_cols_, num_rows_, num_nonzeros_, bs); SetBlockStructureOfCompressedRowSparseMatrix(crs_matrix.get(), bs); @@ -462,7 +461,7 @@ BlockSparseMatrix::ToCompressedRowSparseMatrixTranspose() const { std::unique_ptr BlockSparseMatrix::ToCompressedRowSparseMatrix() const { auto crs_matrix = CreateStructureOfCompressedRowSparseMatrix( - values(), num_rows_, num_cols_, num_nonzeros_, block_structure_.get()); + num_rows_, num_cols_, num_nonzeros_, block_structure_.get()); SetBlockStructureOfCompressedRowSparseMatrix(crs_matrix.get(), block_structure_.get()); diff --git a/internal/ceres/preconditioner.h b/internal/ceres/preconditioner.h index 07a7b1fe3..42dc6cc54 100644 --- a/internal/ceres/preconditioner.h +++ b/internal/ceres/preconditioner.h @@ -59,10 +59,10 @@ class CERES_NO_EXPORT Preconditioner : public LinearOperator { sparse_linear_algebra_library_type( linear_solver_options.sparse_linear_algebra_library_type), num_threads(linear_solver_options.num_threads), + elimination_groups(linear_solver_options.elimination_groups), row_block_size(linear_solver_options.row_block_size), e_block_size(linear_solver_options.e_block_size), f_block_size(linear_solver_options.f_block_size), - elimination_groups(linear_solver_options.elimination_groups), context(linear_solver_options.context) {} PreconditionerType type = JACOBI;