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

test a constant function as well

[[Imported from SVN: r5918]]
parent 06309292
No related branches found
No related tags found
No related merge requests found
......@@ -143,6 +143,7 @@ void testUnitVectors()
std::vector<TargetSpace> corners(dim+1);
// test some simplex
FieldVector<double,3> input;
input[0] = 1; input[1] = 0; input[2] = 0;
corners[0] = input;
......@@ -153,6 +154,15 @@ void testUnitVectors()
testPermutationInvariance(corners);
testDerivative(corners);
// test the constant function, i.e., everything is mapped onto a single point
input[0] = 1; input[1] = 0; input[2] = 0;
corners[0] = input;
corners[1] = input;
corners[2] = input;
testPermutationInvariance(corners);
testDerivative(corners);
}
void testUnitVectors2()
......
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