Skip to content
Snippets Groups Projects
Commit b8e129bc authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

add a specialization for RealTuple<1>

[[Imported from SVN: r7383]]
parent 5a7d802f
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,30 @@ public: ...@@ -19,6 +19,30 @@ public:
}; };
/** \brief A class that creates sets of values of various types, to be used in unit tests
*
* This is the specialization for RealTuple<1>
*/
template <>
class ValueFactory<RealTuple<1> >
{
public:
static void get(std::vector<RealTuple<1> >& values) {
int nTestPoints = 5;
double testPoints[5] = {-3, -1, 0, 2, 4};
values.resize(nTestPoints);
// Set up elements of S^1
for (int i=0; i<nTestPoints; i++)
values[i] = RealTuple<1>(testPoints[i]);
}
};
/** \brief A class that creates sets of values of various types, to be used in unit tests /** \brief A class that creates sets of values of various types, to be used in unit tests
* *
* This is the specialization for UnitVector<2> * This is the specialization for UnitVector<2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment