Automatic Differentiation
 
Loading...
Searching...
No Matches
cols.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_OPENCL_PRIM_COLS_HPP
2#define STAN_MATH_OPENCL_PRIM_COLS_HPP
3#ifdef STAN_OPENCL
4
6
7namespace stan {
8namespace math {
18template <typename T_x,
19 require_nonscalar_prim_or_rev_kernel_expression_t<T_x>* = nullptr>
20inline int cols(const T_x& x) {
21 return x.cols();
22}
23} // namespace math
24} // namespace stan
25
26#endif
27#endif
int cols(const T_x &x)
Returns the number of columns in the specified kernel generator expression.
Definition cols.hpp:20
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition fvar.hpp:9