mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Clang Tidy Fixes
Change-Id: I65558225cc537e86428caa5081bde165968bfab3
This commit is contained in:
@@ -48,7 +48,7 @@ namespace ceres::internal {
|
||||
|
||||
namespace {
|
||||
void ComputeCumulativeNumberOfNonZeros(std::vector<CompressedList>& rows) {
|
||||
if (!rows.size()) {
|
||||
if (rows.empty()) {
|
||||
return;
|
||||
}
|
||||
rows[0].cumulative_nnz = rows[0].nnz;
|
||||
|
||||
@@ -30,8 +30,11 @@
|
||||
|
||||
#include "ceres/block_sparse_matrix.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
#include <random>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "ceres/casts.h"
|
||||
#include "ceres/crs_matrix.h"
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
// Authors: dmitriy.korchemkin@gmail.com (Dmitriy Korchemkin)
|
||||
|
||||
#include <memory>
|
||||
#include <random>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user