Stan Math Library
5.0.0
Automatic Differentiation
|
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/rev/core.hpp>
#include <stan/math/rev/core/arena_matrix.hpp>
#include <stan/math/rev/core/reverse_pass_callback.hpp>
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 var s into var_value . | |
template<typename T , require_var_t< T > * = nullptr> | |
T | 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. | |