assertEquals(resultPos.getOrder(), resultPosFlip.getOrder());
final int nPts = 101;
for (int i = 0; i < 101; ++i) {
final double key = 1. + 5. / (nPts - 1) * i;
assertTrue(function.evaluate(resultPos, key).getData()[0] >= 0.);
assertTrue(function.evaluate(resultPos, key).getData()[1] >= 0.);
}
final int dim = yValues.length;
final int nData = xValues.length;