Commit 8a33213b authored by Ben's avatar Ben
Browse files

Adding missing header (Issue 565)

No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#define STAN_MATH_REV_CORE_BUILD_DOUBLE_ARRAY_HPP #define STAN_MATH_REV_CORE_BUILD_DOUBLE_ARRAY_HPP
#include <stan/math/rev/core/vari.hpp> #include <stan/math/rev/core/vari.hpp>
#include <algorithm>
#include <limits> #include <limits>
namespace stan { namespace stan {
...@@ -32,8 +33,7 @@ inline double* build_double_array(vari** array, int size) { ...@@ -32,8 +33,7 @@ inline double* build_double_array(vari** array, int size) {
* @return Copy of input array * @return Copy of input array
*/ */
inline double* build_double_array(const double* array, int size) { inline double* build_double_array(const double* array, int size) {
double* copy double* copy = ChainableStack::instance().memalloc_.alloc_array<double>(size);
= ChainableStack::instance().memalloc_.alloc_array<double>(size);
std::copy(array, array + size, copy); std::copy(array, array + size, copy);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment