function b = r8col_flip ( m, n, a )

%*****************************************************************************80
%
%% r8col_flip() flips the entries in each column of an R8COL.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 May 2017
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, N, the number of rows and columns.
%
%    real A(M,N), the array to be examined.
%
%  Output:
%
%    real B(M,N), the flipped array.
%
  import numpy as np

  b = zeros ( m, n );

  for i = 1 : m
    b[i,1:n] = a(m+1-i,1:n);
  end

  return
end
