Sacado Package Browser (Single Doxygen Collection)
Version of the Day
|
Derivative array storage class using dynamic memory allocation. More...
#include <Sacado_Fad_MemPoolStorage.hpp>
Public Types | |
typedef T | value_type |
Public Member Functions | |
template<typename S > | |
MemPoolStorage (const S &x, SACADO_ENABLE_VALUE_CTOR_DECL) | |
Default constructor. More... | |
MemPoolStorage (const int sz, const T &x, const DerivInit zero_out=InitDerivArray) | |
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... | |
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... | |
template<> | |
Sacado::Fad::MemPool * | defaultPool_ |
template<> | |
Sacado::Fad::MemPool * | defaultPool_ |
template<> | |
Sacado::Fad::MemPool * | defaultPool_ |
template<> | |
Sacado::Fad::MemPool * | defaultPool_ |
template<> | |
Sacado::Fad::MemPool * | defaultPool_ |
template<> | |
Sacado::Fad::MemPool * | defaultPool_ |
template<> | |
Sacado::Fad::MemPool * | defaultPool_ |
template<> | |
Sacado::Fad::MemPool * | defaultPool_ |
template<> | |
Sacado::Fad::MemPool * | defaultPool_ |
template<> | |
Sacado::Fad::MemPool * | defaultPool_ |
Static Public Attributes | |
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 194 of file Sacado_Fad_MemPoolStorage.hpp.
typedef T Sacado::Fad::MemPoolStorage< T >::value_type |
Definition at line 198 of file Sacado_Fad_MemPoolStorage.hpp.
|
inline |
Default constructor.
Definition at line 202 of file Sacado_Fad_MemPoolStorage.hpp.
|
inline |
Constructor with size sz
.
Initializes derivative array 0 of length sz
Definition at line 209 of file Sacado_Fad_MemPoolStorage.hpp.
|
inline |
Copy constructor.
Definition at line 218 of file Sacado_Fad_MemPoolStorage.hpp.
|
inline |
Destructor.
Definition at line 224 of file Sacado_Fad_MemPoolStorage.hpp.
|
inline |
Assignment.
Definition at line 230 of file Sacado_Fad_MemPoolStorage.hpp.
|
inline |
Returns number of derivative components.
Definition at line 252 of file Sacado_Fad_MemPoolStorage.hpp.
|
inline |
Resize the derivative array to sz.
Note: This does not necessarily preserve derivative components.
Definition at line 258 of file Sacado_Fad_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 274 of file Sacado_Fad_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 292 of file Sacado_Fad_MemPoolStorage.hpp.
|
inline |
Zero out derivative array.
Definition at line 307 of file Sacado_Fad_MemPoolStorage.hpp.
|
inline |
Returns value.
Definition at line 312 of file Sacado_Fad_MemPoolStorage.hpp.
|
inline |
Returns value.
Definition at line 315 of file Sacado_Fad_MemPoolStorage.hpp.
|
inline |
Returns derivative array.
Definition at line 318 of file Sacado_Fad_MemPoolStorage.hpp.
|
inline |
Returns derivative component i
with bounds checking.
Definition at line 321 of file Sacado_Fad_MemPoolStorage.hpp.
|
inline |
Returns derivative component i
without bounds checking.
Definition at line 324 of file Sacado_Fad_MemPoolStorage.hpp.
|
inline |
Returns derivative component i
without bounds checking.
Definition at line 327 of file Sacado_Fad_MemPoolStorage.hpp.
Sacado::Fad::MemPool * Sacado::Fad::MemPoolStorage< double >::defaultPool_ | ( | ) |
Definition at line 49 of file dmfad_example.cpp.
Sacado::Fad::MemPool * Sacado::Fad::MemPoolStorage< double >::defaultPool_ | ( | ) |
Definition at line 46 of file fad_expr.cpp.
Sacado::Fad::MemPool * Sacado::Fad::MemPoolStorage< double >::defaultPool_ | ( | ) |
Definition at line 41 of file fad_fe_jac_fill.cpp.
Sacado::Fad::MemPool * Sacado::Fad::MemPoolStorage< double >::defaultPool_ | ( | ) |
Definition at line 45 of file fad_lj_grad.cpp.
Sacado::Fad::MemPool * Sacado::Fad::MemPoolStorage< double >::defaultPool_ | ( | ) |
Definition at line 42 of file TraitsTests.cpp.
Sacado::Fad::MemPool * Sacado::Fad::MemPoolStorage< Sacado::Fad::DMFad< double > >::defaultPool_ | ( | ) |
Definition at line 44 of file TraitsTests.cpp.
Sacado::Fad::MemPool * Sacado::Fad::MemPoolStorage< double >::defaultPool_ | ( | ) |
Definition at line 250 of file ConversionTests.cpp.
Sacado::Fad::MemPool * Sacado::Fad::MemPoolStorage< Sacado::Fad::DMFad< double > >::defaultPool_ | ( | ) |
Definition at line 252 of file ConversionTests.cpp.
Sacado::Fad::MemPool * Sacado::Fad::MemPoolStorage< double >::defaultPool_ | ( | ) |
Definition at line 429 of file Fad_SerializationTests.cpp.
Sacado::Fad::MemPool * Sacado::Fad::MemPoolStorage< Sacado::Fad::DMFad< double > >::defaultPool_ | ( | ) |
Definition at line 431 of file Fad_SerializationTests.cpp.
|
private |
Definition at line 332 of file Sacado_Fad_MemPoolStorage.hpp.
|
private |
Derivative array size.
Definition at line 335 of file Sacado_Fad_MemPoolStorage.hpp.
|
private |
Derivative array length.
Definition at line 338 of file Sacado_Fad_MemPoolStorage.hpp.
|
private |
Derivative array.
Definition at line 341 of file Sacado_Fad_MemPoolStorage.hpp.
|
static |
Default memory pool.
Definition at line 346 of file Sacado_Fad_MemPoolStorage.hpp.
|
protected |
Memory pool.
Definition at line 351 of file Sacado_Fad_MemPoolStorage.hpp.