Mercurial > octave
comparison scripts/legacy/vectorize.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 | e1788b1a315f |
children | a40c0b7aa376 |
comparison
equal
deleted
inserted
replaced
30910:78c3dcadf130 | 30911:b7edac56a810 |
---|---|
31 ## | 31 ## |
32 ## Note that the transformation is extremely simplistic. Use of this | 32 ## Note that the transformation is extremely simplistic. Use of this |
33 ## function is strongly discouraged. It may be removed from a future | 33 ## function is strongly discouraged. It may be removed from a future |
34 ## version of Octave. | 34 ## version of Octave. |
35 ## @end deftypefn | 35 ## @end deftypefn |
36 | |
37 ## The following function was translated directly from the original C++ | |
38 ## version. Yes, it will be slow, but its use is strongly discouraged | |
39 ## anyway, and most expressions will probably be short. It may also be | |
40 ## buggy. Well, don't use this function! | |
41 | 36 |
42 function vfcn = vectorize (fcn) | 37 function vfcn = vectorize (fcn) |
43 | 38 |
44 persistent warned = false; | 39 persistent warned = false; |
45 if (! warned) | 40 if (! warned) |