17 #if SACADO_ENABLE_NEW_DESIGN
30 typedef double value_type;
37 x.fastAccessDx(
i) = value_type(2.0+
i);
40 ad_type
y = std::move(
x);
60 typedef double value_type;
65 ad_type
x(global_fad_size, value_type(1.5));
67 x.fastAccessDx(
i) = value_type(2.0+
i);
70 ad_type y = std::move(
x);
90 typedef double value_type;
95 ad_type
x(global_fad_size, value_type(1.5));
97 x.fastAccessDx(
i) = value_type(2.0+
i);
100 ad_type y = std::move(
x);
110 value_type *null_ptr =
nullptr;
118 typedef double value_type;
123 ad_type
x(global_fad_size, value_type(1.5));
125 x.fastAccessDx(
i) = value_type(2.0+
i);
128 ad_type y = std::move(
x);
148 typedef double value_type;
153 value_type x_val = value_type(1.5);
154 std::vector<value_type> x_dx(global_fad_size);
156 x_dx[
i] = value_type(2.0+
i);
157 ad_type
x(global_fad_size, &x_val, x_dx.data(), 1,
false);
160 ad_type y = std::move(
x);
180 typedef double value_type;
186 value_type x_val = value_type(1.5);
187 std::vector<value_type> x_dx(global_fad_size);
189 x_dx[
i] = value_type(2.0+
i);
193 ad_type y = std::move(
x);
218 typedef double value_type;
223 ad_type
x(global_fad_size, value_type(1.5));
225 x.fastAccessDx(
i) = value_type(2.0+
i);
249 typedef double value_type;
254 ad_type
x(global_fad_size, value_type(1.5));
256 x.fastAccessDx(
i) = value_type(2.0+
i);
280 typedef double value_type;
285 ad_type
x(global_fad_size, value_type(1.5));
287 x.fastAccessDx(
i) = value_type(2.0+
i);
301 value_type *null_ptr =
nullptr;
309 typedef double value_type;
314 ad_type
x(global_fad_size, value_type(1.5));
316 x.fastAccessDx(
i) = value_type(2.0+
i);
340 typedef double value_type;
345 value_type x_val = value_type(1.5);
346 std::vector<value_type> x_dx(global_fad_size);
348 x_dx[
i] = value_type(2.0+
i);
349 ad_type
x(global_fad_size, &x_val, x_dx.data(), 1,
false);
373 typedef double value_type;
379 value_type x_val = value_type(1.5);
380 std::vector<value_type> x_dx(global_fad_size);
382 x_dx[
i] = value_type(2.0+
i);
386 value_type y_val = value_type(0.5);
387 std::vector<value_type> y_dx(global_fad_size);
389 y_dx[
i] = value_type(20.0+
i);
412 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