#include <cassert>
#include <vector>
#include <nvector/nvector_serial.h>
Go to the source code of this file.
Functions | |
template<typename VECTOR> | |
double | GetVectorComponent (const VECTOR &rVec, unsigned index) |
template<typename VECTOR> | |
void | SetVectorComponent (VECTOR &rVec, unsigned index, double value) |
template<typename VECTOR> | |
unsigned | GetVectorSize (const VECTOR &rVec) |
template<typename VECTOR> | |
void | InitialiseEmptyVector (VECTOR &rVec) |
template<typename VECTOR> | |
void | DeleteVector (VECTOR &rVec) |
template<> | |
double | GetVectorComponent (const std::vector< double > &rVec, unsigned index) |
template<> | |
void | SetVectorComponent (std::vector< double > &rVec, unsigned index, double value) |
template<> | |
unsigned | GetVectorSize (const std::vector< double > &rVec) |
template<> | |
void | InitialiseEmptyVector (std::vector< double > &rVec) |
template<> | |
void | DeleteVector (std::vector< double > &rVec) |
template<> | |
double | GetVectorComponent (const N_Vector &rVec, unsigned index) |
template<> | |
void | SetVectorComponent (N_Vector &rVec, unsigned index, double value) |
template<> | |
unsigned | GetVectorSize (const N_Vector &rVec) |
template<> | |
void | InitialiseEmptyVector (N_Vector &rVec) |
template<> | |
void | DeleteVector (N_Vector &rVec) |
Definition in file VectorHelperFunctions.hpp.
void DeleteVector | ( | N_Vector & | rVec | ) | [inline] |
Specialisation for CVODE's N_Vector type.
rVec |
Definition at line 221 of file VectorHelperFunctions.hpp.
void DeleteVector | ( | std::vector< double > & | rVec | ) | [inline] |
Specialisation for std::vector<double>.
rVec |
Definition at line 160 of file VectorHelperFunctions.hpp.
void DeleteVector | ( | VECTOR & | rVec | ) | [inline] |
Helper function to delete a vector.
This isn't a member so that we can specialise it without having to specialise the whole class.
rVec | the vector |
Referenced by AbstractParameterisedSystem< VECTOR >::GetAnyVariable().
double GetVectorComponent | ( | const N_Vector & | rVec, | |
unsigned | index | |||
) | [inline] |
Specialisation for CVODE's N_Vector type.
rVec | ||
index |
Definition at line 176 of file VectorHelperFunctions.hpp.
double GetVectorComponent | ( | const std::vector< double > & | rVec, | |
unsigned | index | |||
) | [inline] |
Specialisation for std::vector<double>.
rVec | ||
index |
Definition at line 117 of file VectorHelperFunctions.hpp.
double GetVectorComponent | ( | const VECTOR & | rVec, | |
unsigned | index | |||
) | [inline] |
Helper function to get a vector component.
This isn't a member so that we can specialise it without having to specialise the whole class.
rVec | the vector to access | |
index | the index of the component to get |
Referenced by AbstractParameterisedSystem< VECTOR >::GetAnyVariable(), AbstractParameterisedSystem< VECTOR >::GetParameter(), and AbstractParameterisedSystem< VECTOR >::GetStateVariable().
unsigned GetVectorSize | ( | const N_Vector & | rVec | ) | [inline] |
Specialisation for CVODE's N_Vector type.
rVec |
Definition at line 200 of file VectorHelperFunctions.hpp.
unsigned GetVectorSize | ( | const std::vector< double > & | rVec | ) | [inline] |
Specialisation for std::vector<double>.
rVec |
Definition at line 141 of file VectorHelperFunctions.hpp.
unsigned GetVectorSize | ( | const VECTOR & | rVec | ) | [inline] |
Helper function to determine a vector's size.
This isn't a member so that we can specialise it without having to specialise the whole class.
rVec | the vector |
Referenced by AbstractParameterisedSystem< VECTOR >::GetAnyVariable(), AbstractParameterisedSystem< VECTOR >::GetNumberOfParameters(), AbstractParameterisedSystem< VECTOR >::GetParameter(), and AbstractParameterisedSystem< VECTOR >::SetParameter().
void InitialiseEmptyVector | ( | N_Vector & | rVec | ) | [inline] |
Specialisation for CVODE's N_Vector type.
rVec |
Definition at line 211 of file VectorHelperFunctions.hpp.
void InitialiseEmptyVector | ( | std::vector< double > & | rVec | ) | [inline] |
Specialisation for std::vector<double>.
rVec |
Definition at line 151 of file VectorHelperFunctions.hpp.
void InitialiseEmptyVector | ( | VECTOR & | rVec | ) | [inline] |
Helper function to initialise a vector to be empty/unset.
This isn't a member so that we can specialise it without having to specialise the whole class.
rVec | the vector |
Referenced by AbstractParameterisedSystem< VECTOR >::AbstractParameterisedSystem().
void SetVectorComponent | ( | N_Vector & | rVec, | |
unsigned | index, | |||
double | value | |||
) | [inline] |
Specialisation for CVODE's N_Vector type.
rVec | ||
index | ||
value |
Definition at line 189 of file VectorHelperFunctions.hpp.
void SetVectorComponent | ( | std::vector< double > & | rVec, | |
unsigned | index, | |||
double | value | |||
) | [inline] |
Specialisation for std::vector<double>.
rVec | ||
index | ||
value |
Definition at line 130 of file VectorHelperFunctions.hpp.
void SetVectorComponent | ( | VECTOR & | rVec, | |
unsigned | index, | |||
double | value | |||
) | [inline] |
Helper function to set a vector component.
This isn't a member so that we can specialise it without having to specialise the whole class.
rVec | the vector to modify | |
index | the index of the component to set | |
value | the new value |
Referenced by AbstractParameterisedSystem< VECTOR >::SetParameter(), and AbstractParameterisedSystem< VECTOR >::SetStateVariable().