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
7#include <vector>
8
9namespace stan {
10namespace math {
11
20template <typename T>
21inline void dims(const var_value<T>& x, std::vector<int>& result) {
22 dims(*x.vi_, result);
23}
24
33template <typename T>
34inline void dims(const vari_value<T>& x, std::vector<int>& result) {
35 dims(x.val_, result);
36}
37
38} // namespace math
39} // namespace stan
40
41#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 ...