mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Modernize more
Apply clang-tidy Google and modernize fixes without trailing return type
using:
$ clang-tidy -p <build-dir> \
-checks='-*,google-*,modernize-*,-modernize-use-trailing-return-type' {} -fix
Change-Id: I7450cc58ea9abf928f73a467e87876083217fa26
This commit is contained in:
committed by
Sameer Agarwal
parent
46b3495a4f
commit
c8658c8992
@@ -30,6 +30,8 @@
|
||||
|
||||
#include "ceres/iterative_refiner.h"
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "Eigen/Dense"
|
||||
#include "ceres/internal/eigen.h"
|
||||
#include "ceres/sparse_cholesky.h"
|
||||
@@ -53,7 +55,7 @@ namespace internal {
|
||||
// A fake SparseMatrix, which uses an Eigen matrix to do the real work.
|
||||
class FakeSparseMatrix : public SparseMatrix {
|
||||
public:
|
||||
FakeSparseMatrix(const Matrix& m) : m_(m) {}
|
||||
explicit FakeSparseMatrix(Matrix m) : m_(std::move(m)) {}
|
||||
|
||||
// y += Ax
|
||||
void RightMultiply(const double* x, double* y) const final {
|
||||
@@ -88,7 +90,7 @@ class FakeSparseMatrix : public SparseMatrix {
|
||||
template <typename Scalar>
|
||||
class FakeSparseCholesky : public SparseCholesky {
|
||||
public:
|
||||
FakeSparseCholesky(const Matrix& lhs) { lhs_ = lhs.cast<Scalar>(); }
|
||||
explicit FakeSparseCholesky(const Matrix& lhs) { lhs_ = lhs.cast<Scalar>(); }
|
||||
|
||||
LinearSolverTerminationType Solve(const double* rhs_ptr,
|
||||
double* solution_ptr,
|
||||
|
||||
Reference in New Issue
Block a user