Automatic Differentiation
 
Loading...
Searching...
No Matches
to_var_value.hpp File Reference

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_eigen_vt< is_var, T > * = nullptr>
var_value< Eigen::Matrix< double, T::RowsAtCompileTime, T::ColsAtCompileTime > > stan::math::to_var_value (const T &a)
 Converts an Eigen matrix (or vector or row_vector) or expression of vars into var_value.
 
template<typename T , require_var_t< T > * = nullptr>
stan::math::to_var_value (T &&a)
 This is a no-op for var_values.
 
template<typename T >
auto stan::math::to_var_value (const std::vector< T > &a)
 Convert the elements of the std::vector input to var_value types if possible.