mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Lint fixes from William Rucklidge.
Change-Id: I57a6383bb875b24083cd9b7049333292d26f718c
This commit is contained in:
@@ -124,7 +124,7 @@ class DynamicAutoDiffCostFunction : public CostFunction {
|
||||
|
||||
// Make the parameter pack that is sent to the functor (reused).
|
||||
vector<Jet<double, Stride>* > jet_parameters(num_parameter_blocks,
|
||||
static_cast<Jet<double, Stride>* >( NULL));
|
||||
static_cast<Jet<double, Stride>* >(NULL));
|
||||
int num_active_parameters = 0;
|
||||
int start_derivative_section = -1;
|
||||
for (int i = 0, parameter_cursor = 0; i < num_parameter_blocks; ++i) {
|
||||
|
||||
@@ -45,6 +45,8 @@
|
||||
#include "ceres/local_parameterization.h"
|
||||
#include "ceres/loss_function.h"
|
||||
|
||||
using Eigen::Dynamic;
|
||||
|
||||
namespace ceres {
|
||||
namespace internal {
|
||||
|
||||
@@ -140,8 +142,8 @@ bool ResidualBlock::Evaluate(const bool apply_loss_function,
|
||||
|
||||
// Apply local reparameterization to the jacobians.
|
||||
if (parameter_block->LocalParameterizationJacobian() != NULL) {
|
||||
MatrixMatrixMultiply
|
||||
<Eigen::Dynamic, Eigen::Dynamic, Eigen::Dynamic, Eigen::Dynamic, 0>(
|
||||
// jacobians[i] = global_jacobians[i] * global_to_local_jacobian.
|
||||
MatrixMatrixMultiply<Dynamic, Dynamic, Dynamic, Dynamic, 0>(
|
||||
global_jacobians[i],
|
||||
num_residuals,
|
||||
parameter_block->Size(),
|
||||
|
||||
@@ -279,7 +279,11 @@ Eliminate(const BlockSparseMatrixBase* A,
|
||||
|
||||
FixedArray<double, 8> inverse_ete_g(e_block_size);
|
||||
MatrixVectorMultiply<kEBlockSize, kEBlockSize, 0>(
|
||||
inverse_ete.data(), e_block_size, e_block_size, g.get(), inverse_ete_g.get());
|
||||
inverse_ete.data(),
|
||||
e_block_size,
|
||||
e_block_size,
|
||||
g.get(),
|
||||
inverse_ete_g.get());
|
||||
|
||||
UpdateRhs(chunk, A, b, chunk.start, inverse_ete_g.get(), rhs);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user