|
Sacado Package Browser (Single Doxygen Collection)
Version of the Day
|
Derivative array storage class using dynamic memory allocation. More...
#include <Sacado_Fad_Exp_MemPoolStorage.hpp>
Classes | |
| struct | apply |
| Turn MemPoolStorage into a meta-function class usable with mpl::apply. More... | |
| struct | apply_N |
| Replace static derivative length. More... | |
Public Types | |
| typedef std::remove_cv< T >::type | value_type |
Public Member Functions | |
| KOKKOS_INLINE_FUNCTION | MemPoolStorage () |
| Default constructor. More... | |
| MemPoolStorage (const T &x) | |
| Constructor with value. More... | |
| MemPoolStorage (const int sz, const T &x, const DerivInit zero_out) | |
Constructor with size sz. More... | |
| MemPoolStorage (const MemPoolStorage &x) | |
| Copy constructor. More... | |
| ~MemPoolStorage () | |
| Destructor. More... | |
| MemPoolStorage & | operator= (const MemPoolStorage &x) |
| Assignment. More... | |
| int | size () const |
| Returns number of derivative components. More... | |
| KOKKOS_INLINE_FUNCTION int | length () const |
| Returns array length. More... | |
| void | resize (int sz) |
| Resize the derivative array to sz. More... | |
| void | resizeAndZero (int sz) |
| Resize the derivative array to sz. More... | |
| void | expand (int sz) |
| Expand derivative array to size sz. More... | |
| void | zero () |
| Zero out derivative array. More... | |
| const T & | val () const |
| Returns value. More... | |
| T & | val () |
| Returns value. More... | |
| const T * | dx () const |
| Returns derivative array. More... | |
| T | dx (int i) const |
Returns derivative component i with bounds checking. More... | |
| T & | fastAccessDx (int i) |
Returns derivative component i without bounds checking. More... | |
| const T & | fastAccessDx (int i) const |
Returns derivative component i without bounds checking. More... | |
Static Public Member Functions | |
| static void | setDefaultPool (MemPool *pool) |
| Set the default memory pool for new objects. More... | |
Static Public Attributes | |
| static constexpr bool | is_statically_sized = false |
| static constexpr int | static_size = 0 |
| static MemPool * | defaultPool_ |
| Default memory pool. More... | |
Protected Attributes | |
| MemPool * | myPool_ |
| Memory pool. More... | |
Private Attributes | |
| T | val_ |
| Value. More... | |
| int | sz_ |
| Derivative array size. More... | |
| int | len_ |
| Derivative array length. More... | |
| T * | dx_ |
| Derivative array. More... | |
Derivative array storage class using dynamic memory allocation.
Definition at line 177 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
| typedef std::remove_cv<T>::type Sacado::Fad::Exp::MemPoolStorage< T >::value_type |
Definition at line 181 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
inline |
Default constructor.
Definition at line 199 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
inline |
Constructor with value.
Definition at line 203 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
inline |
Constructor with size sz.
Initializes derivative array 0 of length sz
Definition at line 210 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
inline |
Copy constructor.
Definition at line 219 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
inline |
Destructor.
Definition at line 225 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
inline |
Assignment.
Definition at line 231 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
inlinestatic |
Set the default memory pool for new objects.
Definition at line 253 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
inline |
Returns number of derivative components.
Definition at line 258 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
inline |
Returns array length.
Definition at line 262 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
inline |
Resize the derivative array to sz.
Note: This does not necessarily preserve derivative components.
Definition at line 268 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
inline |
Resize the derivative array to sz.
This method doest not preserve any existing derivative components but sets any that are added to zero.
Definition at line 284 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
inline |
Expand derivative array to size sz.
This method preserves any existing derivative components and sets any that are added to zero.
Definition at line 302 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
inline |
Zero out derivative array.
Definition at line 317 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
inline |
Returns value.
Definition at line 322 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
inline |
Returns value.
Definition at line 325 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
inline |
Returns derivative array.
Definition at line 328 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
inline |
Returns derivative component i with bounds checking.
Definition at line 331 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
inline |
Returns derivative component i without bounds checking.
Definition at line 334 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
inline |
Returns derivative component i without bounds checking.
Definition at line 337 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
static |
Definition at line 182 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
static |
Definition at line 183 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
private |
Definition at line 342 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
private |
Derivative array size.
Definition at line 345 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
private |
Derivative array length.
Definition at line 348 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
private |
Derivative array.
Definition at line 351 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
static |
Default memory pool.
Definition at line 356 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
|
protected |
Memory pool.
Definition at line 361 of file Sacado_Fad_Exp_MemPoolStorage.hpp.
1.8.5