function retval = objf (x)

  m = round (x(2));  n = round (x(1));

  p = 25;  q = 25;
  A = rand (m, n);
  N = 1000;

  tic;
  for i = 1:N
    tmp = repmatidx (A, p, q);
  endfor
  tm.idx = toc;

  tic;
  for i = 1:N
    tmp = repmatkron (A, p, q);
  endfor
  tm.kron = toc;

  retval = tm.idx - tm.kron;
  
endfunction
