Stan Math Library
4.9.0
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
4
#include <
stan/math/prim/fun/Eigen.hpp
>
5
#include <
stan/math/prim/meta.hpp
>
6
#include <
stan/math/rev/core.hpp
>
7
#include <vector>
8
9
namespace
stan
{
10
namespace
math {
11
20
template
<
typename
T>
21
inline
void
dims
(
const
var_value<T>
& x, std::vector<int>& result) {
22
dims
(*x.vi_, result);
23
}
24
33
template
<
typename
T>
34
inline
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
Eigen.hpp
stan::math::var_value
Definition
var_value_fwd_declare.hpp:8
stan::math::vari_value
Definition
vari.hpp:17
stan::math::dims
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
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
meta.hpp
core.hpp
stan
math
rev
fun
dims.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.