Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Francesco Brarda
stan-math-petsc
Commits
8a33213b
Commit
8a33213b
authored
6 years ago
by
Ben
Browse files
Options
Download
Email Patches
Plain Diff
Adding missing header (Issue 565)
parent
ccbd2374
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stan/math/rev/core/build_double_array.hpp
+2
-2
stan/math/rev/core/build_double_array.hpp
with
2 additions
and
2 deletions
+2
-2
stan/math/rev/core/build_double_array.hpp
View file @
8a33213b
...
...
@@ -2,6 +2,7 @@
#define STAN_MATH_REV_CORE_BUILD_DOUBLE_ARRAY_HPP
#include <stan/math/rev/core/vari.hpp>
#include <algorithm>
#include <limits>
namespace
stan
{
...
...
@@ -32,8 +33,7 @@ inline double* build_double_array(vari** array, int size) {
* @return Copy of input array
*/
inline
double
*
build_double_array
(
const
double
*
array
,
int
size
)
{
double
*
copy
=
ChainableStack
::
instance
().
memalloc_
.
alloc_array
<
double
>
(
size
);
double
*
copy
=
ChainableStack
::
instance
().
memalloc_
.
alloc_array
<
double
>
(
size
);
std
::
copy
(
array
,
array
+
size
,
copy
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help