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

%*****************************************************************************80
%
%% i4st_transpose() transposes an I4ST matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 September 2018
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, the number of rows.
%
%    integer N, the number of columns.
%
%    integer NST, the number of nonzeros.
%
%    integer IST(NST), JST(NST), the row and column indices.
%
%    integer AST(NST), the nonzero values.
%
%  Output:
%
%    integer M, the number of rows.
%
%    integer N, the number of columns.
%
%    integer NST, the number of nonzeros.
%
%    integer IST(NST), JST(NST), the row and column indices.
%
%    integer 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
