## Copyright (C) 2026 The Octave Project Developers
##
## This file is part of Octave.
##
## Octave is free software: you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## Octave is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Octave; see the file COPYING.  If not, see
## <https://www.gnu.org/licenses/>.

## -*- texinfo -*-
## @deftypefn {} {@var{t} =} tall (@var{data})
## Create a tall array from @var{data}.
##
## @var{data} can be:
## @itemize
## @item A matrix or array (converted to tall array for lazy evaluation)
## @item A filename string (CSV or MAT file)
## @end itemize
##
## Tall arrays enable out-of-core processing of large datasets that don't fit
## in memory. Operations on tall arrays are lazy-evaluated until @code{gather()}
## is called.
##
## Example:
## @example
## @group
## t = tall (rand (1e6, 100));  % Create tall array from matrix
## s = sum (t);                 % Lazy operation
## result = gather (s);         % Force evaluation
## @end group
## @end example
## @seealso{gather, head, tail}
## @end deftypefn

function t = tall (data)
  if (nargin != 1)
    print_usage ();
  endif

  t = __tall__ (data);  # Call builtin function
endfunction

