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 > | |
KOKKOS_INLINE_FUNCTION | StaticStorage (const S &x, SACADO_ENABLE_VALUE_CTOR_DECL) |
Default constructor. More... | |
KOKKOS_INLINE_FUNCTION | StaticStorage (const int sz, const T &x, const DerivInit zero_out=InitDerivArray) |
Constructor with size sz . More... | |
KOKKOS_INLINE_FUNCTION | StaticStorage (const StaticStorage &x) |
Copy constructor. More... | |
KOKKOS_INLINE_FUNCTION | ~StaticStorage () |
Destructor. More... | |
KOKKOS_INLINE_FUNCTION StaticStorage & | operator= (const StaticStorage &x) |
Assignment. More... | |
KOKKOS_INLINE_FUNCTION int | size () const |
Returns number of derivative components. More... | |
KOKKOS_INLINE_FUNCTION int | length () const |
Returns array length. More... | |
KOKKOS_INLINE_FUNCTION void | resize (int sz) |
Resize the derivative array to sz. More... | |
KOKKOS_INLINE_FUNCTION void | resizeAndZero (int sz) |
Resize the derivative array to sz. More... | |
KOKKOS_INLINE_FUNCTION void | expand (int sz) |
Expand derivative array to size sz. More... | |
KOKKOS_INLINE_FUNCTION void | zero () |
Zero out derivative array. More... | |
KOKKOS_INLINE_FUNCTION const T & | val () const |
Returns value. More... | |
KOKKOS_INLINE_FUNCTION T & | val () |
Returns value. More... | |
KOKKOS_INLINE_FUNCTION const T * | dx () const |
Returns derivative array. More... | |
KOKKOS_INLINE_FUNCTION T | dx (int i) const |
Returns derivative component i with bounds checking. More... | |
KOKKOS_INLINE_FUNCTION T & | fastAccessDx (int i) |
Returns derivative component i without bounds checking. More... | |
KOKKOS_INLINE_FUNCTION const T & | fastAccessDx (int i) const |
Returns derivative component i without 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 46 of file Sacado_Fad_StaticStorage.hpp.
typedef T Sacado::Fad::StaticStorage< T, Num >::value_type |
Definition at line 50 of file Sacado_Fad_StaticStorage.hpp.
|
inline |
Default constructor.
Definition at line 55 of file Sacado_Fad_StaticStorage.hpp.
|
inline |
Constructor with size sz
.
Initializes derivative array 0 of length sz
Definition at line 63 of file Sacado_Fad_StaticStorage.hpp.
|
inline |
Copy constructor.
Definition at line 75 of file Sacado_Fad_StaticStorage.hpp.
|
inline |
Destructor.
Definition at line 84 of file Sacado_Fad_StaticStorage.hpp.
|
inline |
Assignment.
Definition at line 88 of file Sacado_Fad_StaticStorage.hpp.
|
inline |
Returns number of derivative components.
Definition at line 101 of file Sacado_Fad_StaticStorage.hpp.
|
inline |
Returns array length.
Definition at line 105 of file Sacado_Fad_StaticStorage.hpp.
|
inline |
Resize the derivative array to sz.
Definition at line 109 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 123 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 139 of file Sacado_Fad_StaticStorage.hpp.
|
inline |
Zero out derivative array.
Definition at line 152 of file Sacado_Fad_StaticStorage.hpp.
|
inline |
Returns value.
Definition at line 156 of file Sacado_Fad_StaticStorage.hpp.
|
inline |
Returns value.
Definition at line 160 of file Sacado_Fad_StaticStorage.hpp.
|
inline |
Returns derivative array.
Definition at line 164 of file Sacado_Fad_StaticStorage.hpp.
|
inline |
Returns derivative component i
with bounds checking.
Definition at line 168 of file Sacado_Fad_StaticStorage.hpp.
|
inline |
Returns derivative component i
without bounds checking.
Definition at line 172 of file Sacado_Fad_StaticStorage.hpp.
|
inline |
Returns derivative component i
without bounds checking.
Definition at line 176 of file Sacado_Fad_StaticStorage.hpp.
|
protected |
Definition at line 181 of file Sacado_Fad_StaticStorage.hpp.
|
protected |
Derivative array.
Definition at line 184 of file Sacado_Fad_StaticStorage.hpp.
|
protected |
Size of derivative array.
Definition at line 187 of file Sacado_Fad_StaticStorage.hpp.