Automatic Differentiation
 
Loading...
Searching...
No Matches
from_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_var_matrix_t< T > * = nullptr>
Eigen::Matrix< var, T::RowsAtCompileTime, T::ColsAtCompileTime > stan::math::from_var_value (const T &a)
 Converts var_value into an Eigen Matrix.
 
template<typename T , require_any_t< conjunction< is_eigen< T >, is_var< scalar_type_t< T > > >, std::is_same< std::decay_t< T >, var >, bool_constant<!std::is_same< scalar_type_t< T >, var >::value > > * = nullptr>
stan::math::from_var_value (T &&a)
 This is a no-op for Eigen containers of vars, scalars or prim types.
 
template<typename T >
auto stan::math::from_var_value (const std::vector< T > &a)
 Convert the elements of the std::vector input to var_value types if possible.