function a = c8vec_indicator ( n )

%*****************************************************************************80
%
%% c8vec_indicator() sets a C8VEC to the indicator vector.
%
%  Discussion:
%
%    X(1:N) = ( 1-1i, 2-2i, 3-3i, 4-4i, ... )
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 September 2006
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of elements of A.
%
%  Output:
%
%    complex A(N), the array to be initialized.
%
  for j = 1 : n
    a(j) = j - j * i;
  end

  return
end
