1 #ifndef SUNDIALSALGEBRA_H_
2 #define SUNDIALSALGEBRA_H_
6 #include <boost/none.hpp>
7 #include <boost/any.hpp>
12 #if MUQ_HAS_SUNDIALS==1
13 #include <nvector/nvector_serial.h>
14 #include <sundials/sundials_dense.h>
25 #if MUQ_HAS_SUNDIALS==1
34 #if MUQ_HAS_SUNDIALS==1
40 static unsigned int Size(boost::any
const& vec);
43 #if MUQ_HAS_SUNDIALS==1
50 static boost::any
AccessElement(N_Vector
const& obj,
unsigned int const i);
static bool IsSundialsVector(std::type_info const &obj)
Is a boost::any an N_Vector type?
static unsigned int Size(boost::any const &vec)
The size of an N_Vector.
static boost::any AccessElement(N_Vector const &obj, unsigned int const i)
Access an element of a Sundials vector.