function [ l, u ] = givens_lu ( n )

%*****************************************************************************80
%
%% givens_lu() returns the LU factors of the GIVENS 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.
%
  l = zeros ( n, n );

  for j = 1 : n
    for i = j : n
      l(i,j) = 1.0;
    end
  end

  u = zeros ( n, n );

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

  for i = 2 : n
    for j = i : n
      u(i,j) = 2.0;
    end
  end

  return
end
