public static double[] ones(int L){
  double m[]=new double[L];
  Arrays.fill(m,1.);
  return m;
}

public static double [ ] ones ( int L ) { double m [ ] = new double [ L ] ; Arrays . fill ( m , 1. ) ; return m ; }
ones - return a vector full of 1s .
