mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
Replace scoped_ptr with C++11's unique_ptr
Change-Id: Ib5a504c491e3a79af52a95accf009df473470c6b
This commit is contained in:
@@ -34,11 +34,11 @@
|
||||
#ifndef CERES_INTERNAL_IMPLICIT_SCHUR_COMPLEMENT_H_
|
||||
#define CERES_INTERNAL_IMPLICIT_SCHUR_COMPLEMENT_H_
|
||||
|
||||
#include <memory>
|
||||
#include "ceres/linear_operator.h"
|
||||
#include "ceres/linear_solver.h"
|
||||
#include "ceres/partitioned_matrix_view.h"
|
||||
#include "ceres/internal/eigen.h"
|
||||
#include "ceres/internal/scoped_ptr.h"
|
||||
#include "ceres/types.h"
|
||||
|
||||
namespace ceres {
|
||||
@@ -145,12 +145,12 @@ class ImplicitSchurComplement : public LinearOperator {
|
||||
|
||||
const LinearSolver::Options& options_;
|
||||
|
||||
scoped_ptr<PartitionedMatrixViewBase> A_;
|
||||
std::unique_ptr<PartitionedMatrixViewBase> A_;
|
||||
const double* D_;
|
||||
const double* b_;
|
||||
|
||||
scoped_ptr<BlockSparseMatrix> block_diagonal_EtE_inverse_;
|
||||
scoped_ptr<BlockSparseMatrix> block_diagonal_FtF_inverse_;
|
||||
std::unique_ptr<BlockSparseMatrix> block_diagonal_EtE_inverse_;
|
||||
std::unique_ptr<BlockSparseMatrix> block_diagonal_FtF_inverse_;
|
||||
|
||||
Vector rhs_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user