Mercurial > octave
view examples/code/helloworld.cc @ 31246:43a6be589387
doc: New documentation for memoization techniques (bug #60860)
vectorize.texi: New section on memoization
octave.texi: List new section
author | Arun Giridhar <arungiridhar@gmail.com> |
---|---|
date | Thu, 29 Sep 2022 20:31:52 -0400 |
parents | 185f850aa543 |
children |
line wrap: on
line source
#include <octave/oct.h> DEFUN_DLD (helloworld, args, nargout, "Hello World Help String") { octave_stdout << "Hello World has " << args.length () << " input arguments and " << nargout << " output arguments.\n"; // Return empty matrices for any outputs octave_value_list retval (nargout); for (int i = 0; i < nargout; i++) retval(i) = octave_value (Matrix ()); return retval; }