function r8ccs_read_test ( )

%*****************************************************************************80
%
%% r8ccs_read_test tests r8ccs_read.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 October 2015
%
%  Author:
%
%    John Burkardt
%
  a_file = 'r8ccs_a.txt';
  col_file = 'r8ccs_col.txt';
  row_file = 'r8ccs_row.txt';

  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8ccs_read_test\n' );
  fprintf ( 1, '  r8ccs_read reads an r8ccs matrix from a file.\n' );

  [ m, n, nz_num, base ] = r8ccs_read_size ( col_file, row_file );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix rows M     = %d\n', m );
  fprintf ( 1, '  Matrix columns N  = %d\n', n );
  fprintf ( 1, '  Nonzeros NZ_NUM   = %d\n', nz_num );
  fprintf ( 1, '  Index base (0/1)  = %d\n', base );

  [ col, row, a ] = r8ccs_read ( col_file, row_file, a_file, m, n, ...
    nz_num );

  i4vec_print ( n + 1, col, '  The COL vector:' );

  i4vec_print ( nz_num, row, '  The ROW vector:' );

  r8ccs_print ( m, n, nz_num, col, row, a, '  The r8ccs matrix:' );

  return
end
