#include <Sacado_Fad_StaticStorage.hpp>
Collaboration diagram for Sacado::Fad::StaticStorage< T, Num >:

Public Member Functions | |
| StaticStorage (const T &x) | |
| Default constructor. | |
| StaticStorage (const int sz, const T &x) | |
Constructor with size sz. | |
| StaticStorage (const StaticStorage &x) | |
| Copy constructor. | |
| ~StaticStorage () | |
| Destructor. | |
| StaticStorage & | operator= (const StaticStorage &x) |
| Assignment. | |
| int | size () const |
| Returns number of derivative components. | |
| void | resize (int sz) |
| Resize the derivative array to sz. | |
| void | zero () |
| Zero out derivative array. | |
Public Attributes | |
| T | val_ |
| Value. | |
| T | dx_ [Num] |
| Derivative array. | |
| int | sz_ |
| Size of derivative array. | |
This class uses a statically allocated array whose dimension is fixed by the template parameter Num.
| Sacado::Fad::StaticStorage< T, Num >::StaticStorage | ( | const int | sz, | |
| const T & | x | |||
| ) | [inline] |
Constructor with size sz.
Initializes derivative array 0 of length sz
1.4.7