Add mju_cholFactorNNZ to compute the number of non-zeros per row for sparse Cholesky factorization.

PiperOrigin-RevId: 679553197
Change-Id: I6f92deec347dae97d2e219cfb5376f92e777da1a
This commit is contained in:
Taylor Howell
2024-09-27 05:38:07 -07:00
committed by Copybara-Service
parent bb6da503dc
commit 6a6e10d779
3 changed files with 126 additions and 0 deletions
+3
View File
@@ -108,6 +108,9 @@ MJAPI void mju_sqrMatTDSparseInit(int* res_rownnz, int* res_rowadr,
// precompute res_rowadr for mju_sqrMatTDSparse using uncompressed memory
MJAPI void mju_sqrMatTDUncompressedInit(int* res_rowadr, int nc);
// compute row non-zeros of reverse-Cholesky factor L, return total
MJAPI int mju_cholFactorNNZ(int* L_rownnz, int* parent, int* flag, const int* rownnz,
const int* rowadr, const int* colind, int n);
#ifdef __cplusplus
}