Mercurial > octave
comparison scripts/legacy/@inline/formula.m @ 30911:b7edac56a810
Add functions to @inline class for Matlab compatibility (Bug #62260).
* scripts/legacy/@inline/cat.m, scripts/legacy/@inline/cat.m,
scripts/legacy/@inline/disp.m, scripts/legacy/@inline/exist.m,
scripts/legacy/@inline/horzcat.m, scripts/legacy/@inline/nargin.m,
scripts/legacy/@inline/nargout.m, scripts/legacy/@inline/symvar.m,
scripts/legacy/@inline/vertcat.m: New functions
* scripts/legacy/module.mk: Add new functions to build system.
* scripts/legacy/@inline/argnames.m: scripts/legacy/@inline/char.m,
scripts/legacy/@inline/feval.m, scripts/legacy/@inline/formula.m,
scripts/legacy/@inline/subsref.m, scripts/legacy/@inline/vectorize.m:
Redo documentation. Change FCN input name to FOBJ.
* scripts/legacy/@inline/inline.m: Single tweak to documentation.
* scripts/legacy/__vectorize__.m: Add note that this function was translated
from C++.
* scripts/legacy/vectorize.m: Remove incorrect note about function being
translated from C++.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 06 Apr 2022 21:25:58 -0700 |
parents | 78c3dcadf130 |
children | 597f3ee61a48 |
comparison
equal
deleted
inserted
replaced
30910:78c3dcadf130 | 30911:b7edac56a810 |
---|---|
22 ## <https://www.gnu.org/licenses/>. | 22 ## <https://www.gnu.org/licenses/>. |
23 ## | 23 ## |
24 ######################################################################## | 24 ######################################################################## |
25 | 25 |
26 ## -*- texinfo -*- | 26 ## -*- texinfo -*- |
27 ## @deftypefn {} {@var{fcnstr} =} formula (@var{fcn}) | 27 ## @deftypefn {} {@var{fcnstr} =} formula (@var{fobj}) |
28 ## Return a character string representing the inline function @var{fcn}. | 28 ## Return a character string representing the inline function @var{fobj}. |
29 ## | 29 ## |
30 ## Note that @code{char (@var{fcn})} is equivalent to | 30 ## Programming Note: @code{char (@var{fobj})} is equivalent to |
31 ## @code{formula (@var{fcn})}. | 31 ## @code{formula (@var{fobj})}. |
32 ## @seealso{char, argnames, inline, vectorize} | 32 ## @seealso{char, argnames, vectorize, inline} |
33 ## @end deftypefn | 33 ## @end deftypefn |
34 | 34 |
35 function fcnstr = formula (obj) | 35 function fcnstr = formula (obj) |
36 | 36 |
37 fcnstr = obj.expr; | 37 fcnstr = obj.expr; |