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