| Sacado Package Browser (Single Doxygen Collection)
    Version of the Day
    | 
Derivative array storage class using static memory allocation. More...
#include <Sacado_Fad_StaticStorage.hpp>
| Public Types | |
| typedef T | value_type | 
| Public Member Functions | |
| template<typename S > | |
| SACADO_INLINE_FUNCTION | StaticStorage (const S &x, SACADO_ENABLE_VALUE_CTOR_DECL) | 
| Default constructor.  More... | |
| SACADO_INLINE_FUNCTION | StaticStorage (const int sz, const T &x, const DerivInit zero_out=InitDerivArray) | 
| Constructor with size sz.  More... | |
| SACADO_INLINE_FUNCTION | StaticStorage (const StaticStorage &x) | 
| Copy constructor.  More... | |
| SACADO_INLINE_FUNCTION | ~StaticStorage () | 
| Destructor.  More... | |
| SACADO_INLINE_FUNCTION StaticStorage & | operator= (const StaticStorage &x) | 
| Assignment.  More... | |
| SACADO_INLINE_FUNCTION int | size () const | 
| Returns number of derivative components.  More... | |
| SACADO_INLINE_FUNCTION int | length () const | 
| Returns array length.  More... | |
| SACADO_INLINE_FUNCTION void | resize (int sz) | 
| Resize the derivative array to sz.  More... | |
| SACADO_INLINE_FUNCTION void | resizeAndZero (int sz) | 
| Resize the derivative array to sz.  More... | |
| SACADO_INLINE_FUNCTION void | expand (int sz) | 
| Expand derivative array to size sz.  More... | |
| SACADO_INLINE_FUNCTION void | zero () | 
| Zero out derivative array.  More... | |
| SACADO_INLINE_FUNCTION const T & | val () const | 
| Returns value.  More... | |
| SACADO_INLINE_FUNCTION T & | val () | 
| Returns value.  More... | |
| SACADO_INLINE_FUNCTION const T * | dx () const | 
| Returns derivative array.  More... | |
| SACADO_INLINE_FUNCTION T | dx (int i) const | 
| Returns derivative component iwith bounds checking.  More... | |
| SACADO_INLINE_FUNCTION T & | fastAccessDx (int i) | 
| Returns derivative component iwithout bounds checking.  More... | |
| SACADO_INLINE_FUNCTION const T & | fastAccessDx (int i) const | 
| Returns derivative component iwithout bounds checking.  More... | |
| Protected Attributes | |
| T | val_ | 
| Value.  More... | |
| T | dx_ [Num] | 
| Derivative array.  More... | |
| int | sz_ | 
| Size of derivative array.  More... | |
Derivative array storage class using static memory allocation.
This class uses a statically allocated array whose dimension is fixed by the template parameter Num. 
Definition at line 43 of file Sacado_Fad_StaticStorage.hpp.
| typedef T Sacado::Fad::StaticStorage< T, Num >::value_type | 
Definition at line 47 of file Sacado_Fad_StaticStorage.hpp.
| 
 | inline | 
Default constructor.
Definition at line 52 of file Sacado_Fad_StaticStorage.hpp.
| 
 | inline | 
Constructor with size sz. 
Initializes derivative array 0 of length sz 
Definition at line 60 of file Sacado_Fad_StaticStorage.hpp.
| 
 | inline | 
Copy constructor.
Definition at line 72 of file Sacado_Fad_StaticStorage.hpp.
| 
 | inline | 
Destructor.
Definition at line 81 of file Sacado_Fad_StaticStorage.hpp.
| 
 | inline | 
Assignment.
Definition at line 85 of file Sacado_Fad_StaticStorage.hpp.
| 
 | inline | 
Returns number of derivative components.
Definition at line 98 of file Sacado_Fad_StaticStorage.hpp.
| 
 | inline | 
Returns array length.
Definition at line 102 of file Sacado_Fad_StaticStorage.hpp.
| 
 | inline | 
Resize the derivative array to sz.
Definition at line 106 of file Sacado_Fad_StaticStorage.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 120 of file Sacado_Fad_StaticStorage.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 136 of file Sacado_Fad_StaticStorage.hpp.
| 
 | inline | 
Zero out derivative array.
Definition at line 149 of file Sacado_Fad_StaticStorage.hpp.
| 
 | inline | 
Returns value.
Definition at line 153 of file Sacado_Fad_StaticStorage.hpp.
| 
 | inline | 
Returns value.
Definition at line 157 of file Sacado_Fad_StaticStorage.hpp.
| 
 | inline | 
Returns derivative array.
Definition at line 161 of file Sacado_Fad_StaticStorage.hpp.
| 
 | inline | 
Returns derivative component i with bounds checking. 
Definition at line 165 of file Sacado_Fad_StaticStorage.hpp.
| 
 | inline | 
Returns derivative component i without bounds checking. 
Definition at line 169 of file Sacado_Fad_StaticStorage.hpp.
| 
 | inline | 
Returns derivative component i without bounds checking. 
Definition at line 173 of file Sacado_Fad_StaticStorage.hpp.
| 
 | protected | 
Definition at line 178 of file Sacado_Fad_StaticStorage.hpp.
| 
 | protected | 
Derivative array.
Definition at line 181 of file Sacado_Fad_StaticStorage.hpp.
| 
 | protected | 
Size of derivative array.
Definition at line 184 of file Sacado_Fad_StaticStorage.hpp.
 1.8.5
 1.8.5