mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
Lint cleanups from William Rucklidge
Change-Id: Ia4756ef97e65837d55838ee0b30806a234565bfd
This commit is contained in:
@@ -80,7 +80,7 @@ void SolveUpperTriangularInPlace(IntegerType num_cols,
|
||||
rhs_and_solution[r] -= v * rhs_and_solution[c];
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// Solve the linear system
|
||||
//
|
||||
@@ -100,8 +100,8 @@ void SolveUpperTriangularTransposeInPlace(IntegerType num_cols,
|
||||
rhs_and_solution[c] -= v * rhs_and_solution[r];
|
||||
}
|
||||
rhs_and_solution[c] = rhs_and_solution[c] / values[cols[c + 1] - 1];
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// Given a upper triangular matrix R in compressed column form, solve
|
||||
// the linear system,
|
||||
@@ -131,10 +131,10 @@ void SolveRTRWithSparseRHS(IntegerType num_cols,
|
||||
solution[c] -= v * solution[r];
|
||||
}
|
||||
solution[c] = solution[c] / values[cols[c + 1] - 1];
|
||||
};
|
||||
SolveUpperTriangularInPlace(num_cols, rows, cols, values, solution);
|
||||
};
|
||||
}
|
||||
|
||||
SolveUpperTriangularInPlace(num_cols, rows, cols, values, solution);
|
||||
}
|
||||
|
||||
} // namespace internal
|
||||
} // namespace ceres
|
||||
|
||||
Reference in New Issue
Block a user