![]() |
Stan Math Library
2.20.0
reverse mode automatic differentiation
|
A functor with the required operators to call Eigen's algebraic solver. More...
#include <algebra_system.hpp>
Public Member Functions | |
hybrj_functor_solver (const S &fs, 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) | |
int | operator() (const Eigen::VectorXd &iv, Eigen::VectorXd &fvec) |
Computes the value the algebraic function, f, when pluging in the independent variables, and the Jacobian w.r.t unknowns. More... | |
int | df (const Eigen::VectorXd &iv, Eigen::MatrixXd &fjac) const |
Assign the Jacobian to fjac (signature required by Eigen). More... | |
Eigen::MatrixXd | get_jacobian (const Eigen::VectorXd &iv) |
Performs the same task as the operator(), but returns the Jacobian, instead of saving it inside an argument passed by reference. More... | |
Eigen::VectorXd | get_value (const Eigen::VectorXd &iv) const |
Performs the same task as df(), but returns the value of algebraic function, instead of saving it inside an argument passed by reference. More... | |
![]() | |
nlo_functor () | |
nlo_functor (int inputs, int values) | |
int | inputs () const |
int | values () const |
Public Attributes | |
S | fs_ |
Wrapper around algebraic system. More... | |
int | x_size_ |
number of unknowns More... | |
Eigen::MatrixXd | J_ |
Jacobian of algebraic function wrt unknowns. More... | |
![]() | |
const int | m_inputs |
const int | m_values |
A functor with the required operators to call Eigen's algebraic solver.
S | wrapper around the algebraic system functor. Has the signature required for jacobian (i.e takes only one argument). |
F | algebraic system functor |
T0 | scalar type for unknowns |
T1 | scalar type for auxiliary parameters |
Definition at line 94 of file algebra_system.hpp.
|
inline |
Definition at line 102 of file algebra_system.hpp.
|
inline |
Assign the Jacobian to fjac (signature required by Eigen).
Required by Eigen.
[in] | iv | independent variables. |
[in,out] | fjac | matrix container for jacobian |
Definition at line 127 of file algebra_system.hpp.
|
inline |
Performs the same task as the operator(), but returns the Jacobian, instead of saving it inside an argument passed by reference.
[in] | iv | indepdent variable. |
Definition at line 138 of file algebra_system.hpp.
|
inline |
Performs the same task as df(), but returns the value of algebraic function, instead of saving it inside an argument passed by reference.
[in] | iv independent variable. |
Definition at line 150 of file algebra_system.hpp.
|
inline |
Computes the value the algebraic function, f, when pluging in the independent variables, and the Jacobian w.r.t unknowns.
Required by Eigen.
[in] | iv | independent variables |
[in,out] | fvec | value of algebraic function when plugging in iv. |
Definition at line 116 of file algebra_system.hpp.
S stan::math::hybrj_functor_solver< S, F, T0, T1 >::fs_ |
Wrapper around algebraic system.
Definition at line 96 of file algebra_system.hpp.
Eigen::MatrixXd stan::math::hybrj_functor_solver< S, F, T0, T1 >::J_ |
Jacobian of algebraic function wrt unknowns.
Definition at line 100 of file algebra_system.hpp.
int stan::math::hybrj_functor_solver< S, F, T0, T1 >::x_size_ |
number of unknowns
Definition at line 98 of file algebra_system.hpp.