Loading [MathJax]/extensions/TeX/AMSsymbols.js
Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
value_of_rec.hpp File Reference
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/functor/apply.hpp>
#include <stan/math/prim/functor/make_holder_tuple.hpp>
#include <complex>
#include <cstddef>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename Tuple , require_tuple_t< Tuple > * = nullptr>
auto stan::math::value_of_rec (Tuple &&tup)
 Converts a tuples elements scalar types from ad to double types.
 
template<typename T , require_not_same_t< double, T > * = nullptr>
std::vector< promote_scalar_t< double, T > > stan::math::value_of_rec (const std::vector< T > &x)
 Convert a std::vector of type T to a std::vector of doubles.
 
template<typename T , require_stan_scalar_t< T > = nullptr>
double constexpr stan::math::value_of_rec (const T x) noexcept
 Return the value of the specified scalar argument converted to a double value.
 
double constexpr stan::math::value_of_rec (double x) noexcept
 Return the specified argument.
 
template<typename T >
std::complex< double > stan::math::value_of_rec (const std::complex< T > &x)
 Recursively apply value-of to the parts of the argument.
 
template<typename T , require_std_vector_t< T > * = nullptr, require_vt_same< double, T > * = nullptr>
stan::math::value_of_rec (T &&x)
 Return the specified argument.
 
template<typename T , require_not_st_same< T, double > * = nullptr, require_eigen_t< T > * = nullptr>
auto stan::math::value_of_rec (T &&M)
 Convert a matrix of type T to a matrix of doubles.
 
template<typename T , require_st_same< T, double > * = nullptr, require_eigen_t< T > * = nullptr>
decltype(auto) stan::math::value_of_rec (T &&x)
 Return the specified argument.