Speed up sparse supernode detection by combining it with transposition.
PiperOrigin-RevId: 760673008 Change-Id: I6d66580e675fd86e5b974859383f93f87482ca16
This commit is contained in:
committed by
Copybara-Service
parent
ced630181d
commit
45fc15b844
@@ -1572,7 +1572,7 @@ static void MakeHessian(mjData* d, mjCGContext* ctx) {
|
||||
int* HT_rowadr = mjSTACKALLOC(d, nv, int);
|
||||
int* HT_colind = mjSTACKALLOC(d, ctx->nH, int);
|
||||
mju_transposeSparse(NULL, NULL, nv, nv,
|
||||
HT_rownnz, HT_rowadr, HT_colind,
|
||||
HT_rownnz, HT_rowadr, HT_colind, NULL,
|
||||
ctx->H_rownnz, ctx->H_rowadr, ctx->H_colind);
|
||||
|
||||
// count total and row non-zeros of reverse-Cholesky factor L
|
||||
|
||||
Reference in New Issue
Block a user