mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +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
@@ -113,9 +113,9 @@ namespace {
|
||||
class QuadraticCostFunction : public ceres::SizedCostFunction<1, 1> {
|
||||
public:
|
||||
QuadraticCostFunction(double a, double b) : sqrta_(std::sqrt(a)), b_(b) {}
|
||||
virtual bool Evaluate(double const* const* parameters,
|
||||
double* residuals,
|
||||
double** jacobians) const {
|
||||
bool Evaluate(double const* const* parameters,
|
||||
double* residuals,
|
||||
double** jacobians) const override {
|
||||
const double x = parameters[0][0];
|
||||
residuals[0] = sqrta_ * (x - b_);
|
||||
if (jacobians != nullptr && jacobians[0] != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user