Skip to content

Commit 03f4ea6

Browse files
authored
Merge pull request #1540 from stan-dev/fix/mislabeled-scalar-functions-SoA
Fix some scalar functions being mislabeled as SoA
2 parents 31b2aee + 6c3b8b4 commit 03f4ea6

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/stan_math_signatures/Generate.ml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ let distributions =
270270
; (full_lpdf, "rayleigh", [DVReal; DVReal], SoA)
271271
; (full_lpdf, "scaled_inv_chi_square", [DVReal; DVReal; DVReal], SoA)
272272
; (full_lpdf, "skew_normal", [DVReal; DVReal; DVReal; DVReal], SoA)
273-
; (full_lpdf, "skew_double_exponential", [DVReal; DVReal; DVReal; DVReal], SoA)
273+
; (full_lpdf, "skew_double_exponential", [DVReal; DVReal; DVReal; DVReal], AoS)
274274
; (full_lpdf, "student_t", [DVReal; DVReal; DVReal; DVReal], SoA)
275275
; (full_lpdf, "std_normal", [DVReal], SoA)
276276
; (full_lpdf, "uniform", [DVReal; DVReal; DVReal], SoA)
@@ -344,7 +344,7 @@ let math_sigs =
344344
; ([UnaryVectorized SameAsArg], "minus", [DDeepComplexVectorized], SoA)
345345
; ([basic_vectorized], "Phi", [DDeepVectorized], SoA)
346346
; ([basic_vectorized], "Phi_approx", [DDeepVectorized], SoA)
347-
; ([basic_vectorized], "round", [DDeepVectorized], SoA)
347+
; ([basic_vectorized], "round", [DDeepVectorized], AoS)
348348
; ([basic_vectorized], "sin", [DDeepVectorized], SoA)
349349
; ([basic_vectorized], "sinh", [DDeepVectorized], SoA)
350350
; ([basic_vectorized], "sqrt", [DDeepVectorized], SoA)
@@ -353,12 +353,12 @@ let math_sigs =
353353
; ([basic_vectorized], "std_normal_qf", [DDeepVectorized], SoA)
354354
(* std_normal_qf is an alias for inv_Phi *)
355355
; ([basic_vectorized], "std_normal_log_qf", [DDeepVectorized], SoA)
356-
; ([basic_vectorized], "step", [DReal], SoA)
356+
; ([basic_vectorized], "step", [DReal], AoS)
357357
; ([basic_vectorized], "tan", [DDeepVectorized], SoA)
358358
; ([basic_vectorized], "tanh", [DDeepVectorized], SoA)
359359
; ([basic_vectorized], "tgamma", [DDeepVectorized], SoA)
360-
; ([basic_vectorized], "trunc", [DDeepVectorized], SoA)
361-
; ([basic_vectorized], "trigamma", [DDeepVectorized], SoA) ]
360+
; ([basic_vectorized], "trunc", [DDeepVectorized], AoS)
361+
; ([basic_vectorized], "trigamma", [DDeepVectorized], AoS) ]
362362

363363
let all_declarative_sigs = distributions @ math_sigs
364364

test/integration/good/compiler-optimizations/cppO0.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14908,7 +14908,7 @@ static constexpr std::array<const char*, 8> locations_array__ =
1490814908
" (in 'initialize-SoA.stan', line 6, column 2 to column 25)",
1490914909
" (in 'initialize-SoA.stan', line 9, column 2 to column 19)",
1491014910
" (in 'initialize-SoA.stan', line 11, column 4 to column 30)",
14911-
" (in 'initialize-SoA.stan', line 10, column 17 to line 12, column 3)",
14911+
" (in 'initialize-SoA.stan', line 10, column 19 to line 12, column 3)",
1491214912
" (in 'initialize-SoA.stan', line 10, column 2 to line 12, column 3)"};
1491314913
class initialize_SoA_model final : public model_base_crtp<initialize_SoA_model> {
1491414914
private:

test/integration/good/compiler-optimizations/cppO1.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16194,7 +16194,7 @@ static constexpr std::array<const char*, 8> locations_array__ =
1619416194
" (in 'initialize-SoA.stan', line 6, column 2 to column 25)",
1619516195
" (in 'initialize-SoA.stan', line 9, column 2 to column 19)",
1619616196
" (in 'initialize-SoA.stan', line 11, column 4 to column 30)",
16197-
" (in 'initialize-SoA.stan', line 10, column 17 to line 12, column 3)",
16197+
" (in 'initialize-SoA.stan', line 10, column 19 to line 12, column 3)",
1619816198
" (in 'initialize-SoA.stan', line 10, column 2 to line 12, column 3)"};
1619916199
class initialize_SoA_model final : public model_base_crtp<initialize_SoA_model> {
1620016200
private:

test/integration/good/compiler-optimizations/initialize-SoA.stan

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ transformed parameters {
77
}
88
model {
99
x ~ std_normal();
10-
for (i in 1:3) {
10+
for (i in 1 : 3) {
1111
arr_vec[i] ~ std_normal();
1212
}
1313
}

0 commit comments

Comments
 (0)