mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
Replace NULL by nullptr
Change-Id: I200a40678091b984a01635d8637a487b7ad5cc13
This commit is contained in:
@@ -105,7 +105,7 @@ class DynamicAutoDiffCostFunction : public DynamicCostFunction {
|
||||
<< "You must call DynamicAutoDiffCostFunction::SetNumResiduals() "
|
||||
<< "before DynamicAutoDiffCostFunction::Evaluate().";
|
||||
|
||||
if (jacobians == NULL) {
|
||||
if (jacobians == nullptr) {
|
||||
return (*functor_)(parameters, residuals);
|
||||
}
|
||||
|
||||
@@ -150,7 +150,7 @@ class DynamicAutoDiffCostFunction : public DynamicCostFunction {
|
||||
jet_parameters[i] = &input_jets[parameter_cursor];
|
||||
|
||||
const int parameter_block_size = parameter_block_sizes()[i];
|
||||
if (jacobians[i] != NULL) {
|
||||
if (jacobians[i] != nullptr) {
|
||||
if (!in_derivative_section) {
|
||||
start_derivative_section.push_back(parameter_cursor);
|
||||
in_derivative_section = true;
|
||||
@@ -209,7 +209,7 @@ class DynamicAutoDiffCostFunction : public DynamicCostFunction {
|
||||
parameter_cursor >=
|
||||
(start_derivative_section[current_derivative_section] +
|
||||
current_derivative_section_cursor)) {
|
||||
if (jacobians[i] != NULL) {
|
||||
if (jacobians[i] != nullptr) {
|
||||
input_jets[parameter_cursor].v[active_parameter_count] = 1.0;
|
||||
++active_parameter_count;
|
||||
++current_derivative_section_cursor;
|
||||
@@ -238,7 +238,7 @@ class DynamicAutoDiffCostFunction : public DynamicCostFunction {
|
||||
parameter_cursor >=
|
||||
(start_derivative_section[current_derivative_section] +
|
||||
current_derivative_section_cursor)) {
|
||||
if (jacobians[i] != NULL) {
|
||||
if (jacobians[i] != nullptr) {
|
||||
for (int k = 0; k < num_residuals(); ++k) {
|
||||
jacobians[i][k * parameter_block_sizes()[i] + j] =
|
||||
output_jets[k].v[active_parameter_count];
|
||||
|
||||
Reference in New Issue
Block a user