Clang Tidy Fixes

Change-Id: I65558225cc537e86428caa5081bde165968bfab3
This commit is contained in:
Sameer Agarwal
2022-11-01 10:46:50 -07:00
parent 9364e31ee8
commit d6a9310098
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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"
+1
View File
@@ -29,6 +29,7 @@
// Authors: dmitriy.korchemkin@gmail.com (Dmitriy Korchemkin)
#include <memory>
#include <random>
#include <string>
#include <vector>