sparsax.logdet_factor¶
- sparsax.logdet_factor(token)[source]¶
Return
log|A|from a pre-computed factor (no refactor).Reads the Cholesky diagonal from the factor held in
token(fromfactor());O(n)cost. Not differentiable.Note
The logdet is computed at
factor()time and cached on the token, so this call is essentially free. Undervmapover a batch of tokens it routes to the batched handler (one logdet per chain).