MUQ  0.4.3
muq::Modeling::SundialsAlgebra Class Reference

#include <SundialsAlgebra.h>

Detailed Description

Definition at line 19 of file SundialsAlgebra.h.

Public Member Functions

 SundialsAlgebra ()
 
 ~SundialsAlgebra ()
 

Static Public Member Functions

static bool IsSundialsVector (std::type_info const &obj)
 Is a boost::any an N_Vector type? More...
 
static unsigned int Size (boost::any const &vec)
 The size of an N_Vector. More...
 
static boost::any AccessElement (N_Vector const &obj, unsigned int const i)
 Access an element of a Sundials vector. More...
 

Constructor & Destructor Documentation

◆ SundialsAlgebra()

SundialsAlgebra::SundialsAlgebra ( )

Definition at line 5 of file SundialsAlgebra.cpp.

◆ ~SundialsAlgebra()

SundialsAlgebra::~SundialsAlgebra ( )

Definition at line 7 of file SundialsAlgebra.cpp.

Member Function Documentation

◆ AccessElement()

boost::any SundialsAlgebra::AccessElement ( N_Vector const &  obj,
unsigned int const  i 
)
static

Access an element of a Sundials vector.

Parameters
[in]vecThe vector whose data we want to access
[in]iWe want to access the \(i^{th}\) element of the vector
Returns
The \(i^{th}\) element of the vector

Definition at line 24 of file SundialsAlgebra.cpp.

Referenced by muq::Modeling::AnyAlgebra::AccessElement().

◆ IsSundialsVector()

bool SundialsAlgebra::IsSundialsVector ( std::type_info const &  obj)
static

Is a boost::any an N_Vector type?

Parameters
[in]obj_typeWe want to know if this object type is a N_Vector type
Returns
true: it is an N_Vector, false: it is not an N_Vector type

Definition at line 10 of file SundialsAlgebra.cpp.

Referenced by muq::Modeling::AnyAlgebra::AccessElement(), and muq::Modeling::AnyAlgebra::Size().

◆ Size()

unsigned int SundialsAlgebra::Size ( boost::any const &  vec)
static

The size of an N_Vector.

Parameters
[in]vecWe will get the size of this vector
Returns
The size

Definition at line 16 of file SundialsAlgebra.cpp.

Referenced by muq::Modeling::AnyAlgebra::Size().


The documentation for this class was generated from the following files: