Automatic Differentiation
 
Loading...
Searching...
No Matches
to_fvar.hpp File Reference
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/fwd/meta.hpp>
#include <stan/math/fwd/core.hpp>
#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 , require_stan_scalar_t< T > * = nullptr, require_not_fvar_t< T > * = nullptr>
fvar< T > stan::math::to_fvar (const T &x)
 
template<typename T , require_fvar_t< scalar_type_t< T > > * = nullptr>
T && stan::math::to_fvar (T &&x)
 Specialization of to_fvar for [containers of] fvars.
 
template<typename T >
std::vector< fvar< T > > stan::math::to_fvar (const std::vector< T > &v)
 
template<typename T >
std::vector< fvar< T > > stan::math::to_fvar (const std::vector< T > &v, const std::vector< T > &d)
 
template<typename T , require_eigen_t< T > * = nullptr, require_not_eigen_vt< is_fvar, T > * = nullptr>
promote_scalar_t< fvar< value_type_t< T > >, T > stan::math::to_fvar (const T &m)
 
template<typename T1 , typename T2 , require_all_eigen_t< T1, T2 > * = nullptr, require_vt_same< T1, T2 > * = nullptr>
promote_scalar_t< fvar< value_type_t< T1 > >, T1 > stan::math::to_fvar (const T1 &val, const T2 &deriv)