Automatic Differentiation
 
Loading...
Searching...
No Matches
as_column_vector_or_scalar.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_OPENCL_REV_AS_COLUMN_VECTOR_OR_SCALAR_HPP
2#define STAN_MATH_OPENCL_REV_AS_COLUMN_VECTOR_OR_SCALAR_HPP
3#ifdef STAN_OPENCL
4
8
9namespace stan {
10namespace math {
11
19template <typename T,
20 require_all_nonscalar_prim_or_rev_kernel_expression_t<T>* = nullptr,
21 require_any_var_t<T>* = nullptr>
22inline auto as_column_vector_or_scalar(const T& m) {
23 return m.as_column_vector_or_scalar();
24}
25
26} // namespace math
27} // namespace stan
28
29#endif
30#endif
auto as_column_vector_or_scalar(T &&a)
as_column_vector_or_scalar of a kernel generator expression.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...