function lsq_debug_int_vec(nx,x,fmt)
%void lsq_debug_int_vec(int nx, int x[], char *fmt)
%These procedures print {x[0..nx-1]} to {stderr}, each with format {fmt},
    %separated by spaces and bracketed by '[' and ']'.

  fprintf(stderr, '[');
    
    for j = 1:nx
      fprintf(stderr, ' '); fprintf(stderr, fmt, x(j)); 
    end
    fprintf(stderr, ' ]');
  
