Sacado Package Browser (Single Doxygen Collection) Version of the Day
|
Derivative array storage class using dynamic memory allocation. More...
#include <Sacado_Fad_Exp_VectorDynamicStorage.hpp>
Classes | |
struct | apply |
Turn DynamicStorage 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 |
Static Public Attributes | |
static constexpr bool | is_statically_sized = false |
static constexpr int | static_size = 0 |
static constexpr bool | is_view = false |
Private Attributes | |
T | v_ |
bool | owns_mem |
Do we own the val/dx storage. | |
int | sz_ |
Derivative array size. | |
int | len_ |
Derivative array length. | |
int | stride_ |
Derivative array stride. | |
T * | val_ |
Value. | |
U * | dx_ |
Derivative array. | |
Derivative array storage class using dynamic memory allocation.
Definition at line 46 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
typedef std::remove_cv<T>::type Sacado::Fad::Exp::VectorDynamicStorage< T, U >::value_type |
Definition at line 50 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
inline |
Default constructor.
Definition at line 69 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
inline |
Constructor with value.
Definition at line 76 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
inline |
Constructor with size sz
.
Initializes derivative array 0 of length sz
Definition at line 86 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
inline |
Constructor with size sz
, index i
, and value x
.
Initializes value to x
and derivative array of length sz
as row i
of the identity matrix, i.e., sets derivative component i
to 1 and all other's to zero.
Definition at line 102 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
inline |
Constructor with supplied memory.
Definition at line 109 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
inline |
Copy constructor.
Definition at line 119 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
inline |
Destructor.
Definition at line 131 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
inline |
Assignment.
Definition at line 140 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
inline |
Returns number of derivative components.
Definition at line 170 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
inline |
Returns array length.
Definition at line 174 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
inline |
Resize the derivative array to sz.
Note: This does not necessarily preserve derivative components.
Definition at line 181 of file Sacado_Fad_Exp_VectorDynamicStorage.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 201 of file Sacado_Fad_Exp_VectorDynamicStorage.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 223 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
inline |
Zero out derivative array.
Definition at line 243 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
inline |
Set value/derivative array memory.
Definition at line 249 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
inline |
Returns value.
Definition at line 268 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
inline |
Returns value.
Definition at line 272 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
inline |
Returns derivative array.
Definition at line 276 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
inline |
Returns derivative component i
with bounds checking.
Definition at line 280 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
inline |
Returns derivative component i
without bounds checking.
Definition at line 284 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
inline |
Returns derivative component i
without bounds checking.
Definition at line 288 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
staticconstexpr |
Definition at line 51 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
staticconstexpr |
Definition at line 52 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
Definition at line 53 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
Definition at line 292 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
private |
Do we own the val/dx storage.
Definition at line 297 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
private |
Derivative array size.
Definition at line 300 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
private |
Derivative array length.
Definition at line 303 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
private |
Derivative array stride.
Definition at line 306 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
private |
Definition at line 309 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.
|
private |
Derivative array.
Definition at line 312 of file Sacado_Fad_Exp_VectorDynamicStorage.hpp.