function ival = c8mat_is_unit_column ( m, n, a )

%*****************************************************************************80
%
%% c8mat_is_unit_column() checks whether A has columns of unit Euclidean norm.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 October 2007
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, N, the row and column dimensions 
%    of the matrix.  M and N must be positive.
%
%    complex A(M,N), the matrix.
%
%  Output:
%
%    Output, integer IVAL:
%    -1, the matrix is not column normalized.
%    1, the matrix is column normalized.
%
  tol = 0.0001;

  for j = 1 : n

    if ( tol < abs ( 1.0 - norm ( a(1:m,j) ) ) )
      ival = -1;
      return
    end

  end

  ival = 1;

  return
end
