static double[] toDoubleArray(Cl l) { double[] a = new double[l(l)]; int i = 0; if (a.length != 0) for (double x : l) a[i++] = x; ret a; }