mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Remove using namespace std;
For historical reasons we had a "using namespace std;" in port.h. This is generally a bad idea. So removing it and along the way doing a bunch of cpplint cleanup. Change-Id: Ia125601a55ae62695e247fb0250df4c6f86c46c6
This commit is contained in:
@@ -120,18 +120,18 @@ class DynamicAutoDiffCostFunction : public CostFunction {
|
||||
0);
|
||||
|
||||
// Allocate scratch space for the strided evaluation.
|
||||
vector<Jet<double, Stride> > input_jets(num_parameters);
|
||||
vector<Jet<double, Stride> > output_jets(num_residuals());
|
||||
std::vector<Jet<double, Stride> > input_jets(num_parameters);
|
||||
std::vector<Jet<double, Stride> > output_jets(num_residuals());
|
||||
|
||||
// Make the parameter pack that is sent to the functor (reused).
|
||||
vector<Jet<double, Stride>* > jet_parameters(num_parameter_blocks,
|
||||
std::vector<Jet<double, Stride>* > jet_parameters(num_parameter_blocks,
|
||||
static_cast<Jet<double, Stride>* >(NULL));
|
||||
int num_active_parameters = 0;
|
||||
|
||||
// To handle constant parameters between non-constant parameter blocks, the
|
||||
// start position --- a raw parameter index --- of each contiguous block of
|
||||
// non-constant parameters is recorded in start_derivative_section.
|
||||
vector<int> start_derivative_section;
|
||||
std::vector<int> start_derivative_section;
|
||||
bool in_derivative_section = false;
|
||||
int parameter_cursor = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user