Ember
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
sdVector Class Reference

wrapper class for Sundials "N_Vector" More...

#include <sundialsUtils.h>

Public Member Functions

 sdVector ()
 
 sdVector (unsigned int n, SundialsContext &context)
 Construct a new vector of length n.
 
 sdVector (N_Vector other)
 Wrap an existing N_Vector.
 
 sdVector (const sdVector &other)
 
 ~sdVector ()
 
template<class T >
realtype & operator[] (T i)
 
template<class T >
realtype & operator[] (T i) const
 
N_Vector & forSundials ()
 Return the underlying N_Vector object needed by Sundials functions.
 
unsigned int length () const
 
size_t size () const
 

Private Attributes

N_Vector v
 
bool alloc
 
unsigned int n
 

Detailed Description

wrapper class for Sundials "N_Vector"

Constructor & Destructor Documentation

◆ sdVector() [1/4]

sdVector::sdVector ( )

◆ sdVector() [2/4]

sdVector::sdVector ( unsigned int  n,
SundialsContext context 
)

Construct a new vector of length n.

◆ sdVector() [3/4]

sdVector::sdVector ( N_Vector  other)

Wrap an existing N_Vector.

◆ sdVector() [4/4]

sdVector::sdVector ( const sdVector other)

◆ ~sdVector()

sdVector::~sdVector ( )

Member Function Documentation

◆ operator[]() [1/2]

template<class T >
realtype & sdVector::operator[] ( i)
inline

◆ operator[]() [2/2]

template<class T >
realtype & sdVector::operator[] ( i) const
inline

◆ forSundials()

N_Vector & sdVector::forSundials ( )
inline

Return the underlying N_Vector object needed by Sundials functions.

◆ length()

unsigned int sdVector::length ( ) const
inline

◆ size()

size_t sdVector::size ( ) const
inline

Member Data Documentation

◆ v

N_Vector sdVector::v
private

◆ alloc

bool sdVector::alloc
private

◆ n

unsigned int sdVector::n
private

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