public static CubicSpline[] oneDarray(int n, int m){
        	if(m<3)throw new IllegalArgumentException("A minimum of three data points is needed");
        	CubicSpline[] a =new CubicSpline[n];
	    	for(int i=0; i<n; i++){
	        	a[i]=CubicSpline.zero(m);
        	}
        	return a;
    	}