function [ m, n, nst, ist, jst, ast ] = r8st_transpose ( m, n, nst, ist, ...
  jst, ast )

%*****************************************************************************80
%
%% r8st_transpose() transposes an R8ST matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 July 2014
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, the number of row.
%
%    integer N, the number of columns.
%
%    integer NST, the number of nonzeros.
%
%    integer IST(NST), JST(NST), the row and column indices.
%
%    real AST(NST), the nonzero values.
%
%  Output:
%
%    integer M, the number of row.
%
%    integer N, the number of columns.
%
%    integer NST, the number of nonzeros.
%
%    integer IST(NST), JST(NST), the row and column indices.
%
%    real AST(NST), the nonzero values.
%
  t = m;
  m = n;
  n = t;

  t          = ist(1:nst);
  ist(1:nst) = jst(1:nst);
  jst(1:nst) = t(1:nst);

  return
end
