Loading [MathJax]/extensions/TeX/AMSsymbols.js
Stan Math Library
5.0.0
Automatic Differentiation
▼
Stan Math Library
Overview
▼
Contributor Guides
Developer Guide
Adding New Functions
Adding New Distributions
Common Pitfalls
Using requires for general overloads
Reverse Mode Types
Testing Automatic Differentiation Functions
Testing New Distributions
Add New Functions With Known Gradients
Adding New OpenCL Functions
Windows Development Tips
▼
Internal Docs
►
Probability Distributions
►
OpenCL
►
Compressed Sparse Row matrix format.
►
Type Traits
►
Available requires<> for overloading.
►
Eigen expressions
►
arena_matrix <br>
►
real <br>
►
Parallelism
(External Link) Stan Language Docs
(External Link) Stan Discourse
►
Stan Math Library Docs
►
Class List
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
to_ref_for_opencl.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_OPENCL_TO_REF_FOR_OPENCL_HPP
2
#define STAN_MATH_OPENCL_TO_REF_FOR_OPENCL_HPP
3
#ifdef STAN_OPENCL
4
5
#include <
stan/math/opencl/ref_type_for_opencl.hpp
>
6
7
namespace
stan
{
8
namespace
math {
9
18
template
<
typename
T>
19
inline
ref_type_for_opencl_t<T&&>
to_ref_for_opencl
(T&& a) {
20
return
std::forward<T>(a);
21
}
22
23
}
// namespace math
24
}
// namespace stan
25
26
#endif
27
#endif
stan::math::ref_type_for_opencl_t
typename ref_type_for_opencl< T >::type ref_type_for_opencl_t
Definition
ref_type_for_opencl.hpp:64
stan::math::to_ref_for_opencl
ref_type_for_opencl_t< T && > to_ref_for_opencl(T &&a)
Converts given Eigen expression into one that can be directly copied to an OpenCL device to create ma...
Definition
to_ref_for_opencl.hpp:19
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
ref_type_for_opencl.hpp
stan
math
opencl
to_ref_for_opencl.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.