9 #if MUQ_HAS_SUNDIALS==1
11 return typeid(N_Vector)==obj_type;
15 #if MUQ_HAS_SUNDIALS==1
17 const N_Vector& sun = boost::any_cast<N_Vector const&>(vec);
19 return NV_LENGTH_S(sun);
23 #if MUQ_HAS_SUNDIALS==1
26 assert(i<NV_LENGTH_S(vec));
29 return NV_Ith_S(vec, 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.