function matrix_row_sum_test ( )

%*****************************************************************************80
%
%% matrix_row_sum_test() computes a matrix row sum using einsum().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    09 August 2026
%
%  Author:
%
%    John Burkardt
%  
  fprintf ( 1, '\n' );
  fprintf ( 1, '  matrix_row_sum_test():\n' );

  A = [ ...
    11, 12, 13; ...
    21, 22, 23; ...
    31, 32, 33 ];
  fprintf ( 1, '\n' );
  fprintf ( 1, '  A:\n' );
  disp ( A );

  Ar = einsum ( 'ij -> i', A );
  fprintf ( 1, '  Ar = einsum ( "ij -> i", A ):\n' );
  disp ( Ar );

  return
end

