1#ifndef STAN_MATH_OPENCL_PRIM_ROW_HPP
2#define STAN_MATH_OPENCL_PRIM_ROW_HPP
21template <
typename T_x,
22 typename = require_nonscalar_prim_or_rev_kernel_expression_t<T_x>>
23inline auto row(T_x&& x,
size_t j) {
24 return block(std::forward<T_x>(x), j, 1, 1, x.cols());
auto row(T_x &&x, size_t j)
Return the specified row of the specified kernel generator expression using start-at-1 indexing.
auto block(T_x &&x, size_t i, size_t j, size_t nrows, size_t ncols)
Return a nrows x ncols submatrix starting at (i-1, j-1).
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...