Skip to content

Commit 839fe33

Browse files
committed
Merge commit '7e76f26f347fcdcb71fcc28d23a527a220c6ce56' into HEAD
2 parents d26e7b9 + 7e76f26 commit 839fe33

File tree

6 files changed

+17
-6
lines changed

6 files changed

+17
-6
lines changed

lib/stan_math

Submodule stan_math updated 433 files

src/stan/model/model_base.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#ifndef STAN_MODEL_MODEL_BASE_HPP
22
#define STAN_MODEL_MODEL_BASE_HPP
33

4-
#include <stan/io/var_context.hpp>
5-
#include <stan/math/rev/core.hpp>
64
#ifdef STAN_MODEL_FVAR_VAR
75
#include <stan/math/mix.hpp>
86
#endif
7+
#include <stan/io/var_context.hpp>
8+
#include <stan/math/rev/core.hpp>
99
#include <stan/model/prob_grad.hpp>
1010
#include <stan/services/util/create_rng.hpp>
1111
#include <ostream>

src/stan/model/model_base_crtp.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#ifndef STAN_MODEL_MODEL_BASE_CRTP_HPP
22
#define STAN_MODEL_MODEL_BASE_CRTP_HPP
33

4-
#include <stan/model/model_base.hpp>
54
#ifdef STAN_MODEL_FVAR_VAR
65
#include <stan/math/mix.hpp>
76
#endif
7+
#include <stan/model/model_base.hpp>
88
#include <iostream>
99
#include <utility>
1010
#include <vector>

src/stan/model/model_header.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#ifndef STAN_MODEL_MODEL_HEADER_HPP
22
#define STAN_MODEL_MODEL_HEADER_HPP
33

4+
#include <stan/model/model_base.hpp>
5+
#include <stan/model/model_base_crtp.hpp>
46
#include <stan/math.hpp>
57

68
#include <stan/io/deserializer.hpp>
79
#include <stan/io/serializer.hpp>
810

911
#include <stan/model/rethrow_located.hpp>
10-
#include <stan/model/model_base.hpp>
11-
#include <stan/model/model_base_crtp.hpp>
1212
#include <stan/model/prob_grad.hpp>
1313
#include <stan/model/indexing.hpp>
1414
#include <stan/services/util/create_rng.hpp>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
data {
2+
int<lower=1> N;
3+
}
4+
parameters {
5+
vector[N] y;
6+
}
7+
model {
8+
target += y;
9+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// test model which previously failed with -DSTAN_MODEL_FVAR_VAR
2+
#include <test/test-models/good/model/accumulate.hpp>

0 commit comments

Comments
 (0)