Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Feb 15, 2024
1 parent 940645a commit 8e3fce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trajopt_ifopt/src/utils/ifopt_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ ifopt::Problem::Jacobian calcNumericalConstraintGradient(const double* x, ifopt:
int n = nlp.GetNumberOfOptimizationVariables();
int m = nlp.GetConstraints().GetRows();
ifopt::Problem::Jacobian jac(m, n);
jac.reserve(m * n);
jac.reserve(static_cast<Eigen::Index>(m * n));

if (nlp.GetNumberOfConstraints() > 0)
{
Expand Down Expand Up @@ -203,7 +203,7 @@ ifopt::Problem::Jacobian calcNumericalConstraintGradient(ifopt::Component& varia
int n = variables.GetRows();
int m = constraint_set.GetRows();
ifopt::Problem::Jacobian jac(m, n);
jac.reserve(m * n);
jac.reserve(static_cast<Eigen::Index>(m * n));

if (!constraint_set.GetBounds().empty())
{
Expand Down

0 comments on commit 8e3fce2

Please sign in to comment.