octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lvalue list optimizations


From: Jaroslav Hajek
Subject: lvalue list optimizations
Date: Thu, 5 Aug 2010 17:47:29 +0200

hi all,

as some of you may noticed, I recently implemented a simple method of
propagating lvalue list information into functions. Within m
functions, the isargout function can detect which outputs are being
ignored using ~ and possibly skip certain computations. This is a
generalization of the usual conditional output evaluation using
nargout. The latter is usually sufficient, but there are some
functions where output argument order is dictated by consistency and
omitting a leading output simplifies the operation. In Octave's
library, sortrows and histc are an instance.

Now I would like to make this information available to the DEFUNs. The
cleanest way is to simply pass an additional argument. Is it OK to
change the signature of a DEFUN? The macros DEFUN and DEFUN_DLD would
be preserved (and declare the extra argument as ignored).

-- 
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz


reply via email to

[Prev in Thread] Current Thread [Next in Thread]