Skip to content

Commit 76c85ce

Browse files
authored
Merge pull request #1085 from stan-dev/von_mises_cdf
Add von_mises_cdf, von_mises_lcdf, von_mises_lccdf
2 parents 9218def + 3bc0df4 commit 76c85ce

File tree

12 files changed

+5622
-22
lines changed

12 files changed

+5622
-22
lines changed

Jenkinsfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,15 @@ pipeline {
283283

284284
unstash 'ubuntu-exe'
285285

286-
sh """
287-
git clone --recursive https://github.com/stan-dev/math.git
288-
cp bin/stanc math/test/expressions/stanc
289-
"""
290-
291286
script {
287+
sh """
288+
git clone --recursive https://github.com/stan-dev/math.git
289+
"""
290+
utils.checkout_pr("math", "math", params.math_pr)
291+
sh """
292+
cp bin/stanc math/test/expressions/stanc
293+
"""
294+
292295
dir("math") {
293296
sh """
294297
echo O=0 >> make/local

src/middle/Stan_math_signatures.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ let distributions =
271271
; (full_lpdf, "student_t", [DVReal; DVReal; DVReal; DVReal], AoS)
272272
; (full_lpdf, "std_normal", [DVReal], AoS)
273273
; (full_lpdf, "uniform", [DVReal; DVReal; DVReal], AoS)
274-
; ([Lpdf; Rng], "von_mises", [DVReal; DVReal; DVReal], AoS)
274+
; (full_lpdf, "von_mises", [DVReal; DVReal; DVReal], AoS)
275275
; (full_lpdf, "weibull", [DVReal; DVReal; DVReal], AoS)
276276
; ([Lpdf], "wiener", [DVReal; DVReal; DVReal; DVReal; DVReal], AoS)
277277
; ([Lpdf], "wishart", [DMatrix; DReal; DMatrix], AoS) ]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
data {
22
}
33
model {
4-
target += von_mises_ccdf_log(1, 0,1);
4+
target += binomial_logit_ccdf_log(1, 0,1);
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
data {
22
}
33
model {
4-
target += von_mises_cdf(1|0,1);
4+
target += binomial_logit_cdf(1|0,1);
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
data {
22
}
33
model {
4-
target += von_mises_lcdf(1|0,1);
4+
target += binomial_logit_lcdf(1|0,1);
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
data {
22
}
33
model {
4-
target += von_mises_lccdf(1|0,1);
4+
target += binomial_logit_lccdf(1|0,1);
55
}

test/integration/bad/missing_dist_suffix/stanc.expected

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ Semantic error in 'completely_undefined2.stan', line 5, column 12 to column 23:
2020

2121
Function 'foo_lpdf' is not implemented for distribution 'foo', use 'foo_lpmf' instead.
2222
$ ../../../../../install/default/bin/stanc deprecated_suffix.stan
23-
Semantic error in 'deprecated_suffix.stan', line 4, column 14 to column 40:
23+
Semantic error in 'deprecated_suffix.stan', line 4, column 14 to column 45:
2424
-------------------------------------------------
2525
2: }
2626
3: model {
27-
4: target += von_mises_ccdf_log(1, 0,1);
27+
4: target += binomial_logit_ccdf_log(1, 0,1);
2828
^
2929
5: }
3030
-------------------------------------------------
3131

32-
Function 'von_mises_ccdf_log' is not implemented for distribution 'von_mises'.
32+
Function 'binomial_logit_ccdf_log' is not implemented for distribution 'binomial_logit'.
3333
$ ../../../../../install/default/bin/stanc lpmf_lpdf_replacement1.stan
3434
Semantic error in 'lpmf_lpdf_replacement1.stan', line 5, column 14 to column 34:
3535
-------------------------------------------------
@@ -63,38 +63,38 @@ Semantic error in 'no_rng_suffix.stan', line 2, column 12 to column 55:
6363

6464
Function 'multi_gp_cholesky_rng' is not implemented for distribution 'multi_gp_cholesky'.
6565
$ ../../../../../install/default/bin/stanc non_existing_distribution_suffix1.stan
66-
Semantic error in 'non_existing_distribution_suffix1.stan', line 4, column 14 to column 34:
66+
Semantic error in 'non_existing_distribution_suffix1.stan', line 4, column 14 to column 39:
6767
-------------------------------------------------
6868
2: }
6969
3: model {
70-
4: target += von_mises_cdf(1|0,1);
70+
4: target += binomial_logit_cdf(1|0,1);
7171
^
7272
5: }
7373
-------------------------------------------------
7474

75-
Function 'von_mises_cdf' is not implemented for distribution 'von_mises'.
75+
Function 'binomial_logit_cdf' is not implemented for distribution 'binomial_logit'.
7676
$ ../../../../../install/default/bin/stanc non_existing_distribution_suffix2.stan
77-
Semantic error in 'non_existing_distribution_suffix2.stan', line 4, column 14 to column 35:
77+
Semantic error in 'non_existing_distribution_suffix2.stan', line 4, column 14 to column 40:
7878
-------------------------------------------------
7979
2: }
8080
3: model {
81-
4: target += von_mises_lcdf(1|0,1);
81+
4: target += binomial_logit_lcdf(1|0,1);
8282
^
8383
5: }
8484
-------------------------------------------------
8585

86-
Function 'von_mises_lcdf' is not implemented for distribution 'von_mises'.
86+
Function 'binomial_logit_lcdf' is not implemented for distribution 'binomial_logit'.
8787
$ ../../../../../install/default/bin/stanc non_existing_distribution_suffix3.stan
88-
Semantic error in 'non_existing_distribution_suffix3.stan', line 4, column 14 to column 36:
88+
Semantic error in 'non_existing_distribution_suffix3.stan', line 4, column 14 to column 41:
8989
-------------------------------------------------
9090
2: }
9191
3: model {
92-
4: target += von_mises_lccdf(1|0,1);
92+
4: target += binomial_logit_lccdf(1|0,1);
9393
^
9494
5: }
9595
-------------------------------------------------
9696

97-
Function 'von_mises_lccdf' is not implemented for distribution 'von_mises'.
97+
Function 'binomial_logit_lccdf' is not implemented for distribution 'binomial_logit'.
9898
$ ../../../../../install/default/bin/stanc non_existing_distribution_suffix4.stan
9999
Semantic error in 'non_existing_distribution_suffix4.stan', line 4, column 14 to column 41:
100100
-------------------------------------------------

0 commit comments

Comments
 (0)