Stan Math Library
4.9.0
Automatic Differentiation
Loading...
Searching...
No Matches
reverse.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_OPENCL_REV_REVERSE_HPP
2
#define STAN_MATH_OPENCL_REV_REVERSE_HPP
3
#ifdef STAN_OPENCL
4
5
#include <
stan/math/opencl/kernel_generator.hpp
>
6
#include <
stan/math/opencl/prim/block.hpp
>
7
#include <
stan/math/prim/err.hpp
>
8
#include <
stan/math/rev/core.hpp
>
9
10
namespace
stan
{
11
namespace
math {
12
20
template
<
typename
T,
21
require_all_nonscalar_prim_or_rev_kernel_expression_t<T>* =
nullptr
,
22
require_any_var_t<T>* =
nullptr
>
23
inline
auto
reverse
(
const
T& m) {
24
return
m.reverse();
25
}
26
27
}
// namespace math
28
}
// namespace stan
29
30
#endif
31
#endif
kernel_generator.hpp
stan::math::reverse
auto reverse(T_x &&x)
Return reversed view into the specified vector or row vector.
Definition
reverse.hpp:20
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
block.hpp
err.hpp
core.hpp
stan
math
opencl
rev
reverse.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.