Automatic Differentiation
 
Loading...
Searching...
No Matches
value_of_rec.hpp File Reference
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.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 T , typename = require_stan_scalar_t<T>>
double stan::math::value_of_rec (const T x)
 Return the value of the specified scalar argument converted to a double value.
 
double stan::math::value_of_rec (double x)
 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_not_same_t< double, T > * = nullptr>
std::vector< double > 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_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 , typename = require_not_st_same<T, double>, typename = require_eigen_t<T>>
auto stan::math::value_of_rec (T &&M)
 Convert a matrix of type T to a matrix of doubles.