Stan Math Library
5.0.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 <
stan/math/prim/fun/dims.hpp
>
8
#include <vector>
9
10
namespace
stan
{
11
namespace
math {
12
21
template
<
typename
T>
22
inline
void
dims
(
const
var_value<T>
& x, std::vector<int>& result) {
23
dims
(*x.vi_, result);
24
}
25
34
template
<
typename
T>
35
inline
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
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
dims.hpp
meta.hpp
core.hpp
stan
math
rev
fun
dims.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.