Stan Math Library  2.20.0
reverse mode automatic differentiation
Classes | Namespaces | Macros | Functions
idas_system.hpp File Reference
#include <stan/math/rev/meta.hpp>
#include <stan/math/prim/arr/fun/value_of.hpp>
#include <stan/math/prim/arr/fun/dot_self.hpp>
#include <stan/math/prim/scal/err/check_greater_or_equal.hpp>
#include <stan/math/prim/scal/err/check_less_or_equal.hpp>
#include <stan/math/prim/scal/err/check_finite.hpp>
#include <stan/math/prim/arr/err/check_nonzero_size.hpp>
#include <stan/math/prim/mat/fun/typedefs.hpp>
#include <stan/math/rev/mat/fun/typedefs.hpp>
#include <idas/idas.h>
#include <nvector/nvector_serial.h>
#include <ostream>
#include <vector>

Go to the source code of this file.

Classes

class  stan::math::idas_system< F, Tyy, Typ, Tpar >
 IDAS DAE system that contains informtion on residual equation functor, sensitivity residual equation functor, as well as initial conditions. More...
 

Namespaces

 stan
 
 stan::math
 Matrices and templated mathematical functions.
 

Macros

#define CHECK_IDAS_CALL(call)   idas_check(call, #call)
 

Functions

void idas_check (int flag, const char *func)
 check IDAS return flag & throw runtime error More...
 
Eigen::MatrixXd matrix_d_from_NVarray (const N_Vector *nv, const size_t &nv_size)
 copy NV_Vector* array to Eigen::MatrixXd More...
 
void matrix_d_to_NVarray (const Eigen::MatrixXd &mat, N_Vector *nv, const size_t &nv_size)
 copy Eigen::MatrixXd to NV_Vector* array. More...
 

Macro Definition Documentation

◆ CHECK_IDAS_CALL

#define CHECK_IDAS_CALL (   call)    idas_check(call, #call)

Definition at line 18 of file idas_system.hpp.

Function Documentation

◆ idas_check()

void idas_check ( int  flag,
const char *  func 
)
inline

check IDAS return flag & throw runtime error

Parameters
[in]flagroutine return flag
[in]funcroutine name

Definition at line 26 of file idas_system.hpp.

◆ matrix_d_from_NVarray()

Eigen::MatrixXd matrix_d_from_NVarray ( const N_Vector *  nv,
const size_t &  nv_size 
)
inline

copy NV_Vector* array to Eigen::MatrixXd

Parameters
[in]nvN_Vector* array.
[in]nv_sizelength of nv.
Returns
Eigen::MatrixXd.

Definition at line 41 of file idas_system.hpp.

◆ matrix_d_to_NVarray()

void matrix_d_to_NVarray ( const Eigen::MatrixXd &  mat,
N_Vector *  nv,
const size_t &  nv_size 
)
inline

copy Eigen::MatrixXd to NV_Vector* array.

Parameters
[in]matEigen::MatrixXd to be converted
[out]nvN_Vector* array
[in]nv_sizelength of nv

Definition at line 62 of file idas_system.hpp.


     [ Stan Home Page ] © 2011–2018, Stan Development Team.