![]() |
Stan Math Library
2.20.0
reverse mode automatic differentiation
|
A functor that allows us to treat either x or y as the independent variable. More...
#include <algebra_system.hpp>
Public Member Functions | |
system_functor () | |
system_functor (const F &f, const Eigen::Matrix< T0, Eigen::Dynamic, 1 > &x, const Eigen::Matrix< T1, Eigen::Dynamic, 1 > &y, const std::vector< double > &dat, const std::vector< int > &dat_int, std::ostream *msgs) | |
template<typename T > | |
Eigen::Matrix< T, Eigen::Dynamic, 1 > | operator() (const Eigen::Matrix< T, Eigen::Dynamic, 1 > &iv) const |
An operator that takes in an independent variable. More... | |
Public Attributes | |
F | f_ |
algebraic system functor More... | |
Eigen::Matrix< T0, Eigen::Dynamic, 1 > | x_ |
unknowns More... | |
Eigen::Matrix< T1, Eigen::Dynamic, 1 > | y_ |
auxiliary parameters More... | |
std::vector< double > | dat_ |
real data More... | |
std::vector< int > | dat_int_ |
integer data More... | |
std::ostream * | msgs_ |
stream message More... | |
A functor that allows us to treat either x or y as the independent variable.
If x_is_dv = true, than the Jacobian is computed w.r.t x, else it is computed w.r.t y.
F | type for algebraic system functor |
T0 | type for unknowns |
T1 | type for auxiliary parameters |
x_is_iv | true if x is the independent variable |
Definition at line 25 of file algebra_system.hpp.
|
inline |
Definition at line 39 of file algebra_system.hpp.
|
inline |
Definition at line 41 of file algebra_system.hpp.
|
inline |
An operator that takes in an independent variable.
The independent variable is either passed as the unknown x, or the auxiliary parameter y. The x_is_iv template parameter allows us to determine whether the jacobian is computed with respect to x or y.
T | the scalar type of the independent variable |
Definition at line 56 of file algebra_system.hpp.
std::vector<double> stan::math::system_functor< F, T0, T1, x_is_iv >::dat_ |
real data
Definition at line 33 of file algebra_system.hpp.
std::vector<int> stan::math::system_functor< F, T0, T1, x_is_iv >::dat_int_ |
integer data
Definition at line 35 of file algebra_system.hpp.
F stan::math::system_functor< F, T0, T1, x_is_iv >::f_ |
algebraic system functor
Definition at line 27 of file algebra_system.hpp.
std::ostream* stan::math::system_functor< F, T0, T1, x_is_iv >::msgs_ |
stream message
Definition at line 37 of file algebra_system.hpp.
Eigen::Matrix<T0, Eigen::Dynamic, 1> stan::math::system_functor< F, T0, T1, x_is_iv >::x_ |
unknowns
Definition at line 29 of file algebra_system.hpp.
Eigen::Matrix<T1, Eigen::Dynamic, 1> stan::math::system_functor< F, T0, T1, x_is_iv >::y_ |
auxiliary parameters
Definition at line 31 of file algebra_system.hpp.