Skip to content

Commit 5604037

Browse files
rjoomenLevi-Armstrong
authored andcommitted
Fixes #289
1 parent a27d40c commit 5604037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trajopt_ifopt/src/costs/absolute_cost.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void AbsoluteCost::FillJacobianBlock(std::string var_set, Jacobian& jac_block) c
8080
Eigen::ArrayXd w_error = error * weights_.array();
8181
Eigen::VectorXd coeff = w_error / error.abs();
8282

83-
jac_block = coeff.sparseView() * cnt_jac_block; // NOLINT
83+
jac_block = coeff.sparseView().eval() * cnt_jac_block; // NOLINT
8484
}
8585

8686
} // namespace trajopt_ifopt

0 commit comments

Comments
 (0)