Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicit error message for deprecated function. #26

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions stan/gptools/stan/gptools/fft1.stan
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ real gp_rfft_log_abs_det_jac(vector cov_rfft, int n) {
return - sum(log(rfft_scale[1:n %/% 2 + 1])) -sum(log(rfft_scale[2:(n + 1) %/% 2]))
- log(2) * ((n - 1) %/% 2) + n * log(n) / 2;
}
real gp_rfft_log_abs_det_jacobian(vector cov_rfft, int n) {
reject("`gp_rfft_log_abs_det_jacobian` has been renamed to `gp_rfft_log_abs_det_jac` to comply with upcoming changes (see https://github.com/stan-dev/stanc3/issues/1470 for details).");
}


/**
Expand Down
3 changes: 3 additions & 0 deletions stan/gptools/stan/gptools/fft2.stan
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ real gp_rfft2_log_abs_det_jac(matrix cov_rfft2, int width) {
ladj += - log2() * nterms + n * log(n) / 2;
return ladj;
}
real gp_rfft2_log_abs_det_jacobian(matrix cov_rfft2, int width) {
reject("`gp_rfft2_log_abs_det_jacobian` has been renamed to `gp_rfft2_log_abs_det_jac` to comply with upcoming changes (see https://github.com/stan-dev/stanc3/issues/1470 for details).");
}


/**
Expand Down
Loading