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
9
10namespace stan {
11namespace math {
12
20template <typename T,
21 require_all_nonscalar_prim_or_rev_kernel_expression_t<T>* = nullptr,
22 require_any_var_t<T>* = nullptr>
23inline auto reverse(const T& m) {
24 return m.reverse();
25}
26
27} // namespace math
28} // namespace stan
29
30#endif
31#endif
auto reverse(T_x &&x)
Return reversed view into the specified vector or row vector.
Definition reverse.hpp:20
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...