function roff = r8cvv_offset ( m, nr )

%*****************************************************************************80
%
%% r8cvv_offset() determines the row offsets of an R8CVV.
%
%  Discussion:
%
%    An R8CVV is a "vector of vectors" of R8's.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 November 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, the number of rows in the array.
%
%    integer NR(M), the row sizes.
%
%  Output:
%
%    integer ROFF(M+1), the row offsets.
%
  roff = zeros ( m + 1, 1 );

  roff(1) = 0;
  for i = 1 : m
    roff(i+1) = roff(i) + nr(i);
  end

  return
end
