37 #if SACADO_ENABLE_NEW_DESIGN
50 typedef double value_type;
57 x.fastAccessDx(i) = value_type(2.0+i);
60 ad_type y = std::move(x);
80 typedef double value_type;
85 ad_type x(global_fad_size, value_type(1.5));
87 x.fastAccessDx(i) = value_type(2.0+i);
90 ad_type y = std::move(x);
110 typedef double value_type;
115 ad_type x(global_fad_size, value_type(1.5));
117 x.fastAccessDx(i) = value_type(2.0+i);
120 ad_type y = std::move(x);
130 value_type *null_ptr =
nullptr;
138 typedef double value_type;
143 ad_type x(global_fad_size, value_type(1.5));
145 x.fastAccessDx(i) = value_type(2.0+i);
148 ad_type y = std::move(x);
168 typedef double value_type;
173 value_type x_val = value_type(1.5);
174 std::vector<value_type> x_dx(global_fad_size);
176 x_dx[i] = value_type(2.0+i);
177 ad_type x(global_fad_size, &x_val, x_dx.data(), 1,
false);
180 ad_type y = std::move(x);
200 typedef double value_type;
206 value_type x_val = value_type(1.5);
207 std::vector<value_type> x_dx(global_fad_size);
209 x_dx[i] = value_type(2.0+i);
213 ad_type y = std::move(x);
238 typedef double value_type;
243 ad_type x(global_fad_size, value_type(1.5));
245 x.fastAccessDx(i) = value_type(2.0+i);
269 typedef double value_type;
274 ad_type x(global_fad_size, value_type(1.5));
276 x.fastAccessDx(i) = value_type(2.0+i);
300 typedef double value_type;
305 ad_type x(global_fad_size, value_type(1.5));
307 x.fastAccessDx(i) = value_type(2.0+i);
321 value_type *null_ptr =
nullptr;
329 typedef double value_type;
334 ad_type x(global_fad_size, value_type(1.5));
336 x.fastAccessDx(i) = value_type(2.0+i);
360 typedef double value_type;
365 value_type x_val = value_type(1.5);
366 std::vector<value_type> x_dx(global_fad_size);
368 x_dx[i] = value_type(2.0+i);
369 ad_type x(global_fad_size, &x_val, x_dx.data(), 1,
false);
393 typedef double value_type;
399 value_type x_val = value_type(1.5);
400 std::vector<value_type> x_dx(global_fad_size);
402 x_dx[i] = value_type(2.0+i);
406 value_type y_val = value_type(0.5);
407 std::vector<value_type> y_dx(global_fad_size);
409 y_dx[i] = value_type(20.0+i);
432 int main(
int argc,
char* argv[] ) {
#define TEST_INEQUALITY(v1, v2)
#define TEST_EQUALITY_CONST(v1, v2)
const int global_fad_size
GeneralFad< StaticStorage< T, Num > > SLFad
TEUCHOS_UNIT_TEST(Conversion, IsConvertible)
static int runUnitTestsFromMain(int argc, char *argv[])
GeneralFad< DynamicStorage< T > > DFad
Forward-mode AD class templated on the storage for the derivative array.
#define TEST_EQUALITY(v1, v2)
GeneralFad< ViewStorage< T, static_length, static_stride, U > > ViewFad
GeneralFad< StaticFixedStorage< T, Num > > SFad