MCPcopy Create free account
hub / github.com/coin-or/CppAD / ForTwo

Function ForTwo

example/general/for_two.cpp:92–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90# include <vector>
91# include <valarray>
92bool ForTwo(void)
93{ bool ok = true;
94 // Run with BaseVector equal to three different cases
95 // all of which are Simple Vectors with elements of type double.
96 ok &= ForTwoCases< CppAD::vector <double>, std::vector<size_t> >();
97 ok &= ForTwoCases< std::vector <double>, std::vector<size_t> >();
98 ok &= ForTwoCases< std::valarray <double>, std::vector<size_t> >();
99
100 // Run with SizeVector_t equal to two other cases
101 // which are Simple Vectors with elements of type size_t.
102 ok &= ForTwoCases< std::vector <double>, CppAD::vector<size_t> >();
103 ok &= ForTwoCases< std::vector <double>, std::valarray<size_t> >();
104
105 return ok;
106}
107// END C++

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected