48 template <
class Container>
63 typedef Sacado::mpl::vector<double,FadType> MyTypes;
66 typedef Sacado::TemplateContainer< MyTypes,MyClass<_> > MyObjects;
70 std::cout << myObjects.get<
double>().x << std::endl;
71 std::cout << myObjects.get<FadType>().x << std::endl << std::endl;
75 std::cout << myObjects.get<
double>().x << std::endl;
76 std::cout << myObjects.get<FadType>().x << std::endl << std::endl;
80 std::cout << myObjects.get<
double>().x << std::endl;
81 std::cout << myObjects.get<FadType>().x << std::endl << std::endl;
85 std::cout << myObjects.get<
double>().x << std::endl;
86 std::cout << myObjects.get<FadType>().x << std::endl << std::endl;
89 bool passed = ( myObjects.get<
double>().x == 3.0 &&
90 myObjects.get<FadType>().x.val() == 3.0 );
92 std::cout <<
"Test Passed!" << std::endl;
94 std::cout <<
"Test Failed!" << std::endl;
108 return passed ? 0 : 1;
Sacado::Fad::DFad< double > FadType
SetFunctor(Container &c, double v)
expr expr1 expr1 expr1 c expr2 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr1 c expr2 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr1 c *expr2 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr1 c expr2 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr2 expr1 expr2 expr1 expr1 expr1 c