Skip to content

Make rmnorm_inv_ld match rmnorm_chol and fix recycling rule#1586

Merged
paciorek merged 1 commit into
develfrom
rmnorm_inv_ld-prec
Aug 14, 2025
Merged

Make rmnorm_inv_ld match rmnorm_chol and fix recycling rule#1586
paciorek merged 1 commit into
develfrom
rmnorm_inv_ld-prec

Conversation

@perrydv
Copy link
Copy Markdown
Contributor

@perrydv perrydv commented Aug 8, 2025

This PR does two things:

  1. Change the behavior of rmnorm_inv_ld so that it matches rmnorm_chol in the case of a precision parameterization. In fact, rmnorm_inv_ld now calls rmnorm_chol.
  2. Update both nimArr_rmnorm_chol and nimArr_rmnorm_inv_ld (the versions used from compiled code) so that they use the same recycling rule behavior for the mean parameter as uncompiled calls (to C_rmnorm_chol and C_rmnorm_inv_ld). Previously they did not do so, and that discrepancy was noticed during work on item (1).

In addition tests are added to test-ADdmnorm.

@paciorek paciorek merged commit 409dee9 into devel Aug 14, 2025
8 checks passed
@paciorek paciorek deleted the rmnorm_inv_ld-prec branch August 14, 2025 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants