1#ifndef STAN_MATH_OPENCL_PRIM_BLOCK_HPP
2#define STAN_MATH_OPENCL_PRIM_BLOCK_HPP
22template <
typename T_x,
23 typename = require_all_kernel_expressions_and_none_scalar_t<T_x>>
24inline auto block(T_x&& x,
size_t i,
size_t j,
size_t nrows,
auto block_zero_based(T &&a, int start_row, int start_col, int rows, int cols)
Block of a kernel generator expression.
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 ...