function [ l, u ] = minij_lu ( n )

%*****************************************************************************80
%
%% minij_lu() returns the LU factors of the MINIJ matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    28 October 2021
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of the matrix.
%
%  Output:
%
%    real L(N,N), U(N,N) the LU factors.
%
  for j = 1 : n
    for i = 1 : j - 1
      l(i,j) = 0.0;
    end
    for i = j : n
      l(i,j) = 1.0;
    end
  end

  for j = 1 : n
    for i = 1 : j
      u(i,j) = 1.0;
    end
    for i = j + 1 : n
      u(i,j) = 0.0;
    end
  end

  return
end
