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

Wrapper class for Sundials SUNDenseMatrix objects. More...

#include <sundialsUtils.h>

Public Member Functions

 sdMatrix (unsigned int n, unsigned int m, SundialsContext &context)
 Create a new matrix with n rows and m columns.
 
 sdMatrix (SUNMatrix other)
 Create a wrapper for an existing DensMat object.
 
 sdMatrix ()
 
 ~sdMatrix ()
 
template<class T >
realtype & operator() (T i, T j)
 
template<class T >
realtype & operator() (T i, T j) const
 
realtype * forSundials ()
 Return a pointer to the underlying data, needed by Sundials functions.
 

Private Attributes

SUNMatrix M
 
bool alloc
 

Detailed Description

Wrapper class for Sundials SUNDenseMatrix objects.

Constructor & Destructor Documentation

◆ sdMatrix() [1/3]

sdMatrix::sdMatrix ( unsigned int  n,
unsigned int  m,
SundialsContext context 
)

Create a new matrix with n rows and m columns.

◆ sdMatrix() [2/3]

sdMatrix::sdMatrix ( SUNMatrix  other)

Create a wrapper for an existing DensMat object.

◆ sdMatrix() [3/3]

sdMatrix::sdMatrix ( )

◆ ~sdMatrix()

sdMatrix::~sdMatrix ( )

Member Function Documentation

◆ operator()() [1/2]

template<class T >
realtype & sdMatrix::operator() ( i,
j 
)
inline

◆ operator()() [2/2]

template<class T >
realtype & sdMatrix::operator() ( i,
j 
) const
inline

◆ forSundials()

realtype * sdMatrix::forSundials ( )
inline

Return a pointer to the underlying data, needed by Sundials functions.

Member Data Documentation

◆ M

SUNMatrix sdMatrix::M
private

◆ alloc

bool sdMatrix::alloc
private

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