@@ -128,9 +128,8 @@ void AdjustmentFramework::update( const Index start,
128128 assert ( l0_.segment ( idx3,3 ).hasNaN ()==false );
129129}
130130
131- bool AdjustmentFramework::enforce_constraints ( const QList<std::shared_ptr<Constraint::ConstraintBase> > *constr,
132- const IncidenceMatrix * bi,
133- // const int E,
131+ bool AdjustmentFramework::enforce_constraints ( const QVector<std::shared_ptr<Constraint::ConstraintBase> > *constr,
132+ const IncidenceMatrix * Bi,
134133 const Eigen::RowVectorXi & maps,
135134 const Eigen::RowVectorXi & mapc )
136135{
@@ -176,7 +175,7 @@ bool AdjustmentFramework::enforce_constraints( const QList<std::shared_ptr<Const
176175 if ( verbose ) {
177176 qDebug ().noquote () << QString (" iteration #%1..." ).arg (it+1 );
178177 }
179- a_Jacobian ( constr, bi , BBr, g0, maps, mapc);
178+ a_Jacobian ( constr, Bi , BBr, g0, maps, mapc);
180179
181180 // reduced coordinates: vector and covariance matrix .............
182181 for ( Index s=0 ; s<S; s++ )
@@ -264,14 +263,14 @@ bool AdjustmentFramework::enforce_constraints( const QList<std::shared_ptr<Const
264263 }
265264
266265 // check constraints .........................................
267- a_check_constraints ( constr, bi , maps, mapc);
266+ a_check_constraints ( constr, Bi , maps, mapc);
268267
269268 return true ;
270269}
271270
272271
273272void AdjustmentFramework::a_Jacobian (
274- const QList <std::shared_ptr<ConstraintBase> > * constr,
273+ const QVector <std::shared_ptr<Constraint:: ConstraintBase> > *constr,
275274 const IncidenceMatrix * Bi,
276275 SparseMatrix<double , Eigen::ColMajor> & BBr,
277276 VectorXd & g0,
@@ -316,7 +315,7 @@ void AdjustmentFramework::a_Jacobian(
316315}
317316
318317void AdjustmentFramework::a_check_constraints (
319- const QList <std::shared_ptr<Constraint::ConstraintBase> > * constr,
318+ const QVector <std::shared_ptr<Constraint::ConstraintBase> > *constr,
320319 const IncidenceMatrix * bi,
321320 const Eigen::RowVectorXi & maps,
322321 const Eigen::RowVectorXi & mapc) const
0 commit comments