coefsLinConst[2][0] = new DoubleMatrix2D(new double[][] { {2. }, {2. * 2. } });
coefsLinConst[0][1] = new DoubleMatrix2D(new double[][] { {2. }, {3. * 2. } });
coefsLinConst[1][1] = new DoubleMatrix2D(new double[][] { {2. }, {3. * 2. } });
coefsLinConst[2][1] = new DoubleMatrix2D(new double[][] { {2. }, {3. * 2. } });
PiecewisePolynomialResult2D result = new PiecewisePolynomialResult2D(knots0, knots1, coefsLinConst, new int[] {2, 1 });
PiecewisePolynomialFunction2D function = new PiecewisePolynomialFunction2D();
final int n0Keys = 21;
final int n1Keys = 31;
double[] x0Keys = new double[n0Keys];