function r8ge_to_r8crs_test ( )

%*****************************************************************************80
%
%% r8ge_to_r8crs_test tests r8ge_to_r8crs.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2020
%
%  Author:
%
%    John Burkardt
%
  A = sparse( [1, 5, 2, 1], [1, 1, 5, 3], [1,2,3,4], 5, 5 )

  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8ge_to_r8crs_test\n' );
  fprintf ( 1, '  r8ge_to_r8crs converts a general storage (GE)\n' );
  fprintf ( 1, '  matrix to compressed row storage (CRS).\n' );

  [ n, nz, row, col, val ] = r8ge_to_r8crs ( A );

  r8crs_print ( n, nz, row, col, val, '  The R8CRS matrix:' );

  return
end
