Stan Math Library
4.9.0
Automatic Differentiation
|
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 45 of file algebra_system.hpp.
#include <algebra_system.hpp>
Public Member Functions | |
hybrj_functor_solver (const S &fs) | |
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. | |
int | df (const Eigen::VectorXd &iv, Eigen::MatrixXd &fjac) const |
Assign the Jacobian to fjac. | |
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. | |
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. | |
int | inputs () const |
int | values () const |
Public Attributes | |
S | fs_ |
Wrapper around algebraic system. | |
Eigen::MatrixXd | J_ |
Jacobian of algebraic function wrt unknowns. | |
const int | m_inputs |
const int | m_values |