Automatic Differentiation
 
Loading...
Searching...
No Matches
dims.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_REV_FUN_DIMS_HPP
2#define STAN_MATH_REV_FUN_DIMS_HPP
3
8#include <vector>
9
10namespace stan {
11namespace math {
12
21template <typename T>
22inline void dims(const var_value<T>& x, std::vector<int>& result) {
23 dims(*x.vi_, result);
24}
25
34template <typename T>
35inline void dims(const vari_value<T>& x, std::vector<int>& result) {
36 dims(x.val_, result);
37}
38
39} // namespace math
40} // namespace stan
41
42#endif // DIMS_HPP
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 ...