Skip to content

Commit a3b19bd

Browse files
committed
algo/cholesky: use internal vector
1 parent fbaa760 commit a3b19bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pinocchio/algorithm/contact-cholesky.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ namespace pinocchio
327327
DUt_partial.noalias() =
328328
U.row(j).segment(j + 1, slice_dim).transpose().cwiseProduct(D.segment(j + 1, slice_dim));
329329

330-
D[j] = -vec[j] - compliance[j] - U.row(j).segment(j + 1, slice_dim).dot(DUt_partial);
330+
D[j] = -damping[j] - compliance[j] - U.row(j).segment(j + 1, slice_dim).dot(DUt_partial);
331331
assert(
332332
check_expression_if_real<Scalar>(D[j] != Scalar(0))
333333
&& "The diagonal element is equal to zero.");

0 commit comments

Comments
 (0)