Automatic Differentiation
 
Loading...
Searching...
No Matches
dims.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_OPENCL_PRIM_DIMS_HPP
2#define STAN_MATH_OPENCL_PRIM_DIMS_HPP
3#ifdef STAN_OPENCL
4
7#include <vector>
8
9namespace stan {
10namespace math {
19template <typename T_x,
20 require_nonscalar_prim_or_rev_kernel_expression_t<T_x>* = nullptr>
21inline void dims(const T_x& x, std::vector<int>& result) {
22 result.push_back(x.rows());
23 result.push_back(x.cols());
24}
25} // namespace math
26} // namespace stan
27
28#endif
29#endif
void dims(const T_x &x, std::vector< int > &result)
matrix_cl overload of the dims helper function in prim/fun/dims.hpp.
Definition dims.hpp:21
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition fvar.hpp:9