Mercurial > octave
comparison scripts/legacy/@inline/vectorize.m @ 30910:78c3dcadf130
maint: Remove unnecessary input validation from @style classes
The Octave interpreter guarantees that the first argument to an old-style
@class is the object itself so there is no need to check for it.
* cd.m, disp.m, argnames.m, char.m, feval.m, formula.m,
vectorize.m: Remove check for 1 argument to function.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 06 Apr 2022 16:30:23 -0700 |
parents | e1788b1a315f |
children | b7edac56a810 |
comparison
equal
deleted
inserted
replaced
30909:a6eabdc177bc | 30910:78c3dcadf130 |
---|---|
50 ## short. It may also be buggy. Well, don't use this function! Use | 50 ## short. It may also be buggy. Well, don't use this function! Use |
51 ## function handles instead! | 51 ## function handles instead! |
52 | 52 |
53 function vfcn = vectorize (fcn) | 53 function vfcn = vectorize (fcn) |
54 | 54 |
55 if (nargin < 1) | |
56 print_usage (); | |
57 endif | |
58 | |
59 vfcn = inline (__vectorize__ (fcn.expr)); | 55 vfcn = inline (__vectorize__ (fcn.expr)); |
60 | 56 |
61 endfunction | 57 endfunction |