![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
#include <stan/math/prim/fun/Eigen.hpp>#include <stan/math/prim/meta.hpp>#include <stan/math/rev/meta.hpp>#include <stan/math/rev/core/var.hpp>#include <utility>#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... Pargs> | |
| vari ** | stan::math::save_varis (vari **dest, const var &x, Pargs &&... args) |
| Save the vari pointer in x into the memory pointed to by dest, increment the dest storage pointer, recursively call save_varis on the rest of the arguments, and return the final value of the dest storage pointer. | |
| template<typename VarVec , require_std_vector_vt< is_var, VarVec > * = nullptr, typename... Pargs> | |
| vari ** | stan::math::save_varis (vari **dest, VarVec &&x, Pargs &&... args) |
| Save the vari pointers in x into the memory pointed to by dest, increment the dest storage pointer, recursively call save_varis on the rest of the arguments, and return the final value of the dest storage pointer. | |
| template<typename VecContainer , require_std_vector_st< is_var, VecContainer > * = nullptr, require_std_vector_vt< is_container, VecContainer > * = nullptr, typename... Pargs> | |
| vari ** | stan::math::save_varis (vari **dest, VecContainer &&x, Pargs &&... args) |
| Save the vari pointers in x into the memory pointed to by dest, increment the dest storage pointer, recursively call save_varis on the rest of the arguments, and return the final value of the dest storage pointer. | |
| template<typename EigT , require_eigen_vt< is_var, EigT > * = nullptr, typename... Pargs> | |
| vari ** | stan::math::save_varis (vari **dest, EigT &&x, Pargs &&... args) |
| Save the vari pointers in x into the memory pointed to by dest, increment the dest storage pointer, recursively call save_varis on the rest of the arguments, and return the final value of the dest storage pointer. | |
| template<typename Arith , require_st_arithmetic< Arith > * = nullptr, typename... Pargs> | |
| vari ** | stan::math::save_varis (vari **dest, Arith &&x, Pargs &&... args) |
| Ignore arithmetic types. | |
| vari ** | stan::math::save_varis (vari **dest) |
| End save_varis recursion and return pointer. | |