Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::math::hybrj_functor_solver< S > Struct Template Reference

Detailed Description

template<typename S>
struct stan::math::hybrj_functor_solver< S >

A functor with the required operators to call Eigen's algebraic solver.

Template Parameters
Swrapper around the algebraic system functor. Has the signature required for jacobian (i.e takes only one argument).
Falgebraic system functor
T0scalar type for unknowns
T1scalar type for auxiliary parameters

Definition at line 45 of file algebra_system.hpp.

#include <algebra_system.hpp>

+ Inheritance diagram for stan::math::hybrj_functor_solver< S >:

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

fs_
 Wrapper around algebraic system.
 
Eigen::MatrixXd J_
 Jacobian of algebraic function wrt unknowns.
 
const int m_inputs
 
const int m_values
 

The documentation for this struct was generated from the following file: