Mercurial > hg > octave-lyh
changeset 15061:9aab13f6697d classdef
maint: periodic merge of default to classdef
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 27 Jul 2012 21:59:10 -0400 |
parents | 56b8eb7c9c04 (current diff) bc61fba0e9fd (diff) |
children | 069c552587a0 |
files | src/DLD-FUNCTIONS/__contourc__.cc src/DLD-FUNCTIONS/__dispatch__.cc src/DLD-FUNCTIONS/__lin_interpn__.cc src/DLD-FUNCTIONS/__pchip_deriv__.cc src/DLD-FUNCTIONS/__qp__.cc src/DLD-FUNCTIONS/balance.cc src/DLD-FUNCTIONS/besselj.cc src/DLD-FUNCTIONS/betainc.cc src/DLD-FUNCTIONS/bsxfun.cc src/DLD-FUNCTIONS/cellfun.cc src/DLD-FUNCTIONS/colloc.cc src/DLD-FUNCTIONS/conv2.cc src/DLD-FUNCTIONS/daspk.cc src/DLD-FUNCTIONS/dasrt.cc src/DLD-FUNCTIONS/dassl.cc src/DLD-FUNCTIONS/det.cc src/DLD-FUNCTIONS/dlmread.cc src/DLD-FUNCTIONS/dot.cc src/DLD-FUNCTIONS/eig.cc src/DLD-FUNCTIONS/fft.cc src/DLD-FUNCTIONS/fft2.cc src/DLD-FUNCTIONS/fftn.cc src/DLD-FUNCTIONS/filter.cc src/DLD-FUNCTIONS/find.cc src/DLD-FUNCTIONS/gammainc.cc src/DLD-FUNCTIONS/gcd.cc src/DLD-FUNCTIONS/getgrent.cc src/DLD-FUNCTIONS/getpwent.cc src/DLD-FUNCTIONS/getrusage.cc src/DLD-FUNCTIONS/givens.cc src/DLD-FUNCTIONS/hess.cc src/DLD-FUNCTIONS/hex2num.cc src/DLD-FUNCTIONS/inv.cc src/DLD-FUNCTIONS/kron.cc src/DLD-FUNCTIONS/lookup.cc src/DLD-FUNCTIONS/lsode.cc src/DLD-FUNCTIONS/lu.cc src/DLD-FUNCTIONS/luinc.cc src/DLD-FUNCTIONS/matrix_type.cc src/DLD-FUNCTIONS/max.cc src/DLD-FUNCTIONS/md5sum.cc src/DLD-FUNCTIONS/mgorth.cc src/DLD-FUNCTIONS/nproc.cc src/DLD-FUNCTIONS/pinv.cc src/DLD-FUNCTIONS/quad.cc src/DLD-FUNCTIONS/quadcc.cc src/DLD-FUNCTIONS/qz.cc src/DLD-FUNCTIONS/rand.cc src/DLD-FUNCTIONS/rcond.cc src/DLD-FUNCTIONS/regexp.cc src/DLD-FUNCTIONS/schur.cc src/DLD-FUNCTIONS/spparms.cc src/DLD-FUNCTIONS/sqrtm.cc src/DLD-FUNCTIONS/str2double.cc src/DLD-FUNCTIONS/strfind.cc src/DLD-FUNCTIONS/sub2ind.cc src/DLD-FUNCTIONS/svd.cc src/DLD-FUNCTIONS/syl.cc src/DLD-FUNCTIONS/time.cc src/DLD-FUNCTIONS/tril.cc src/DLD-FUNCTIONS/typecast.cc src/Makefile.am |
diffstat | 77 files changed, 577 insertions(+), 546 deletions(-) [+] |
line wrap: on
line diff
--- a/build-aux/mk-opts.pl +++ b/build-aux/mk-opts.pl @@ -513,7 +513,7 @@ #include "$header" -#include "defun-dld.h" +#include "defun.h" #include "pr-output.h" #include "oct-obj.h" @@ -909,11 +909,11 @@ sub emit_options_function { print <<"_END_EMIT_OPTIONS_FUNCTION_HDR_"; -DEFUN_DLD ($OPT_FCN_NAME, args, , +DEFUN ($OPT_FCN_NAME, args, , "-*- texinfo -*-\\n\\ -\@deftypefn {Loadable Function} {} $OPT_FCN_NAME ()\\n\\ -\@deftypefnx {Loadable Function} {val =} $OPT_FCN_NAME (\@var{opt})\\n\\ -\@deftypefnx {Loadable Function} {} $OPT_FCN_NAME (\@var{opt}, \@var{val})\\n\\ +\@deftypefn {Built-in Function} {} $OPT_FCN_NAME ()\\n\\ +\@deftypefnx {Built-in Function} {val =} $OPT_FCN_NAME (\@var{opt})\\n\\ +\@deftypefnx {Built-in Function} {} $OPT_FCN_NAME (\@var{opt}, \@var{val})\\n\\ $DOC_STRING\\n\\ \\n\\ Options include\\n\\
--- a/doc/interpreter/doccheck/aspell-octave.en.pws +++ b/doc/interpreter/doccheck/aspell-octave.en.pws @@ -450,6 +450,7 @@ isreal issparse isvector +iter ith iy Jacobian @@ -611,6 +612,7 @@ nd ndgrid ne +Nelder neq Neudecker Neumann
--- a/scripts/help/type.m +++ b/scripts/help/type.m @@ -118,7 +118,7 @@ %! typestr = typestr{1}(1:17); %! assert (typestr, "var is a variable"); -%!assert (type ("dot"){1}, "dot is a dynamically-linked function") +%!assert (type ("amd"){1}, "amd is a dynamically-linked function") %!assert (type ("cat"){1}, "cat is a built-in function") %!assert (type ("+"){1}, "+ is an operator") %!assert (type ("end"){1}, "end is a keyword")
--- a/scripts/help/which.m +++ b/scripts/help/which.m @@ -59,8 +59,8 @@ %! str = which ("ls"); %! assert (str(end-17:end), strcat ("miscellaneous", filesep (), "ls.m")); %!test -%! str = which ("dot"); -%! assert (str(end-6:end), "dot.oct"); +%! str = which ("amd"); +%! assert (str(end-6:end), "amd.oct"); %!assert (which ("_NO_SUCH_NAME_"), "")
--- a/scripts/image/cmunique.m +++ b/scripts/image/cmunique.m @@ -29,8 +29,8 @@ ## eliminated. The output image, @var{Y}, is the original input image with ## the indices adjusted to match the new, possibly smaller, colormap. ## -## When the input is an RGB image (an MxNx3 array), the output colormap -## will contain one entry for every unique color in the original image. +## When the input is an RGB image (an @nospell{MxNx3} array), the output +## colormap will contain one entry for every unique color in the original image. ## In the worst case the new map could have as many rows as the number of ## pixels in the original image. ##
--- a/src/DLD-FUNCTIONS/config-module.awk +++ b/src/DLD-FUNCTIONS/config-module.awk @@ -52,7 +52,7 @@ } print "else"; print ""; - print "noinst_LTLIBRARIES = $(DLD_FUNCTIONS_LIBS)"; + print "noinst_LTLIBRARIES += $(DLD_FUNCTIONS_LIBS)"; print ""; print "endif";
--- a/src/DLD-FUNCTIONS/module-files +++ b/src/DLD-FUNCTIONS/module-files @@ -1,83 +1,22 @@ # FILE|CPPFLAGS|LDFLAGS|LIBRARIES -__contourc__.cc +chol.cc __delaunayn__.cc|$(QHULL_CPPFLAGS)|$(QHULL_LDFLAGS)|$(QHULL_LIBS) -__dispatch__.cc __dsearchn__.cc __fltk_uigetfile__.cc|$(GRAPHICS_CFLAGS) $(FT2_CPPFLAGS)|$(GRAPHICS_LDFLAGS) $(FT2_LDFLAGS)|$(GRAPHICS_LIBS) $(FT2_LIBS) __glpk__.cc|$(GLPK_CPPFLAGS)|$(GLPK_LDFLAGS)|$(GLPK_LIBS) __init_fltk__.cc|$(GRAPHICS_CFLAGS) $(FT2_CPPFLAGS)|$(GRAPHICS_LDFLAGS) $(FT2_LDFLAGS)|$(GRAPHICS_LIBS) $(FT2_LIBS) __init_gnuplot__.cc -__lin_interpn__.cc __magick_read__.cc|$(MAGICK_CPPFLAGS)|$(MAGICK_LDFLAGS)|$(MAGICK_LIBS) -__pchip_deriv__.cc -__qp__.cc __voronoi__.cc|$(QHULL_CPPFLAGS)|$(QHULL_LDFLAGS)|$(QHULL_LIBS) amd.cc|$(SPARSE_XCPPFLAGS)|$(SPARSE_XLDFLAGS)|$(SPARSE_XLIBS) -balance.cc -besselj.cc -betainc.cc -bsxfun.cc ccolamd.cc|$(SPARSE_XCPPFLAGS)|$(SPARSE_XLDFLAGS)|$(SPARSE_XLIBS) -cellfun.cc -chol.cc|$(QRUPDATE_CPPFLAGS) $(SPARSE_XCPPFLAGS)|$(QRUPDATE_LDFLAGS) $(SPARSE_XLDFLAGS)|$(QRUPDATE_LIBS) $(SPARSE_XLIBS) colamd.cc|$(SPARSE_XCPPFLAGS)|$(SPARSE_XLDFLAGS)|$(SPARSE_XLIBS) -colloc.cc -conv2.cc convhulln.cc|$(QHULL_CPPFLAGS)|$(QHULL_LDFLAGS)|$(QHULL_LIBS) -daspk.cc -dasrt.cc -dassl.cc -det.cc -dlmread.cc dmperm.cc|$(SPARSE_XCPPFLAGS)|$(SPARSE_XLDFLAGS)|$(SPARSE_XLIBS) -dot.cc -eig.cc eigs.cc|$(ARPACK_CPPFLAGS) $(SPARSE_XCPPFLAGS)|$(ARPACK_LDFLAGS) $(SPARSE_XLDFLAGS)|$(ARPACK_LIBS) $(SPARSE_XLIBS) $(LAPACK_LIBS) $(BLAS_LIBS) -fft.cc|$(FFTW_XCPPFLAGS)|$(FFTW_XLDFLAGS)|$(FFTW_XLIBS) -fft2.cc|$(FFTW_XCPPFLAGS)|$(FFTW_XLDFLAGS)|$(FFTW_XLIBS) -fftn.cc|$(FFTW_XCPPFLAGS)|$(FFTW_XLDFLAGS)|$(FFTW_XLIBS) fftw.cc|$(FFTW_XCPPFLAGS)|$(FFTW_XLDFLAGS)|$(FFTW_XLIBS) -filter.cc -find.cc -gammainc.cc -gcd.cc -getgrent.cc -getpwent.cc -getrusage.cc -givens.cc -hess.cc -hex2num.cc -inv.cc -kron.cc -lookup.cc -lsode.cc -lu.cc -luinc.cc -matrix_type.cc -max.cc -md5sum.cc -mgorth.cc -nproc.cc -pinv.cc qr.cc|$(QRUPDATE_CPPFLAGS) $(SPARSE_XCPPFLAGS)|$(QRUPDATE_LDFLAGS) $(SPARSE_XLDFLAGS)|$(QRUPDATE_LIBS) $(SPARSE_XLIBS) -quad.cc -quadcc.cc -qz.cc|||$(LAPACK_LIBS) $(BLAS_LIBS) -rand.cc -rcond.cc -regexp.cc|$(REGEX_CPPFLAGS)|$(REGEX_LDFLAGS)|$(REGEX_LIBS) -schur.cc -spparms.cc -sqrtm.cc -strfind.cc -str2double.cc -sub2ind.cc -svd.cc -syl.cc symbfact.cc|$(SPARSE_XCPPFLAGS)|$(SPARSE_XLDFLAGS)|$(SPARSE_XLIBS) symrcm.cc|$(SPARSE_XCPPFLAGS)|$(SPARSE_XLDFLAGS)|$(SPARSE_XLIBS) -time.cc -tril.cc tsearch.cc -typecast.cc urlwrite.cc|$(CURL_CPPFLAGS)|$(CURL_LDFLAGS)|$(CURL_LIBS)
--- a/src/Makefile.am +++ b/src/Makefile.am @@ -25,6 +25,7 @@ -I../libgnu -I$(top_srcdir)/libgnu \ -I$(top_srcdir)/libcruft/misc \ -I../liboctave -I$(top_srcdir)/liboctave \ + -Icorefcn -I$(srcdir)/corefcn \ -I. -I$(srcdir) \ @CPPFLAGS@ @@ -44,7 +45,7 @@ octave_config_SOURCES = nodist_octave_config_SOURCES = octave-config.cc -octave_config_LDADD = ../libgnu/libgnu.la $(LIBS) +octave_config_LDADD = corefcn/libcorefcn.la ../libgnu/libgnu.la $(LIBS) BUILT_SOURCES_EXTRA = \ mkoctfile.cc \ @@ -421,6 +422,10 @@ jit-ir.cc \ pt-jit.cc +#noinst_LTLIBRARIES = +# +#include corefcn/module.mk +# DIST_SRC = \ Cell.cc \ bitfcns.cc \ @@ -492,10 +497,14 @@ xnorm.cc \ xpow.cc \ zfstream.cc \ + $(corefcn_SRC) \ $(OV_SRC) \ $(PT_SRC) \ $(JIT_SRC) +noinst_LTLIBRARIES = + +include corefcn/module.mk include DLD-FUNCTIONS/module.mk $(srcdir)/DLD-FUNCTIONS/module.mk: $(srcdir)/DLD-FUNCTIONS/config-module.sh $(srcdir)/DLD-FUNCTIONS/config-module.awk $(srcdir)/DLD-FUNCTIONS/module-files @@ -554,6 +563,9 @@ display.df display.lo: CPPFLAGS += $(X11_FLAGS) +## FIXME: Does this rule need to be uncommented? +#fft.df fft.lo fft2.df fft2.lo fftn.df fftn.lo: CPPFLAGS += $(FFTW_XCPPFLAGS) + octave_SOURCES = main.c octave_LDADD = \
rename from src/DLD-FUNCTIONS/__contourc__.cc rename to src/corefcn/__contourc__.cc --- a/src/DLD-FUNCTIONS/__contourc__.cc +++ b/src/corefcn/__contourc__.cc @@ -40,7 +40,7 @@ #include "quit.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "oct-obj.h" @@ -299,9 +299,9 @@ drawcn (X, Y, Z, lvl, r, c, 0.0, 0.0, 255, true, mark); } -DEFUN_DLD (__contourc__, args, , +DEFUN (__contourc__, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} __contourc__ (@var{x}, @var{y}, @var{z}, @var{levels})\n\ +@deftypefn {Built-in Function} {} __contourc__ (@var{x}, @var{y}, @var{z}, @var{levels})\n\ Undocumented internal function.\n\ @end deftypefn") {
rename from src/DLD-FUNCTIONS/__dispatch__.cc rename to src/corefcn/__dispatch__.cc --- a/src/DLD-FUNCTIONS/__dispatch__.cc +++ b/src/corefcn/__dispatch__.cc @@ -30,7 +30,7 @@ #include "Cell.h" #include "oct-map.h" -#include "defun-dld.h" +#include "defun.h" #include "ov.h" #include "ov-fcn.h" #include "ov-typeinfo.h" @@ -39,7 +39,7 @@ #include "symtab.h" #include "variables.h" -DEFUN_DLD (__dispatch__, args, nargout, +DEFUN (__dispatch__, args, nargout, "Undocumented internal function") { octave_value retval;
rename from src/DLD-FUNCTIONS/__lin_interpn__.cc rename to src/corefcn/__lin_interpn__.cc --- a/src/DLD-FUNCTIONS/__lin_interpn__.cc +++ b/src/corefcn/__lin_interpn__.cc @@ -28,7 +28,7 @@ #include "dNDArray.h" #include "oct-locbuf.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "oct-obj.h" @@ -267,9 +267,9 @@ // //This function only performs linear interpolation. -DEFUN_DLD (__lin_interpn__, args, , +DEFUN (__lin_interpn__, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{vi} =} __lin_interpn__ (@var{x1}, @var{x2}, @dots{}, @var{xn}, @var{v}, @var{y1}, @var{y2}, @dots{}, @var{yn})\n\ +@deftypefn {Built-in Function} {@var{vi} =} __lin_interpn__ (@var{x1}, @var{x2}, @dots{}, @var{xn}, @var{v}, @var{y1}, @var{y2}, @dots{}, @var{yn})\n\ Undocumented internal function.\n\ @end deftypefn") {
rename from src/DLD-FUNCTIONS/__pchip_deriv__.cc rename to src/corefcn/__pchip_deriv__.cc --- a/src/DLD-FUNCTIONS/__pchip_deriv__.cc +++ b/src/corefcn/__pchip_deriv__.cc @@ -25,7 +25,7 @@ #include <config.h> #endif -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -50,9 +50,9 @@ // Wrapper for SLATEC/PCHIP function DPCHIM to calculate the derivates // for piecewise polynomials. -DEFUN_DLD (__pchip_deriv__, args, , +DEFUN (__pchip_deriv__, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} __pchip_deriv__ (@var{x}, @var{y}, @var{dim})\n\ +@deftypefn {Built-in Function} {} __pchip_deriv__ (@var{x}, @var{y}, @var{dim})\n\ Undocumented internal function.\n\ @end deftypefn") {
rename from src/DLD-FUNCTIONS/__qp__.cc rename to src/corefcn/__qp__.cc --- a/src/DLD-FUNCTIONS/__qp__.cc +++ b/src/corefcn/__qp__.cc @@ -31,7 +31,7 @@ #include "mx-m-dm.h" #include "EIG.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -479,9 +479,9 @@ return info; } -DEFUN_DLD (__qp__, args, , +DEFUN (__qp__, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{x}, @var{lambda}, @var{info}, @var{iter}] =} __qp__ (@var{x0}, @var{H}, @var{q}, @var{Aeq}, @var{beq}, @var{Ain}, @var{bin}, @var{maxit})\n\ +@deftypefn {Built-in Function} {[@var{x}, @var{lambda}, @var{info}, @var{iter}] =} __qp__ (@var{x0}, @var{H}, @var{q}, @var{Aeq}, @var{beq}, @var{Ain}, @var{bin}, @var{maxit})\n\ Undocumented internal function.\n\ @end deftypefn") {
rename from src/DLD-FUNCTIONS/balance.cc rename to src/corefcn/balance.cc --- a/src/DLD-FUNCTIONS/balance.cc +++ b/src/corefcn/balance.cc @@ -39,20 +39,20 @@ #include "floatGEPBAL.h" #include "quit.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "f77-fcn.h" #include "gripes.h" #include "oct-obj.h" #include "utils.h" -DEFUN_DLD (balance, args, nargout, +DEFUN (balance, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{AA} =} balance (@var{A})\n\ -@deftypefnx {Loadable Function} {@var{AA} =} balance (@var{A}, @var{opt})\n\ -@deftypefnx {Loadable Function} {[@var{DD}, @var{AA}] =} balance (@var{A}, @var{opt})\n\ -@deftypefnx {Loadable Function} {[@var{D}, @var{P}, @var{AA}] =} balance (@var{A}, @var{opt})\n\ -@deftypefnx {Loadable Function} {[@var{CC}, @var{DD}, @var{AA}, @var{BB}] =} balance (@var{A}, @var{B}, @var{opt})\n\ +@deftypefn {Built-in Function} {@var{AA} =} balance (@var{A})\n\ +@deftypefnx {Built-in Function} {@var{AA} =} balance (@var{A}, @var{opt})\n\ +@deftypefnx {Built-in Function} {[@var{DD}, @var{AA}] =} balance (@var{A}, @var{opt})\n\ +@deftypefnx {Built-in Function} {[@var{D}, @var{P}, @var{AA}] =} balance (@var{A}, @var{opt})\n\ +@deftypefnx {Built-in Function} {[@var{CC}, @var{DD}, @var{AA}, @var{BB}] =} balance (@var{A}, @var{B}, @var{opt})\n\ \n\ Compute @code{@var{AA} = @var{DD} \\ @var{A} * @var{DD}} in which @var{AA}\n\ is a matrix whose row and column norms are roughly equal in magnitude, and\n\
rename from src/DLD-FUNCTIONS/besselj.cc rename to src/corefcn/besselj.cc --- a/src/DLD-FUNCTIONS/besselj.cc +++ b/src/corefcn/besselj.cc @@ -27,7 +27,7 @@ #include "lo-specfun.h" #include "quit.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -376,13 +376,13 @@ return retval; } -DEFUN_DLD (besselj, args, nargout, +DEFUN (besselj, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{j}, @var{ierr}] =} besselj (@var{alpha}, @var{x}, @var{opt})\n\ -@deftypefnx {Loadable Function} {[@var{y}, @var{ierr}] =} bessely (@var{alpha}, @var{x}, @var{opt})\n\ -@deftypefnx {Loadable Function} {[@var{i}, @var{ierr}] =} besseli (@var{alpha}, @var{x}, @var{opt})\n\ -@deftypefnx {Loadable Function} {[@var{k}, @var{ierr}] =} besselk (@var{alpha}, @var{x}, @var{opt})\n\ -@deftypefnx {Loadable Function} {[@var{h}, @var{ierr}] =} besselh (@var{alpha}, @var{k}, @var{x}, @var{opt})\n\ +@deftypefn {Built-in Function} {[@var{j}, @var{ierr}] =} besselj (@var{alpha}, @var{x}, @var{opt})\n\ +@deftypefnx {Built-in Function} {[@var{y}, @var{ierr}] =} bessely (@var{alpha}, @var{x}, @var{opt})\n\ +@deftypefnx {Built-in Function} {[@var{i}, @var{ierr}] =} besseli (@var{alpha}, @var{x}, @var{opt})\n\ +@deftypefnx {Built-in Function} {[@var{k}, @var{ierr}] =} besselk (@var{alpha}, @var{x}, @var{opt})\n\ +@deftypefnx {Built-in Function} {[@var{h}, @var{ierr}] =} besselh (@var{alpha}, @var{k}, @var{x}, @var{opt})\n\ Compute Bessel or Hankel functions of various kinds:\n\ \n\ @table @code\n\ @@ -450,36 +450,36 @@ return do_bessel (BESSEL_J, "besselj", args, nargout); } -DEFUN_DLD (bessely, args, nargout, +DEFUN (bessely, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{y}, @var{ierr}] =} bessely (@var{alpha}, @var{x}, @var{opt})\n\ +@deftypefn {Built-in Function} {[@var{y}, @var{ierr}] =} bessely (@var{alpha}, @var{x}, @var{opt})\n\ See besselj.\n\ @end deftypefn") { return do_bessel (BESSEL_Y, "bessely", args, nargout); } -DEFUN_DLD (besseli, args, nargout, +DEFUN (besseli, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{i}, @var{ierr}] =} besseli (@var{alpha}, @var{x}, @var{opt})\n\ +@deftypefn {Built-in Function} {[@var{i}, @var{ierr}] =} besseli (@var{alpha}, @var{x}, @var{opt})\n\ See besselj.\n\ @end deftypefn") { return do_bessel (BESSEL_I, "besseli", args, nargout); } -DEFUN_DLD (besselk, args, nargout, +DEFUN (besselk, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{k}, @var{ierr}] =} besselk (@var{alpha}, @var{x}, @var{opt})\n\ +@deftypefn {Built-in Function} {[@var{k}, @var{ierr}] =} besselk (@var{alpha}, @var{x}, @var{opt})\n\ See besselj.\n\ @end deftypefn") { return do_bessel (BESSEL_K, "besselk", args, nargout); } -DEFUN_DLD (besselh, args, nargout, +DEFUN (besselh, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{h}, @var{ierr}] =} besselh (@var{alpha}, @var{k}, @var{x}, @var{opt})\n\ +@deftypefn {Built-in Function} {[@var{h}, @var{ierr}] =} besselh (@var{alpha}, @var{k}, @var{x}, @var{opt})\n\ See besselj.\n\ @end deftypefn") { @@ -521,9 +521,9 @@ return retval; } -DEFUN_DLD (airy, args, nargout, +DEFUN (airy, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{a}, @var{ierr}] =} airy (@var{k}, @var{z}, @var{opt})\n\ +@deftypefn {Built-in Function} {[@var{a}, @var{ierr}] =} airy (@var{k}, @var{z}, @var{opt})\n\ Compute Airy functions of the first and second kind, and their\n\ derivatives.\n\ \n\
rename from src/DLD-FUNCTIONS/betainc.cc rename to src/corefcn/betainc.cc --- a/src/DLD-FUNCTIONS/betainc.cc +++ b/src/corefcn/betainc.cc @@ -26,7 +26,7 @@ #include "lo-specfun.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -35,7 +35,7 @@ // FIXME: These functions do not need to be dynamically loaded. They should // be placed elsewhere in the Octave code hierarchy. -DEFUN_DLD (betainc, args, , +DEFUN (betainc, args, , "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} betainc (@var{x}, @var{a}, @var{b})\n\ Return the regularized incomplete Beta function,\n\ @@ -329,7 +329,7 @@ %!error betainc (1,2,3,4) */ -DEFUN_DLD (betaincinv, args, , +DEFUN (betaincinv, args, , "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} betaincinv (@var{y}, @var{a}, @var{b})\n\ Compute the inverse of the incomplete Beta function, i.e., @var{x} such that\n\
rename from src/DLD-FUNCTIONS/bsxfun.cc rename to src/corefcn/bsxfun.cc --- a/src/DLD-FUNCTIONS/bsxfun.cc +++ b/src/corefcn/bsxfun.cc @@ -32,7 +32,7 @@ #include "lo-mappers.h" #include "oct-map.h" -#include "defun-dld.h" +#include "defun.h" #include "parse.h" #include "variables.h" #include "ov-colon.h" @@ -309,9 +309,9 @@ } } -DEFUN_DLD (bsxfun, args, , +DEFUN (bsxfun, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} bsxfun (@var{f}, @var{A}, @var{B})\n\ +@deftypefn {Built-in Function} {} bsxfun (@var{f}, @var{A}, @var{B})\n\ The binary singleton expansion function applier performs broadcasting,\n\ that is, applies a binary function @var{f} element-by-element to two\n\ array arguments @var{A} and @var{B}, and expands as necessary\n\
rename from src/DLD-FUNCTIONS/cellfun.cc rename to src/corefcn/cellfun.cc --- a/src/DLD-FUNCTIONS/cellfun.cc +++ b/src/corefcn/cellfun.cc @@ -38,7 +38,7 @@ #include "Cell.h" #include "oct-map.h" -#include "defun-dld.h" +#include "defun.h" #include "parse.h" #include "variables.h" #include "ov-colon.h" @@ -249,16 +249,16 @@ nargin -= 1; } -DEFUN_DLD (cellfun, args, nargout, +DEFUN (cellfun, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} cellfun (@var{name}, @var{C})\n\ -@deftypefnx {Loadable Function} {} cellfun (\"size\", @var{C}, @var{k})\n\ -@deftypefnx {Loadable Function} {} cellfun (\"isclass\", @var{C}, @var{class})\n\ -@deftypefnx {Loadable Function} {} cellfun (@var{func}, @var{C})\n\ -@deftypefnx {Loadable Function} {} cellfun (@var{func}, @var{C}, @var{D})\n\ -@deftypefnx {Loadable Function} {[@var{a}, @dots{}] =} cellfun (@dots{})\n\ -@deftypefnx {Loadable Function} {} cellfun (@dots{}, \"ErrorHandler\", @var{errfunc})\n\ -@deftypefnx {Loadable Function} {} cellfun (@dots{}, \"UniformOutput\", @var{val})\n\ +@deftypefn {Built-in Function} {} cellfun (@var{name}, @var{C})\n\ +@deftypefnx {Built-in Function} {} cellfun (\"size\", @var{C}, @var{k})\n\ +@deftypefnx {Built-in Function} {} cellfun (\"isclass\", @var{C}, @var{class})\n\ +@deftypefnx {Built-in Function} {} cellfun (@var{func}, @var{C})\n\ +@deftypefnx {Built-in Function} {} cellfun (@var{func}, @var{C}, @var{D})\n\ +@deftypefnx {Built-in Function} {[@var{a}, @dots{}] =} cellfun (@dots{})\n\ +@deftypefnx {Built-in Function} {} cellfun (@dots{}, \"ErrorHandler\", @var{errfunc})\n\ +@deftypefnx {Built-in Function} {} cellfun (@dots{}, \"UniformOutput\", @var{val})\n\ \n\ Evaluate the function named @var{name} on the elements of the cell array\n\ @var{C}. Elements in @var{C} are passed on to the named function\n\ @@ -1014,7 +1014,7 @@ // Hajek. It was converted to C++ by jwe so that it could properly // handle the nargout = 0 case. -DEFUN_DLD (arrayfun, args, nargout, +DEFUN (arrayfun, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Function File} {} arrayfun (@var{func}, @var{A})\n\ @deftypefnx {Function File} {@var{x} =} arrayfun (@var{func}, @var{A})\n\ @@ -1805,10 +1805,10 @@ return retval; } -DEFUN_DLD (num2cell, args, , +DEFUN (num2cell, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{C} =} num2cell (@var{A})\n\ -@deftypefnx {Loadable Function} {@var{C} =} num2cell (@var{A}, @var{dim})\n\ +@deftypefn {Built-in Function} {@var{C} =} num2cell (@var{A})\n\ +@deftypefnx {Built-in Function} {@var{C} =} num2cell (@var{A}, @var{dim})\n\ Convert the numeric matrix @var{A} to a cell array. If @var{dim} is\n\ defined, the value @var{C} is of dimension 1 in this dimension and the\n\ elements of @var{A} are placed into @var{C} in slices. For example:\n\ @@ -2134,11 +2134,11 @@ return retval; } -DEFUN_DLD (mat2cell, args, , +DEFUN (mat2cell, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{C} =} mat2cell (@var{A}, @var{m}, @var{n})\n\ -@deftypefnx {Loadable Function} {@var{C} =} mat2cell (@var{A}, @var{d1}, @var{d2}, @dots{})\n\ -@deftypefnx {Loadable Function} {@var{C} =} mat2cell (@var{A}, @var{r})\n\ +@deftypefn {Built-in Function} {@var{C} =} mat2cell (@var{A}, @var{m}, @var{n})\n\ +@deftypefnx {Built-in Function} {@var{C} =} mat2cell (@var{A}, @var{d1}, @var{d2}, @dots{})\n\ +@deftypefnx {Built-in Function} {@var{C} =} mat2cell (@var{A}, @var{r})\n\ Convert the matrix @var{A} to a cell array. If @var{A} is 2-D, then\n\ it is required that @code{sum (@var{m}) == size (@var{A}, 1)} and\n\ @code{sum (@var{n}) == size (@var{A}, 2)}. Similarly, if @var{A} is\n\ @@ -2304,9 +2304,9 @@ return retval; } -DEFUN_DLD (cellslices, args, , +DEFUN (cellslices, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{sl} =} cellslices (@var{x}, @var{lb}, @var{ub}, @var{dim})\n\ +@deftypefn {Built-in Function} {@var{sl} =} cellslices (@var{x}, @var{lb}, @var{ub}, @var{dim})\n\ Given an array @var{x}, this function produces a cell array of slices from\n\ the array determined by the index vectors @var{lb}, @var{ub}, for lower and\n\ upper bounds, respectively. In other words, it is equivalent to the\n\ @@ -2425,9 +2425,9 @@ %! assert (c, {[1, 2; 5, 6; 9, 10], [2, 3; 6, 7; 10, 11]}); */ -DEFUN_DLD (cellindexmat, args, , +DEFUN (cellindexmat, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{y} =} cellindexmat (@var{x}, @var{varargin})\n\ +@deftypefn {Built-in Function} {@var{y} =} cellindexmat (@var{x}, @var{varargin})\n\ Given a cell array of matrices @var{x}, this function computes\n\ \n\ @example\n\
rename from src/DLD-FUNCTIONS/colloc.cc rename to src/corefcn/colloc.cc --- a/src/DLD-FUNCTIONS/colloc.cc +++ b/src/corefcn/colloc.cc @@ -29,14 +29,14 @@ #include "CollocWt.h" #include "lo-mappers.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "oct-obj.h" #include "utils.h" -DEFUN_DLD (colloc, args, , +DEFUN (colloc, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{r}, @var{amat}, @var{bmat}, @var{q}] =} colloc (@var{n}, \"left\", \"right\")\n\ +@deftypefn {Built-in Function} {[@var{r}, @var{amat}, @var{bmat}, @var{q}] =} colloc (@var{n}, \"left\", \"right\")\n\ Compute derivative and integral weight matrices for orthogonal\n\ collocation using the subroutines given in J. Villadsen and\n\ M. L. Michelsen, @cite{Solution of Differential Equation Models by\n\
rename from src/DLD-FUNCTIONS/conv2.cc rename to src/corefcn/conv2.cc --- a/src/DLD-FUNCTIONS/conv2.cc +++ b/src/corefcn/conv2.cc @@ -27,18 +27,18 @@ #include "oct-convn.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "oct-obj.h" #include "utils.h" enum Shape { SHAPE_FULL, SHAPE_SAME, SHAPE_VALID }; -DEFUN_DLD (conv2, args, , +DEFUN (conv2, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} conv2 (@var{A}, @var{B})\n\ -@deftypefnx {Loadable Function} {} conv2 (@var{v1}, @var{v2}, @var{m})\n\ -@deftypefnx {Loadable Function} {} conv2 (@dots{}, @var{shape})\n\ +@deftypefn {Built-in Function} {} conv2 (@var{A}, @var{B})\n\ +@deftypefnx {Built-in Function} {} conv2 (@var{v1}, @var{v2}, @var{m})\n\ +@deftypefnx {Built-in Function} {} conv2 (@dots{}, @var{shape})\n\ Return the 2-D convolution of @var{A} and @var{B}. The size of the result\n\ is determined by the optional @var{shape} argument which takes the following\n\ values\n\ @@ -283,10 +283,10 @@ %!error conv2 (1, ones (2), 1) */ -DEFUN_DLD (convn, args, , +DEFUN (convn, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{C} =} convn (@var{A}, @var{B})\n\ -@deftypefnx {Loadable Function} {@var{C} =} convn (@var{A}, @var{B}, @var{shape})\n\ +@deftypefn {Built-in Function} {@var{C} =} convn (@var{A}, @var{B})\n\ +@deftypefnx {Built-in Function} {@var{C} =} convn (@var{A}, @var{B}, @var{shape})\n\ Return the n-D convolution of @var{A} and @var{B}. The size of the result\n\ is determined by the optional @var{shape} argument which takes the following\n\ values\n\
rename from src/DLD-FUNCTIONS/daspk.cc rename to src/corefcn/daspk.cc --- a/src/DLD-FUNCTIONS/daspk.cc +++ b/src/corefcn/daspk.cc @@ -31,7 +31,7 @@ #include "DASPK.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -170,9 +170,9 @@ } \ while (0) -DEFUN_DLD (daspk, args, nargout, +DEFUN (daspk, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{x}, @var{xdot}, @var{istate}, @var{msg}] =} daspk (@var{fcn}, @var{x_0}, @var{xdot_0}, @var{t}, @var{t_crit})\n\ +@deftypefn {Built-in Function} {[@var{x}, @var{xdot}, @var{istate}, @var{msg}] =} daspk (@var{fcn}, @var{x_0}, @var{xdot_0}, @var{t}, @var{t_crit})\n\ Solve the set of differential-algebraic equations\n\ @tex\n\ $$ 0 = f (x, \\dot{x}, t) $$\n\
rename from src/DLD-FUNCTIONS/dasrt.cc rename to src/corefcn/dasrt.cc --- a/src/DLD-FUNCTIONS/dasrt.cc +++ b/src/corefcn/dasrt.cc @@ -30,7 +30,7 @@ #include "DASRT.h" #include "lo-mappers.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -206,12 +206,12 @@ } \ while (0) -DEFUN_DLD (dasrt, args, nargout, +DEFUN (dasrt, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{x}, @var{xdot}, @var{t_out}, @var{istat}, @var{msg}] =} dasrt (@var{fcn}, [], @var{x_0}, @var{xdot_0}, @var{t})\n\ -@deftypefnx {Loadable Function} {@dots{} =} dasrt (@var{fcn}, @var{g}, @var{x_0}, @var{xdot_0}, @var{t})\n\ -@deftypefnx {Loadable Function} {@dots{} =} dasrt (@var{fcn}, [], @var{x_0}, @var{xdot_0}, @var{t}, @var{t_crit})\n\ -@deftypefnx {Loadable Function} {@dots{} =} dasrt (@var{fcn}, @var{g}, @var{x_0}, @var{xdot_0}, @var{t}, @var{t_crit})\n\ +@deftypefn {Built-in Function} {[@var{x}, @var{xdot}, @var{t_out}, @var{istat}, @var{msg}] =} dasrt (@var{fcn}, [], @var{x_0}, @var{xdot_0}, @var{t})\n\ +@deftypefnx {Built-in Function} {@dots{} =} dasrt (@var{fcn}, @var{g}, @var{x_0}, @var{xdot_0}, @var{t})\n\ +@deftypefnx {Built-in Function} {@dots{} =} dasrt (@var{fcn}, [], @var{x_0}, @var{xdot_0}, @var{t}, @var{t_crit})\n\ +@deftypefnx {Built-in Function} {@dots{} =} dasrt (@var{fcn}, @var{g}, @var{x_0}, @var{xdot_0}, @var{t}, @var{t_crit})\n\ Solve the set of differential-algebraic equations\n\ @tex\n\ $$ 0 = f (x, \\dot{x}, t) $$\n\
rename from src/DLD-FUNCTIONS/dassl.cc rename to src/corefcn/dassl.cc --- a/src/DLD-FUNCTIONS/dassl.cc +++ b/src/corefcn/dassl.cc @@ -31,7 +31,7 @@ #include "DASSL.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -170,9 +170,9 @@ } \ while (0) -DEFUN_DLD (dassl, args, nargout, +DEFUN (dassl, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{x}, @var{xdot}, @var{istate}, @var{msg}] =} dassl (@var{fcn}, @var{x_0}, @var{xdot_0}, @var{t}, @var{t_crit})\n\ +@deftypefn {Built-in Function} {[@var{x}, @var{xdot}, @var{istate}, @var{msg}] =} dassl (@var{fcn}, @var{x_0}, @var{xdot_0}, @var{t}, @var{t_crit})\n\ Solve the set of differential-algebraic equations\n\ @tex\n\ $$ 0 = f (x, \\dot{x}, t) $$\n\
rename from src/DLD-FUNCTIONS/det.cc rename to src/corefcn/det.cc --- a/src/DLD-FUNCTIONS/det.cc +++ b/src/corefcn/det.cc @@ -26,7 +26,7 @@ #include "DET.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -47,10 +47,10 @@ const CLASS *VAR = arg.type_id () == CLASS::static_type_id () ? \ dynamic_cast<const CLASS *> (&arg.get_rep ()) : 0 -DEFUN_DLD (det, args, nargout, +DEFUN (det, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} det (@var{A})\n\ -@deftypefnx {Loadable Function} {[@var{d}, @var{rcond}] =} det (@var{A})\n\ +@deftypefn {Built-in Function} {} det (@var{A})\n\ +@deftypefnx {Built-in Function} {[@var{d}, @var{rcond}] =} det (@var{A})\n\ Compute the determinant of @var{A}.\n\ \n\ Return an estimate of the reciprocal condition number if requested.\n\
rename from src/DLD-FUNCTIONS/dlmread.cc rename to src/corefcn/dlmread.cc --- a/src/DLD-FUNCTIONS/dlmread.cc +++ b/src/corefcn/dlmread.cc @@ -35,7 +35,7 @@ #include "file-ops.h" #include "lo-ieee.h" -#include "defun-dld.h" +#include "defun.h" #include "oct-stream.h" #include "error.h" #include "oct-obj.h" @@ -155,13 +155,13 @@ return stat; } -DEFUN_DLD (dlmread, args, , +DEFUN (dlmread, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{data} =} dlmread (@var{file})\n\ -@deftypefnx {Loadable Function} {@var{data} =} dlmread (@var{file}, @var{sep})\n\ -@deftypefnx {Loadable Function} {@var{data} =} dlmread (@var{file}, @var{sep}, @var{r0}, @var{c0})\n\ -@deftypefnx {Loadable Function} {@var{data} =} dlmread (@var{file}, @var{sep}, @var{range})\n\ -@deftypefnx {Loadable Function} {@var{data} =} dlmread (@dots{}, \"emptyvalue\", @var{EMPTYVAL})\n\ +@deftypefn {Built-in Function} {@var{data} =} dlmread (@var{file})\n\ +@deftypefnx {Built-in Function} {@var{data} =} dlmread (@var{file}, @var{sep})\n\ +@deftypefnx {Built-in Function} {@var{data} =} dlmread (@var{file}, @var{sep}, @var{r0}, @var{c0})\n\ +@deftypefnx {Built-in Function} {@var{data} =} dlmread (@var{file}, @var{sep}, @var{range})\n\ +@deftypefnx {Built-in Function} {@var{data} =} dlmread (@dots{}, \"emptyvalue\", @var{EMPTYVAL})\n\ Read the matrix @var{data} from a text file. If not defined the separator\n\ between fields is determined from the file itself. Otherwise the\n\ separation character is defined by @var{sep}.\n\
rename from src/DLD-FUNCTIONS/dot.cc rename to src/corefcn/dot.cc --- a/src/DLD-FUNCTIONS/dot.cc +++ b/src/corefcn/dot.cc @@ -27,7 +27,7 @@ #include "f77-fcn.h" #include "mx-base.h" #include "error.h" -#include "defun-dld.h" +#include "defun.h" #include "parse.h" extern "C" @@ -103,9 +103,9 @@ } } -DEFUN_DLD (dot, args, , +DEFUN (dot, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} dot (@var{x}, @var{y}, @var{dim})\n\ +@deftypefn {Built-in Function} {} dot (@var{x}, @var{y}, @var{dim})\n\ Compute the dot product of two vectors. If @var{x} and @var{y}\n\ are matrices, calculate the dot products along the first\n\ non-singleton dimension. If the optional argument @var{dim} is\n\ @@ -249,9 +249,9 @@ %! assert (dot (x, x), [4, 20]); */ -DEFUN_DLD (blkmm, args, , +DEFUN (blkmm, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} blkmm (@var{A}, @var{B})\n\ +@deftypefn {Built-in Function} {} blkmm (@var{A}, @var{B})\n\ Compute products of matrix blocks. The blocks are given as\n\ 2-dimensional subarrays of the arrays @var{A}, @var{B}.\n\ The size of @var{A} must have the form @code{[m,k,@dots{}]} and\n\
rename from src/DLD-FUNCTIONS/eig.cc rename to src/corefcn/eig.cc --- a/src/DLD-FUNCTIONS/eig.cc +++ b/src/corefcn/eig.cc @@ -27,24 +27,24 @@ #include "EIG.h" #include "fEIG.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" #include "utils.h" -DEFUN_DLD (eig, args, nargout, +DEFUN (eig, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{lambda} =} eig (@var{A})\n\ -@deftypefnx {Loadable Function} {@var{lambda} =} eig (@var{A}, @var{B})\n\ -@deftypefnx {Loadable Function} {[@var{V}, @var{lambda}] =} eig (@var{A})\n\ -@deftypefnx {Loadable Function} {[@var{V}, @var{lambda}] =} eig (@var{A}, @var{B})\n\ +@deftypefn {Built-in Function} {@var{lambda} =} eig (@var{A})\n\ +@deftypefnx {Built-in Function} {@var{lambda} =} eig (@var{A}, @var{B})\n\ +@deftypefnx {Built-in Function} {[@var{V}, @var{lambda}] =} eig (@var{A})\n\ +@deftypefnx {Built-in Function} {[@var{V}, @var{lambda}] =} eig (@var{A}, @var{B})\n\ Compute the eigenvalues (and optionally the eigenvectors) of a matrix\n\ or a pair of matrices\n\ \n\ The algorithm used depends on whether there are one or two input\n\ matrices, if they are real or complex and if they are symmetric\n\ -(Hermitian if complex) or nonsymmetric.\n\ +(Hermitian if complex) or non-symmetric.\n\ \n\ The eigenvalues returned by @code{eig} are not ordered.\n\ @seealso{eigs, svd}\n\
rename from src/DLD-FUNCTIONS/fft.cc rename to src/corefcn/fft.cc --- a/src/DLD-FUNCTIONS/fft.cc +++ b/src/corefcn/fft.cc @@ -27,7 +27,7 @@ #include "lo-mappers.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -197,11 +197,11 @@ */ -DEFUN_DLD (fft, args, , +DEFUN (fft, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} fft (@var{x})\n\ -@deftypefnx {Loadable Function} {} fft (@var{x}, @var{n})\n\ -@deftypefnx {Loadable Function} {} fft (@var{x}, @var{n}, @var{dim})\n\ +@deftypefn {Built-in Function} {} fft (@var{x})\n\ +@deftypefnx {Built-in Function} {} fft (@var{x}, @var{n})\n\ +@deftypefnx {Built-in Function} {} fft (@var{x}, @var{n}, @var{dim})\n\ Compute the discrete Fourier transform of @var{A} using\n\ a Fast Fourier Transform (FFT) algorithm.\n\ \n\ @@ -226,11 +226,11 @@ } -DEFUN_DLD (ifft, args, , +DEFUN (ifft, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} ifft (@var{x})\n\ -@deftypefnx {Loadable Function} {} ifft (@var{x}, @var{n})\n\ -@deftypefnx {Loadable Function} {} ifft (@var{x}, @var{n}, @var{dim})\n\ +@deftypefn {Built-in Function} {} ifft (@var{x})\n\ +@deftypefnx {Built-in Function} {} ifft (@var{x}, @var{n})\n\ +@deftypefnx {Built-in Function} {} ifft (@var{x}, @var{n}, @var{dim})\n\ Compute the inverse discrete Fourier transform of @var{A}\n\ using a Fast Fourier Transform (FFT) algorithm.\n\ \n\
rename from src/DLD-FUNCTIONS/fft2.cc rename to src/corefcn/fft2.cc --- a/src/DLD-FUNCTIONS/fft2.cc +++ b/src/corefcn/fft2.cc @@ -27,7 +27,7 @@ #include "lo-mappers.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -167,10 +167,10 @@ return retval; } -DEFUN_DLD (fft2, args, , +DEFUN (fft2, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} fft2 (@var{A})\n\ -@deftypefnx {Loadable Function} {} fft2 (@var{A}, @var{m}, @var{n})\n\ +@deftypefn {Built-in Function} {} fft2 (@var{A})\n\ +@deftypefnx {Built-in Function} {} fft2 (@var{A}, @var{m}, @var{n})\n\ Compute the two-dimensional discrete Fourier transform of @var{A} using\n\ a Fast Fourier Transform (FFT) algorithm.\n\ \n\ @@ -188,10 +188,10 @@ } -DEFUN_DLD (ifft2, args, , +DEFUN (ifft2, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} ifft2 (@var{A})\n\ -@deftypefnx {Loadable Function} {} ifft2 (@var{A}, @var{m}, @var{n})\n\ +@deftypefn {Built-in Function} {} ifft2 (@var{A})\n\ +@deftypefnx {Built-in Function} {} ifft2 (@var{A}, @var{m}, @var{n})\n\ Compute the inverse two-dimensional discrete Fourier transform of @var{A}\n\ using a Fast Fourier Transform (FFT) algorithm.\n\ \n\
rename from src/DLD-FUNCTIONS/fftn.cc rename to src/corefcn/fftn.cc --- a/src/DLD-FUNCTIONS/fftn.cc +++ b/src/corefcn/fftn.cc @@ -26,7 +26,7 @@ #include "lo-mappers.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -149,10 +149,10 @@ return retval; } -DEFUN_DLD (fftn, args, , +DEFUN (fftn, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} fftn (@var{A})\n\ -@deftypefnx {Loadable Function} {} fftn (@var{A}, @var{size})\n\ +@deftypefn {Built-in Function} {} fftn (@var{A})\n\ +@deftypefnx {Built-in Function} {} fftn (@var{A}, @var{size})\n\ Compute the N-dimensional discrete Fourier transform of @var{A} using\n\ a Fast Fourier Transform (FFT) algorithm.\n\ \n\ @@ -168,10 +168,10 @@ return do_fftn (args, "fftn", 0); } -DEFUN_DLD (ifftn, args, , +DEFUN (ifftn, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} ifftn (@var{A})\n\ -@deftypefnx {Loadable Function} {} ifftn (@var{A}, @var{size})\n\ +@deftypefn {Built-in Function} {} ifftn (@var{A})\n\ +@deftypefnx {Built-in Function} {} ifftn (@var{A}, @var{size})\n\ Compute the inverse N-dimensional discrete Fourier transform of @var{A}\n\ using a Fast Fourier Transform (FFT) algorithm.\n\ \n\
rename from src/DLD-FUNCTIONS/filter.cc rename to src/corefcn/filter.cc --- a/src/DLD-FUNCTIONS/filter.cc +++ b/src/corefcn/filter.cc @@ -34,7 +34,7 @@ #include "quit.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "oct-obj.h" @@ -285,12 +285,12 @@ return filter (b, a, x, si, dim); } -DEFUN_DLD (filter, args, nargout, +DEFUN (filter, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {y =} filter (@var{b}, @var{a}, @var{x})\n\ -@deftypefnx {Loadable Function} {[@var{y}, @var{sf}] =} filter (@var{b}, @var{a}, @var{x}, @var{si})\n\ -@deftypefnx {Loadable Function} {[@var{y}, @var{sf}] =} filter (@var{b}, @var{a}, @var{x}, [], @var{dim})\n\ -@deftypefnx {Loadable Function} {[@var{y}, @var{sf}] =} filter (@var{b}, @var{a}, @var{x}, @var{si}, @var{dim})\n\ +@deftypefn {Built-in Function} {y =} filter (@var{b}, @var{a}, @var{x})\n\ +@deftypefnx {Built-in Function} {[@var{y}, @var{sf}] =} filter (@var{b}, @var{a}, @var{x}, @var{si})\n\ +@deftypefnx {Built-in Function} {[@var{y}, @var{sf}] =} filter (@var{b}, @var{a}, @var{x}, [], @var{dim})\n\ +@deftypefnx {Built-in Function} {[@var{y}, @var{sf}] =} filter (@var{b}, @var{a}, @var{x}, @var{si}, @var{dim})\n\ Return the solution to the following linear, time-invariant difference\n\ equation:\n\ @tex\n\
rename from src/DLD-FUNCTIONS/find.cc rename to src/corefcn/find.cc --- a/src/DLD-FUNCTIONS/find.cc +++ b/src/corefcn/find.cc @@ -26,7 +26,7 @@ #include "quit.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -332,13 +332,13 @@ return retval; } -DEFUN_DLD (find, args, nargout, +DEFUN (find, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{idx} =} find (@var{x})\n\ -@deftypefnx {Loadable Function} {@var{idx} =} find (@var{x}, @var{n})\n\ -@deftypefnx {Loadable Function} {@var{idx} =} find (@var{x}, @var{n}, @var{direction})\n\ -@deftypefnx {Loadable Function} {[i, j] =} find (@dots{})\n\ -@deftypefnx {Loadable Function} {[i, j, v] =} find (@dots{})\n\ +@deftypefn {Built-in Function} {@var{idx} =} find (@var{x})\n\ +@deftypefnx {Built-in Function} {@var{idx} =} find (@var{x}, @var{n})\n\ +@deftypefnx {Built-in Function} {@var{idx} =} find (@var{x}, @var{n}, @var{direction})\n\ +@deftypefnx {Built-in Function} {[i, j] =} find (@dots{})\n\ +@deftypefnx {Built-in Function} {[i, j, v] =} find (@dots{})\n\ Return a vector of indices of nonzero elements of a matrix, as a row if\n\ @var{x} is a row vector or as a column otherwise. To obtain a single index\n\ for each matrix element, Octave pretends that the columns of a matrix form\n\
rename from src/DLD-FUNCTIONS/gammainc.cc rename to src/corefcn/gammainc.cc --- a/src/DLD-FUNCTIONS/gammainc.cc +++ b/src/corefcn/gammainc.cc @@ -26,13 +26,13 @@ #include "lo-specfun.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" #include "utils.h" -DEFUN_DLD (gammainc, args, , +DEFUN (gammainc, args, , "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} gammainc (@var{x}, @var{a})\n\ @deftypefnx {Mapping Function} {} gammainc (@var{x}, @var{a}, \"lower\")\n\
rename from src/DLD-FUNCTIONS/gcd.cc rename to src/corefcn/gcd.cc --- a/src/DLD-FUNCTIONS/gcd.cc +++ b/src/corefcn/gcd.cc @@ -32,7 +32,7 @@ #include "lo-mappers.h" #include "oct-binmap.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "oct-obj.h" @@ -432,10 +432,10 @@ return retval; } -DEFUN_DLD (gcd, args, nargout, +DEFUN (gcd, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{g} =} gcd (@var{a1}, @var{a2}, @dots{})\n\ -@deftypefnx {Loadable Function} {[@var{g}, @var{v1}, @dots{}] =} gcd (@var{a1}, @var{a2}, @dots{})\n\ +@deftypefn {Built-in Function} {@var{g} =} gcd (@var{a1}, @var{a2}, @dots{})\n\ +@deftypefnx {Built-in Function} {[@var{g}, @var{v1}, @dots{}] =} gcd (@var{a1}, @var{a2}, @dots{})\n\ \n\ Compute the greatest common divisor of @var{a1}, @var{a2}, @dots{}. If more\n\ than one argument is given all arguments must be the same size or scalar.\n\
rename from src/DLD-FUNCTIONS/getgrent.cc rename to src/corefcn/getgrent.cc --- a/src/DLD-FUNCTIONS/getgrent.cc +++ b/src/corefcn/getgrent.cc @@ -30,7 +30,7 @@ #include "oct-group.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-map.h" @@ -62,9 +62,9 @@ return retval; } -DEFUN_DLD (getgrent, args, , +DEFUN (getgrent, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{grp_struct} =} getgrent ()\n\ +@deftypefn {Built-in Function} {@var{grp_struct} =} getgrent ()\n\ Return an entry from the group database, opening it if necessary.\n\ Once the end of data has been reached, @code{getgrent} returns 0.\n\ @end deftypefn") @@ -89,9 +89,9 @@ return retval; } -DEFUN_DLD (getgrgid, args, , +DEFUN (getgrgid, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{grp_struct} =} getgrgid (@var{gid}).\n\ +@deftypefn {Built-in Function} {@var{grp_struct} =} getgrgid (@var{gid}).\n\ Return the first entry from the group database with the group ID\n\ @var{gid}. If the group ID does not exist in the database,\n\ @code{getgrgid} returns 0.\n\ @@ -129,9 +129,9 @@ return retval; } -DEFUN_DLD (getgrnam, args, , +DEFUN (getgrnam, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{grp_struct} =} getgrnam (@var{name})\n\ +@deftypefn {Built-in Function} {@var{grp_struct} =} getgrnam (@var{name})\n\ Return the first entry from the group database with the group name\n\ @var{name}. If the group name does not exist in the database,\n\ @code{getgrnam} returns 0.\n\ @@ -162,9 +162,9 @@ return retval; } -DEFUN_DLD (setgrent, args, , +DEFUN (setgrent, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} setgrent ()\n\ +@deftypefn {Built-in Function} {} setgrent ()\n\ Return the internal pointer to the beginning of the group database.\n\ @end deftypefn") { @@ -188,9 +188,9 @@ return retval; } -DEFUN_DLD (endgrent, args, , +DEFUN (endgrent, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} endgrent ()\n\ +@deftypefn {Built-in Function} {} endgrent ()\n\ Close the group database.\n\ @end deftypefn") {
rename from src/DLD-FUNCTIONS/getpwent.cc rename to src/corefcn/getpwent.cc --- a/src/DLD-FUNCTIONS/getpwent.cc +++ b/src/corefcn/getpwent.cc @@ -30,7 +30,7 @@ #include "oct-passwd.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-map.h" @@ -65,9 +65,9 @@ return retval; } -DEFUN_DLD (getpwent, args, , +DEFUN (getpwent, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{pw_struct} =} getpwent ()\n\ +@deftypefn {Built-in Function} {@var{pw_struct} =} getpwent ()\n\ Return a structure containing an entry from the password database,\n\ opening it if necessary. Once the end of the data has been reached,\n\ @code{getpwent} returns 0.\n\ @@ -93,9 +93,9 @@ return retval; } -DEFUN_DLD (getpwuid, args, , +DEFUN (getpwuid, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{pw_struct} =} getpwuid (@var{uid}).\n\ +@deftypefn {Built-in Function} {@var{pw_struct} =} getpwuid (@var{uid}).\n\ Return a structure containing the first entry from the password database\n\ with the user ID @var{uid}. If the user ID does not exist in the\n\ database, @code{getpwuid} returns 0.\n\ @@ -133,9 +133,9 @@ return retval; } -DEFUN_DLD (getpwnam, args, , +DEFUN (getpwnam, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{pw_struct} =} getpwnam (@var{name})\n\ +@deftypefn {Built-in Function} {@var{pw_struct} =} getpwnam (@var{name})\n\ Return a structure containing the first entry from the password database\n\ with the user name @var{name}. If the user name does not exist in the\n\ database, @code{getpwname} returns 0.\n\ @@ -166,9 +166,9 @@ return retval; } -DEFUN_DLD (setpwent, args, , +DEFUN (setpwent, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} setpwent ()\n\ +@deftypefn {Built-in Function} {} setpwent ()\n\ Return the internal pointer to the beginning of the password database.\n\ @end deftypefn") { @@ -192,9 +192,9 @@ return retval; } -DEFUN_DLD (endpwent, args, , +DEFUN (endpwent, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} endpwent ()\n\ +@deftypefn {Built-in Function} {} endpwent ()\n\ Close the password database.\n\ @end deftypefn") {
rename from src/DLD-FUNCTIONS/getrusage.cc rename to src/corefcn/getrusage.cc --- a/src/DLD-FUNCTIONS/getrusage.cc +++ b/src/corefcn/getrusage.cc @@ -36,7 +36,7 @@ #include <sys/param.h> #endif -#include "defun-dld.h" +#include "defun.h" #include "oct-map.h" #include "sysdep.h" #include "ov.h" @@ -59,9 +59,9 @@ // System resource functions. -DEFUN_DLD (getrusage, , , +DEFUN (getrusage, , , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} getrusage ()\n\ +@deftypefn {Built-in Function} {} getrusage ()\n\ Return a structure containing a number of statistics about the current\n\ Octave process. Not all fields are available on all systems. If it is\n\ not possible to get CPU time statistics, the CPU time slots are set to\n\
rename from src/DLD-FUNCTIONS/givens.cc rename to src/corefcn/givens.cc --- a/src/DLD-FUNCTIONS/givens.cc +++ b/src/corefcn/givens.cc @@ -26,14 +26,14 @@ #include <config.h> #endif -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "oct-obj.h" -DEFUN_DLD (givens, args, nargout, +DEFUN (givens, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{g} =} givens (@var{x}, @var{y})\n\ -@deftypefnx {Loadable Function} {[@var{c}, @var{s}] =} givens (@var{x}, @var{y})\n\ +@deftypefn {Built-in Function} {@var{g} =} givens (@var{x}, @var{y})\n\ +@deftypefnx {Built-in Function} {[@var{c}, @var{s}] =} givens (@var{x}, @var{y})\n\ @tex\n\ Return a $2\\times 2$ orthogonal matrix\n\ $$\n\
rename from src/DLD-FUNCTIONS/hess.cc rename to src/corefcn/hess.cc --- a/src/DLD-FUNCTIONS/hess.cc +++ b/src/corefcn/hess.cc @@ -29,16 +29,16 @@ #include "fCmplxHESS.h" #include "floatHESS.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" #include "utils.h" -DEFUN_DLD (hess, args, nargout, +DEFUN (hess, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{H} =} hess (@var{A})\n\ -@deftypefnx {Loadable Function} {[@var{P}, @var{H}] =} hess (@var{A})\n\ +@deftypefn {Built-in Function} {@var{H} =} hess (@var{A})\n\ +@deftypefnx {Built-in Function} {[@var{P}, @var{H}] =} hess (@var{A})\n\ @cindex Hessenberg decomposition\n\ Compute the Hessenberg decomposition of the matrix @var{A}.\n\ \n\
rename from src/DLD-FUNCTIONS/hex2num.cc rename to src/corefcn/hex2num.cc --- a/src/DLD-FUNCTIONS/hex2num.cc +++ b/src/corefcn/hex2num.cc @@ -26,15 +26,15 @@ #include <algorithm> -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" #include "utils.h" -DEFUN_DLD (hex2num, args, , +DEFUN (hex2num, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{n} =} hex2num (@var{s})\n\ +@deftypefn {Built-in Function} {@var{n} =} hex2num (@var{s})\n\ Typecast the 16 character hexadecimal character string to an IEEE 754\n\ double precision number. If fewer than 16 characters are given the\n\ strings are right padded with '0' characters.\n\ @@ -122,9 +122,9 @@ %!assert (hex2num (["c00";"bff";"000";"3ff";"400"]), [-2:2]') */ -DEFUN_DLD (num2hex, args, , +DEFUN (num2hex, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{s} =} num2hex (@var{n})\n\ +@deftypefn {Built-in Function} {@var{s} =} num2hex (@var{n})\n\ Typecast a double precision number or vector to a 16 character hexadecimal\n\ string of the IEEE 754 representation of the number. For example:\n\ \n\
rename from src/DLD-FUNCTIONS/inv.cc rename to src/corefcn/inv.cc --- a/src/DLD-FUNCTIONS/inv.cc +++ b/src/corefcn/inv.cc @@ -24,7 +24,7 @@ #include <config.h> #endif -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -36,10 +36,10 @@ #include "ov-perm.h" #include "utils.h" -DEFUN_DLD (inv, args, nargout, +DEFUN (inv, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{x} =} inv (@var{A})\n\ -@deftypefnx {Loadable Function} {[@var{x}, @var{rcond}] =} inv (@var{A})\n\ +@deftypefn {Built-in Function} {@var{x} =} inv (@var{A})\n\ +@deftypefnx {Built-in Function} {[@var{x}, @var{rcond}] =} inv (@var{A})\n\ Compute the inverse of the square matrix @var{A}. Return an estimate\n\ of the reciprocal condition number if requested, otherwise warn of an\n\ ill-conditioned matrix if the reciprocal condition number is small.\n\ @@ -236,10 +236,10 @@ // alias_builtin() won't do the right thing if we are actually using // dynamic linking. -DEFUN_DLD (inverse, args, nargout, +DEFUN (inverse, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{x} =} inverse (@var{A})\n\ -@deftypefnx {Loadable Function} {[@var{x}, @var{rcond}] =} inverse (@var{A})\n\ +@deftypefn {Built-in Function} {@var{x} =} inverse (@var{A})\n\ +@deftypefnx {Built-in Function} {[@var{x}, @var{rcond}] =} inverse (@var{A})\n\ Compute the inverse of the square matrix @var{A}.\n\ \n\ This is an alias for @code{inv}.\n\
rename from src/DLD-FUNCTIONS/kron.cc rename to src/corefcn/kron.cc --- a/src/DLD-FUNCTIONS/kron.cc +++ b/src/corefcn/kron.cc @@ -44,7 +44,7 @@ #include "mx-inlines.cc" #include "quit.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "oct-obj.h" @@ -243,9 +243,9 @@ } -DEFUN_DLD (kron, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} kron (@var{A}, @var{B})\n\ -@deftypefnx {Loadable Function} {} kron (@var{A1}, @var{A2}, @dots{})\n\ +DEFUN (kron, args, , "-*- texinfo -*-\n\ +@deftypefn {Built-in Function} {} kron (@var{A}, @var{B})\n\ +@deftypefnx {Built-in Function} {} kron (@var{A1}, @var{A2}, @dots{})\n\ Form the Kronecker product of two or more matrices, defined block by \n\ block as\n\ \n\
rename from src/DLD-FUNCTIONS/lookup.cc rename to src/corefcn/lookup.cc --- a/src/DLD-FUNCTIONS/lookup.cc +++ b/src/corefcn/lookup.cc @@ -34,7 +34,7 @@ #include "CNDArray.h" #include "Cell.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -186,10 +186,10 @@ return retval; } -DEFUN_DLD (lookup, args, , +DEFUN (lookup, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{idx} =} lookup (@var{table}, @var{y})\n\ -@deftypefnx {Loadable Function} {@var{idx} =} lookup (@var{table}, @var{y}, @var{opt})\n\ +@deftypefn {Built-in Function} {@var{idx} =} lookup (@var{table}, @var{y})\n\ +@deftypefnx {Built-in Function} {@var{idx} =} lookup (@var{table}, @var{y}, @var{opt})\n\ Lookup values in a sorted table. Usually used as a prelude to\n\ interpolation.\n\ \n\
rename from src/DLD-FUNCTIONS/lsode.cc rename to src/corefcn/lsode.cc --- a/src/DLD-FUNCTIONS/lsode.cc +++ b/src/corefcn/lsode.cc @@ -32,7 +32,7 @@ #include "LSODE.h" #include "lo-mappers.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -156,10 +156,10 @@ } \ while (0) -DEFUN_DLD (lsode, args, nargout, +DEFUN (lsode, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{x}, @var{istate}, @var{msg}] =} lsode (@var{fcn}, @var{x_0}, @var{t})\n\ -@deftypefnx {Loadable Function} {[@var{x}, @var{istate}, @var{msg}] =} lsode (@var{fcn}, @var{x_0}, @var{t}, @var{t_crit})\n\ +@deftypefn {Built-in Function} {[@var{x}, @var{istate}, @var{msg}] =} lsode (@var{fcn}, @var{x_0}, @var{t})\n\ +@deftypefnx {Built-in Function} {[@var{x}, @var{istate}, @var{msg}] =} lsode (@var{fcn}, @var{x_0}, @var{t}, @var{t_crit})\n\ Solve the set of differential equations\n\ @tex\n\ $$ {dx \\over dt} = f (x, t) $$\n\
rename from src/DLD-FUNCTIONS/lu.cc rename to src/corefcn/lu.cc --- a/src/DLD-FUNCTIONS/lu.cc +++ b/src/corefcn/lu.cc @@ -31,7 +31,7 @@ #include "SparseCmplxLU.h" #include "SparsedbleLU.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -61,15 +61,15 @@ return U; } -DEFUN_DLD (lu, args, nargout, +DEFUN (lu, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{L}, @var{U}] =} lu (@var{A})\n\ -@deftypefnx {Loadable Function} {[@var{L}, @var{U}, @var{P}] =} lu (@var{A})\n\ -@deftypefnx {Loadable Function} {[@var{L}, @var{U}, @var{P}, @var{Q}] =} lu (@var{S})\n\ -@deftypefnx {Loadable Function} {[@var{L}, @var{U}, @var{P}, @var{Q}, @var{R}] =} lu (@var{S})\n\ -@deftypefnx {Loadable Function} {[@dots{}] =} lu (@var{S}, @var{thres})\n\ -@deftypefnx {Loadable Function} {@var{y} =} lu (@dots{})\n\ -@deftypefnx {Loadable Function} {[@dots{}] =} lu (@dots{}, \"vector\")\n\ +@deftypefn {Built-in Function} {[@var{L}, @var{U}] =} lu (@var{A})\n\ +@deftypefnx {Built-in Function} {[@var{L}, @var{U}, @var{P}] =} lu (@var{A})\n\ +@deftypefnx {Built-in Function} {[@var{L}, @var{U}, @var{P}, @var{Q}] =} lu (@var{S})\n\ +@deftypefnx {Built-in Function} {[@var{L}, @var{U}, @var{P}, @var{Q}, @var{R}] =} lu (@var{S})\n\ +@deftypefnx {Built-in Function} {[@dots{}] =} lu (@var{S}, @var{thres})\n\ +@deftypefnx {Built-in Function} {@var{y} =} lu (@dots{})\n\ +@deftypefnx {Built-in Function} {[@dots{}] =} lu (@dots{}, \"vector\")\n\ @cindex LU decomposition\n\ Compute the LU@tie{}decomposition of @var{A}. If @var{A} is full\n\ subroutines from\n\ @@ -593,10 +593,10 @@ (p.is_undefined () || p.rows () == m)); } -DEFUN_DLD (luupdate, args, , +DEFUN (luupdate, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{L}, @var{U}] =} luupdate (@var{L}, @var{U}, @var{x}, @var{y})\n\ -@deftypefnx {Loadable Function} {[@var{L}, @var{U}, @var{P}] =} luupdate (@var{L}, @var{U}, @var{P}, @var{x}, @var{y})\n\ +@deftypefn {Built-in Function} {[@var{L}, @var{U}] =} luupdate (@var{L}, @var{U}, @var{x}, @var{y})\n\ +@deftypefnx {Built-in Function} {[@var{L}, @var{U}, @var{P}] =} luupdate (@var{L}, @var{U}, @var{P}, @var{x}, @var{y})\n\ Given an LU@tie{}factorization of a real or complex matrix\n\ @w{@var{A} = @var{L}*@var{U}}, @var{L}@tie{}lower unit trapezoidal and\n\ @var{U}@tie{}upper trapezoidal, return the LU@tie{}factorization\n\
rename from src/DLD-FUNCTIONS/luinc.cc rename to src/corefcn/luinc.cc --- a/src/DLD-FUNCTIONS/luinc.cc +++ b/src/corefcn/luinc.cc @@ -24,7 +24,7 @@ #include <config.h> #endif -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -37,11 +37,11 @@ #include "ov-re-sparse.h" #include "ov-cx-sparse.h" -DEFUN_DLD (luinc, args, nargout, +DEFUN (luinc, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{L}, @var{U}, @var{P}, @var{Q}] =} luinc (@var{A}, '0')\n\ -@deftypefnx {Loadable Function} {[@var{L}, @var{U}, @var{P}, @var{Q}] =} luinc (@var{A}, @var{droptol})\n\ -@deftypefnx {Loadable Function} {[@var{L}, @var{U}, @var{P}, @var{Q}] =} luinc (@var{A}, @var{opts})\n\ +@deftypefn {Built-in Function} {[@var{L}, @var{U}, @var{P}, @var{Q}] =} luinc (@var{A}, '0')\n\ +@deftypefnx {Built-in Function} {[@var{L}, @var{U}, @var{P}, @var{Q}] =} luinc (@var{A}, @var{droptol})\n\ +@deftypefnx {Built-in Function} {[@var{L}, @var{U}, @var{P}, @var{Q}] =} luinc (@var{A}, @var{opts})\n\ @cindex LU decomposition\n\ Produce the incomplete LU@tie{}factorization of the sparse matrix @var{A}.\n\ Two types of incomplete factorization are possible, and the type\n\
rename from src/DLD-FUNCTIONS/matrix_type.cc rename to src/corefcn/matrix_type.cc --- a/src/DLD-FUNCTIONS/matrix_type.cc +++ b/src/corefcn/matrix_type.cc @@ -27,7 +27,7 @@ #include <algorithm> #include "ov.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "ov-re-mat.h" #include "ov-cx-mat.h" @@ -36,14 +36,14 @@ #include "MatrixType.h" #include "oct-locbuf.h" -DEFUN_DLD (matrix_type, args, , +DEFUN (matrix_type, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{type} =} matrix_type (@var{A})\n\ -@deftypefnx {Loadable Function} {@var{type} =} matrix_type (@var{A}, \"nocompute\")\n\ -@deftypefnx {Loadable Function} {@var{A} =} matrix_type (@var{A}, @var{type})\n\ -@deftypefnx {Loadable Function} {@var{A} =} matrix_type (@var{A}, \"upper\", @var{perm})\n\ -@deftypefnx {Loadable Function} {@var{A} =} matrix_type (@var{A}, \"lower\", @var{perm})\n\ -@deftypefnx {Loadable Function} {@var{A} =} matrix_type (@var{A}, \"banded\", @var{nl}, @var{nu})\n\ +@deftypefn {Built-in Function} {@var{type} =} matrix_type (@var{A})\n\ +@deftypefnx {Built-in Function} {@var{type} =} matrix_type (@var{A}, \"nocompute\")\n\ +@deftypefnx {Built-in Function} {@var{A} =} matrix_type (@var{A}, @var{type})\n\ +@deftypefnx {Built-in Function} {@var{A} =} matrix_type (@var{A}, \"upper\", @var{perm})\n\ +@deftypefnx {Built-in Function} {@var{A} =} matrix_type (@var{A}, \"lower\", @var{perm})\n\ +@deftypefnx {Built-in Function} {@var{A} =} matrix_type (@var{A}, \"banded\", @var{nl}, @var{nu})\n\ Identify the matrix type or mark a matrix as a particular type. This allows\n\ more rapid solutions of linear equations involving @var{A} to be performed.\n\ Called with a single argument, @code{matrix_type} returns the type of the\n\
rename from src/DLD-FUNCTIONS/max.cc rename to src/corefcn/max.cc --- a/src/DLD-FUNCTIONS/max.cc +++ b/src/corefcn/max.cc @@ -32,7 +32,7 @@ #include "CNDArray.h" #include "quit.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -305,13 +305,13 @@ return retval; } -DEFUN_DLD (min, args, nargout, +DEFUN (min, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} min (@var{x})\n\ -@deftypefnx {Loadable Function} {} min (@var{x}, @var{y})\n\ -@deftypefnx {Loadable Function} {} min (@var{x}, [], @var{dim})\n\ -@deftypefnx {Loadable Function} {} min (@var{x}, @var{y}, @var{dim})\n\ -@deftypefnx {Loadable Function} {[@var{w}, @var{iw}] =} min (@var{x})\n\ +@deftypefn {Built-in Function} {} min (@var{x})\n\ +@deftypefnx {Built-in Function} {} min (@var{x}, @var{y})\n\ +@deftypefnx {Built-in Function} {} min (@var{x}, [], @var{dim})\n\ +@deftypefnx {Built-in Function} {} min (@var{x}, @var{y}, @var{dim})\n\ +@deftypefnx {Built-in Function} {[@var{w}, @var{iw}] =} min (@var{x})\n\ For a vector argument, return the minimum value. For a matrix\n\ argument, return the minimum value from each column, as a row\n\ vector, or over the dimension @var{dim} if defined, in which case @var{y} \n\ @@ -376,13 +376,13 @@ %!error min (1, 2, 3, 4) */ -DEFUN_DLD (max, args, nargout, +DEFUN (max, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} max (@var{x})\n\ -@deftypefnx {Loadable Function} {} max (@var{x}, @var{y})\n\ -@deftypefnx {Loadable Function} {} max (@var{x}, [], @var{dim})\n\ -@deftypefnx {Loadable Function} {} max (@var{x}, @var{y}, @var{dim})\n\ -@deftypefnx {Loadable Function} {[@var{w}, @var{iw}] =} max (@var{x})\n\ +@deftypefn {Built-in Function} {} max (@var{x})\n\ +@deftypefnx {Built-in Function} {} max (@var{x}, @var{y})\n\ +@deftypefnx {Built-in Function} {} max (@var{x}, [], @var{dim})\n\ +@deftypefnx {Built-in Function} {} max (@var{x}, @var{y}, @var{dim})\n\ +@deftypefnx {Built-in Function} {[@var{w}, @var{iw}] =} max (@var{x})\n\ For a vector argument, return the maximum value. For a matrix\n\ argument, return the maximum value from each column, as a row\n\ vector, or over the dimension @var{dim} if defined, in which case @var{y} \n\ @@ -548,11 +548,11 @@ return retval; } -DEFUN_DLD (cummin, args, nargout, +DEFUN (cummin, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} cummin (@var{x})\n\ -@deftypefnx {Loadable Function} {} cummin (@var{x}, @var{dim})\n\ -@deftypefnx {Loadable Function} {[@var{w}, @var{iw}] =} cummin (@var{x})\n\ +@deftypefn {Built-in Function} {} cummin (@var{x})\n\ +@deftypefnx {Built-in Function} {} cummin (@var{x}, @var{dim})\n\ +@deftypefnx {Built-in Function} {[@var{w}, @var{iw}] =} cummin (@var{x})\n\ Return the cumulative minimum values along dimension @var{dim}. If @var{dim}\n\ is unspecified it defaults to column-wise operation. For example:\n\ \n\ @@ -590,11 +590,11 @@ return do_cumminmax_body (args, nargout, true); } -DEFUN_DLD (cummax, args, nargout, +DEFUN (cummax, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} cummax (@var{x})\n\ -@deftypefnx {Loadable Function} {} cummax (@var{x}, @var{dim})\n\ -@deftypefnx {Loadable Function} {[@var{w}, @var{iw}] =} cummax (@var{x})\n\ +@deftypefn {Built-in Function} {} cummax (@var{x})\n\ +@deftypefnx {Built-in Function} {} cummax (@var{x}, @var{dim})\n\ +@deftypefnx {Built-in Function} {[@var{w}, @var{iw}] =} cummax (@var{x})\n\ Return the cumulative maximum values along dimension @var{dim}. If @var{dim}\n\ is unspecified it defaults to column-wise operation. For example:\n\ \n\
rename from src/DLD-FUNCTIONS/md5sum.cc rename to src/corefcn/md5sum.cc --- a/src/DLD-FUNCTIONS/md5sum.cc +++ b/src/corefcn/md5sum.cc @@ -28,7 +28,7 @@ #include <string> #include <vector> -#include "defun-dld.h" +#include "defun.h" #include "file-stat.h" #include "file-ops.h" #include "gripes.h" @@ -36,10 +36,10 @@ #include "oct-env.h" #include "oct-md5.h" -DEFUN_DLD (md5sum, args, , +DEFUN (md5sum, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} md5sum (@var{file})\n\ -@deftypefnx {Loadable Function} {} md5sum (@var{str}, @var{opt})\n\ +@deftypefn {Built-in Function} {} md5sum (@var{file})\n\ +@deftypefnx {Built-in Function} {} md5sum (@var{str}, @var{opt})\n\ Calculate the MD5 sum of the file @var{file}. If the second parameter\n\ @var{opt} exists and is true, then calculate the MD5 sum of the\n\ string @var{str}.\n\
rename from src/DLD-FUNCTIONS/mgorth.cc rename to src/corefcn/mgorth.cc --- a/src/DLD-FUNCTIONS/mgorth.cc +++ b/src/corefcn/mgorth.cc @@ -26,7 +26,7 @@ #endif #include "oct-norm.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" @@ -48,9 +48,9 @@ x = x / h(Vc); } -DEFUN_DLD (mgorth, args, nargout, +DEFUN (mgorth, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{y}, @var{h}] =} mgorth (@var{x}, @var{v})\n\ +@deftypefn {Built-in Function} {[@var{y}, @var{h}] =} mgorth (@var{x}, @var{v})\n\ Orthogonalize a given column vector @var{x} with respect to a given\n\ orthonormal basis @var{v} using a modified Gram-Schmidt orthogonalization. \n\ On exit, @var{y} is a unit vector such that:\n\
new file mode 100644 --- /dev/null +++ b/src/corefcn/module.mk @@ -0,0 +1,70 @@ +EXTRA_DIST += \ + corefcn/module.mk + +corefcn_SRC = \ + corefcn/__contourc__.cc \ + corefcn/__dispatch__.cc \ + corefcn/__lin_interpn__.cc \ + corefcn/__pchip_deriv__.cc \ + corefcn/__qp__.cc \ + corefcn/balance.cc \ + corefcn/besselj.cc \ + corefcn/betainc.cc \ + corefcn/bsxfun.cc \ + corefcn/cellfun.cc \ + corefcn/colloc.cc \ + corefcn/conv2.cc \ + corefcn/daspk.cc \ + corefcn/dasrt.cc \ + corefcn/dassl.cc \ + corefcn/det.cc \ + corefcn/dlmread.cc \ + corefcn/dot.cc \ + corefcn/eig.cc \ + corefcn/fft.cc \ + corefcn/fft2.cc \ + corefcn/fftn.cc \ + corefcn/filter.cc \ + corefcn/find.cc \ + corefcn/gammainc.cc \ + corefcn/gcd.cc \ + corefcn/getgrent.cc \ + corefcn/getpwent.cc \ + corefcn/getrusage.cc \ + corefcn/givens.cc \ + corefcn/hess.cc \ + corefcn/hex2num.cc \ + corefcn/inv.cc \ + corefcn/kron.cc \ + corefcn/lookup.cc \ + corefcn/lsode.cc \ + corefcn/lu.cc \ + corefcn/luinc.cc \ + corefcn/matrix_type.cc \ + corefcn/max.cc \ + corefcn/md5sum.cc \ + corefcn/mgorth.cc \ + corefcn/nproc.cc \ + corefcn/pinv.cc \ + corefcn/quad.cc \ + corefcn/quadcc.cc \ + corefcn/qz.cc \ + corefcn/rand.cc \ + corefcn/rcond.cc \ + corefcn/regexp.cc \ + corefcn/schur.cc \ + corefcn/spparms.cc \ + corefcn/sqrtm.cc \ + corefcn/str2double.cc \ + corefcn/strfind.cc \ + corefcn/sub2ind.cc \ + corefcn/svd.cc \ + corefcn/syl.cc \ + corefcn/time.cc \ + corefcn/tril.cc \ + corefcn/typecast.cc + +noinst_LTLIBRARIES += corefcn/libcorefcn.la + +corefcn_libcorefcn_la_SOURCES = $(corefcn_SRC) +
rename from src/DLD-FUNCTIONS/nproc.cc rename to src/corefcn/nproc.cc --- a/src/DLD-FUNCTIONS/nproc.cc +++ b/src/corefcn/nproc.cc @@ -24,13 +24,13 @@ #include <config.h> #endif -#include "defun-dld.h" +#include "defun.h" #include "nproc.h" -DEFUN_DLD (nproc, args, nargout, +DEFUN (nproc, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} nproc ()\n\ -@deftypefnx {Loadable Function} {} nproc (@var{query})\n\ +@deftypefn {Built-in Function} {} nproc ()\n\ +@deftypefnx {Built-in Function} {} nproc (@var{query})\n\ Return the current number of available processors.\n\ \n\ If called with the optional argument @var{query}, modify how processors\n\
rename from src/DLD-FUNCTIONS/pinv.cc rename to src/corefcn/pinv.cc --- a/src/DLD-FUNCTIONS/pinv.cc +++ b/src/corefcn/pinv.cc @@ -24,7 +24,7 @@ #include <config.h> #endif -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -36,10 +36,10 @@ #include "ov-flt-cx-diag.h" #include "ov-perm.h" -DEFUN_DLD (pinv, args, , +DEFUN (pinv, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} pinv (@var{x})\n\ -@deftypefnx {Loadable Function} {} pinv (@var{x}, @var{tol})\n\ +@deftypefn {Built-in Function} {} pinv (@var{x})\n\ +@deftypefnx {Built-in Function} {} pinv (@var{x}, @var{tol})\n\ Return the pseudoinverse of @var{x}. Singular values less than\n\ @var{tol} are ignored.\n\ \n\
rename from src/DLD-FUNCTIONS/quad.cc rename to src/corefcn/quad.cc --- a/src/DLD-FUNCTIONS/quad.cc +++ b/src/corefcn/quad.cc @@ -32,7 +32,7 @@ #include "Quad.h" #include "lo-mappers.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "pager.h" @@ -172,12 +172,12 @@ } \ while (0) -DEFUN_DLD (quad, args, nargout, +DEFUN (quad, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{q} =} quad (@var{f}, @var{a}, @var{b})\n\ -@deftypefnx {Loadable Function} {@var{q} =} quad (@var{f}, @var{a}, @var{b}, @var{tol})\n\ -@deftypefnx {Loadable Function} {@var{q} =} quad (@var{f}, @var{a}, @var{b}, @var{tol}, @var{sing})\n\ -@deftypefnx {Loadable Function} {[@var{q}, @var{ier}, @var{nfun}, @var{err}] =} quad (@dots{})\n\ +@deftypefn {Built-in Function} {@var{q} =} quad (@var{f}, @var{a}, @var{b})\n\ +@deftypefnx {Built-in Function} {@var{q} =} quad (@var{f}, @var{a}, @var{b}, @var{tol})\n\ +@deftypefnx {Built-in Function} {@var{q} =} quad (@var{f}, @var{a}, @var{b}, @var{tol}, @var{sing})\n\ +@deftypefnx {Built-in Function} {[@var{q}, @var{ier}, @var{nfun}, @var{err}] =} quad (@dots{})\n\ Numerically evaluate the integral of @var{f} from @var{a} to @var{b} using\n\ Fortran routines from @w{@sc{quadpack}}. @var{f} is a function handle,\n\ inline function, or a string containing the name of the function to\n\
rename from src/DLD-FUNCTIONS/quadcc.cc rename to src/corefcn/quadcc.cc --- a/src/DLD-FUNCTIONS/quadcc.cc +++ b/src/corefcn/quadcc.cc @@ -24,12 +24,17 @@ #include <config.h> #endif -#include <stdlib.h> -#include "lo-math.h" #include "lo-ieee.h" -#include "oct.h" #include "parse.h" -#include "ov-fcn-handle.h" +#include "variables.h" + +#include "defun.h" +#include "error.h" +#include "oct-obj.h" +#include "utils.h" + +//#include "oct.h" +//#include "defun.h" /* Define the size of the interval heap. */ #define cquad_heapsize 200 @@ -1469,7 +1474,7 @@ /* The actual integration routine. */ -DEFUN_DLD (quadcc, args, nargout, +DEFUN (quadcc, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Function File} {@var{q} =} quadcc (@var{f}, @var{a}, @var{b})\n\ @deftypefnx {Function File} {@var{q} =} quadcc (@var{f}, @var{a}, @var{b}, @var{tol})\n\
rename from src/DLD-FUNCTIONS/qz.cc rename to src/corefcn/qz.cc --- a/src/DLD-FUNCTIONS/qz.cc +++ b/src/corefcn/qz.cc @@ -44,7 +44,7 @@ #include "lo-math.h" #include "quit.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -290,10 +290,10 @@ //FIXME: Matlab does not produce lambda as the first output argument. // Compatibility problem? -DEFUN_DLD (qz, args, nargout, +DEFUN (qz, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{lambda} =} qz (@var{A}, @var{B})\n\ -@deftypefnx {Loadable Function} {@var{lambda} =} qz (@var{A}, @var{B}, @var{opt})\n\ +@deftypefn {Built-in Function} {@var{lambda} =} qz (@var{A}, @var{B})\n\ +@deftypefnx {Built-in Function} {@var{lambda} =} qz (@var{A}, @var{B}, @var{opt})\n\ QZ@tie{}decomposition of the generalized eigenvalue problem\n\ (@math{A x = s B x}). There are three ways to call this function:\n\ @enumerate\n\
rename from src/DLD-FUNCTIONS/rand.cc rename to src/corefcn/rand.cc --- a/src/DLD-FUNCTIONS/rand.cc +++ b/src/corefcn/rand.cc @@ -39,7 +39,7 @@ #include "oct-rand.h" #include "quit.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -363,19 +363,19 @@ } } -DEFUN_DLD (rand, args, , +DEFUN (rand, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} rand (@var{n})\n\ -@deftypefnx {Loadable Function} {} rand (@var{n}, @var{m}, @dots{})\n\ -@deftypefnx {Loadable Function} {} rand ([@var{n} @var{m} @dots{}])\n\ -@deftypefnx {Loadable Function} {@var{v} =} rand (\"state\")\n\ -@deftypefnx {Loadable Function} {} rand (\"state\", @var{v})\n\ -@deftypefnx {Loadable Function} {} rand (\"state\", \"reset\")\n\ -@deftypefnx {Loadable Function} {@var{v} =} rand (\"seed\")\n\ -@deftypefnx {Loadable Function} {} rand (\"seed\", @var{v})\n\ -@deftypefnx {Loadable Function} {} rand (\"seed\", \"reset\")\n\ -@deftypefnx {Loadable Function} {} rand (@dots{}, \"single\")\n\ -@deftypefnx {Loadable Function} {} rand (@dots{}, \"double\")\n\ +@deftypefn {Built-in Function} {} rand (@var{n})\n\ +@deftypefnx {Built-in Function} {} rand (@var{n}, @var{m}, @dots{})\n\ +@deftypefnx {Built-in Function} {} rand ([@var{n} @var{m} @dots{}])\n\ +@deftypefnx {Built-in Function} {@var{v} =} rand (\"state\")\n\ +@deftypefnx {Built-in Function} {} rand (\"state\", @var{v})\n\ +@deftypefnx {Built-in Function} {} rand (\"state\", \"reset\")\n\ +@deftypefnx {Built-in Function} {@var{v} =} rand (\"seed\")\n\ +@deftypefnx {Built-in Function} {} rand (\"seed\", @var{v})\n\ +@deftypefnx {Built-in Function} {} rand (\"seed\", \"reset\")\n\ +@deftypefnx {Built-in Function} {} rand (@dots{}, \"single\")\n\ +@deftypefnx {Built-in Function} {} rand (@dots{}, \"double\")\n\ Return a matrix with random elements uniformly distributed on the\n\ interval (0, 1). The arguments are handled the same as the arguments\n\ for @code{eye}.\n\ @@ -535,19 +535,19 @@ static std::string current_distribution = octave_rand::distribution (); -DEFUN_DLD (randn, args, , +DEFUN (randn, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} randn (@var{n})\n\ -@deftypefnx {Loadable Function} {} randn (@var{n}, @var{m}, @dots{})\n\ -@deftypefnx {Loadable Function} {} randn ([@var{n} @var{m} @dots{}])\n\ -@deftypefnx {Loadable Function} {@var{v} =} randn (\"state\")\n\ -@deftypefnx {Loadable Function} {} randn (\"state\", @var{v})\n\ -@deftypefnx {Loadable Function} {} randn (\"state\", \"reset\")\n\ -@deftypefnx {Loadable Function} {@var{v} =} randn (\"seed\")\n\ -@deftypefnx {Loadable Function} {} randn (\"seed\", @var{v})\n\ -@deftypefnx {Loadable Function} {} randn (\"seed\", \"reset\")\n\ -@deftypefnx {Loadable Function} {} randn (@dots{}, \"single\")\n\ -@deftypefnx {Loadable Function} {} randn (@dots{}, \"double\")\n\ +@deftypefn {Built-in Function} {} randn (@var{n})\n\ +@deftypefnx {Built-in Function} {} randn (@var{n}, @var{m}, @dots{})\n\ +@deftypefnx {Built-in Function} {} randn ([@var{n} @var{m} @dots{}])\n\ +@deftypefnx {Built-in Function} {@var{v} =} randn (\"state\")\n\ +@deftypefnx {Built-in Function} {} randn (\"state\", @var{v})\n\ +@deftypefnx {Built-in Function} {} randn (\"state\", \"reset\")\n\ +@deftypefnx {Built-in Function} {@var{v} =} randn (\"seed\")\n\ +@deftypefnx {Built-in Function} {} randn (\"seed\", @var{v})\n\ +@deftypefnx {Built-in Function} {} randn (\"seed\", \"reset\")\n\ +@deftypefnx {Built-in Function} {} randn (@dots{}, \"single\")\n\ +@deftypefnx {Built-in Function} {} randn (@dots{}, \"double\")\n\ Return a matrix with normally distributed random\n\ elements having zero mean and variance one. The arguments are\n\ handled the same as the arguments for @code{rand}.\n\ @@ -606,19 +606,19 @@ %! endif */ -DEFUN_DLD (rande, args, , +DEFUN (rande, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} rande (@var{n})\n\ -@deftypefnx {Loadable Function} {} rande (@var{n}, @var{m}, @dots{})\n\ -@deftypefnx {Loadable Function} {} rande ([@var{n} @var{m} @dots{}])\n\ -@deftypefnx {Loadable Function} {@var{v} =} rande (\"state\")\n\ -@deftypefnx {Loadable Function} {} rande (\"state\", @var{v})\n\ -@deftypefnx {Loadable Function} {} rande (\"state\", \"reset\")\n\ -@deftypefnx {Loadable Function} {@var{v} =} rande (\"seed\")\n\ -@deftypefnx {Loadable Function} {} rande (\"seed\", @var{v})\n\ -@deftypefnx {Loadable Function} {} rande (\"seed\", \"reset\")\n\ -@deftypefnx {Loadable Function} {} rande (@dots{}, \"single\")\n\ -@deftypefnx {Loadable Function} {} rande (@dots{}, \"double\")\n\ +@deftypefn {Built-in Function} {} rande (@var{n})\n\ +@deftypefnx {Built-in Function} {} rande (@var{n}, @var{m}, @dots{})\n\ +@deftypefnx {Built-in Function} {} rande ([@var{n} @var{m} @dots{}])\n\ +@deftypefnx {Built-in Function} {@var{v} =} rande (\"state\")\n\ +@deftypefnx {Built-in Function} {} rande (\"state\", @var{v})\n\ +@deftypefnx {Built-in Function} {} rande (\"state\", \"reset\")\n\ +@deftypefnx {Built-in Function} {@var{v} =} rande (\"seed\")\n\ +@deftypefnx {Built-in Function} {} rande (\"seed\", @var{v})\n\ +@deftypefnx {Built-in Function} {} rande (\"seed\", \"reset\")\n\ +@deftypefnx {Built-in Function} {} rande (@dots{}, \"single\")\n\ +@deftypefnx {Built-in Function} {} rande (@dots{}, \"double\")\n\ Return a matrix with exponentially distributed random elements. The\n\ arguments are handled the same as the arguments for @code{rand}.\n\ \n\ @@ -678,19 +678,19 @@ %! endif */ -DEFUN_DLD (randg, args, , +DEFUN (randg, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} randg (@var{n})\n\ -@deftypefnx {Loadable Function} {} randg (@var{n}, @var{m}, @dots{})\n\ -@deftypefnx {Loadable Function} {} randg ([@var{n} @var{m} @dots{}])\n\ -@deftypefnx {Loadable Function} {@var{v} =} randg (\"state\")\n\ -@deftypefnx {Loadable Function} {} randg (\"state\", @var{v})\n\ -@deftypefnx {Loadable Function} {} randg (\"state\", \"reset\")\n\ -@deftypefnx {Loadable Function} {@var{v} =} randg (\"seed\")\n\ -@deftypefnx {Loadable Function} {} randg (\"seed\", @var{v})\n\ -@deftypefnx {Loadable Function} {} randg (\"seed\", \"reset\")\n\ -@deftypefnx {Loadable Function} {} randg (@dots{}, \"single\")\n\ -@deftypefnx {Loadable Function} {} randg (@dots{}, \"double\")\n\ +@deftypefn {Built-in Function} {} randg (@var{n})\n\ +@deftypefnx {Built-in Function} {} randg (@var{n}, @var{m}, @dots{})\n\ +@deftypefnx {Built-in Function} {} randg ([@var{n} @var{m} @dots{}])\n\ +@deftypefnx {Built-in Function} {@var{v} =} randg (\"state\")\n\ +@deftypefnx {Built-in Function} {} randg (\"state\", @var{v})\n\ +@deftypefnx {Built-in Function} {} randg (\"state\", \"reset\")\n\ +@deftypefnx {Built-in Function} {@var{v} =} randg (\"seed\")\n\ +@deftypefnx {Built-in Function} {} randg (\"seed\", @var{v})\n\ +@deftypefnx {Built-in Function} {} randg (\"seed\", \"reset\")\n\ +@deftypefnx {Built-in Function} {} randg (@dots{}, \"single\")\n\ +@deftypefnx {Built-in Function} {} randg (@dots{}, \"double\")\n\ Return a matrix with @code{gamma (@var{a},1)} distributed random elements.\n\ The arguments are handled the same as the arguments for @code{rand},\n\ except for the argument @var{a}.\n\ @@ -949,19 +949,19 @@ %! endif */ -DEFUN_DLD (randp, args, , +DEFUN (randp, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} randp (@var{l}, @var{n})\n\ -@deftypefnx {Loadable Function} {} randp (@var{l}, @var{n}, @var{m}, @dots{})\n\ -@deftypefnx {Loadable Function} {} randp (@var{l}, [@var{n} @var{m} @dots{}])\n\ -@deftypefnx {Loadable Function} {@var{v} =} randp (\"state\")\n\ -@deftypefnx {Loadable Function} {} randp (\"state\", @var{v})\n\ -@deftypefnx {Loadable Function} {} randp (\"state\", \"reset\")\n\ -@deftypefnx {Loadable Function} {@var{v} =} randp (\"seed\")\n\ -@deftypefnx {Loadable Function} {} randp (\"seed\", @var{v})\n\ -@deftypefnx {Loadable Function} {} randp (\"seed\", \"reset\")\n\ -@deftypefnx {Loadable Function} {} randp (@dots{}, \"single\")\n\ -@deftypefnx {Loadable Function} {} randp (@dots{}, \"double\")\n\ +@deftypefn {Built-in Function} {} randp (@var{l}, @var{n})\n\ +@deftypefnx {Built-in Function} {} randp (@var{l}, @var{n}, @var{m}, @dots{})\n\ +@deftypefnx {Built-in Function} {} randp (@var{l}, [@var{n} @var{m} @dots{}])\n\ +@deftypefnx {Built-in Function} {@var{v} =} randp (\"state\")\n\ +@deftypefnx {Built-in Function} {} randp (\"state\", @var{v})\n\ +@deftypefnx {Built-in Function} {} randp (\"state\", \"reset\")\n\ +@deftypefnx {Built-in Function} {@var{v} =} randp (\"seed\")\n\ +@deftypefnx {Built-in Function} {} randp (\"seed\", @var{v})\n\ +@deftypefnx {Built-in Function} {} randp (\"seed\", \"reset\")\n\ +@deftypefnx {Built-in Function} {} randp (@dots{}, \"single\")\n\ +@deftypefnx {Built-in Function} {} randp (@dots{}, \"double\")\n\ Return a matrix with Poisson distributed random elements with mean value\n\ parameter given by the first argument, @var{l}. The arguments\n\ are handled the same as the arguments for @code{rand}, except for the\n\ @@ -1096,10 +1096,10 @@ %! endif */ -DEFUN_DLD (randperm, args, , +DEFUN (randperm, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} randperm (@var{n})\n\ -@deftypefnx {Loadable Function} {} randperm (@var{n}, @var{m})\n\ +@deftypefn {Built-in Function} {} randperm (@var{n})\n\ +@deftypefnx {Built-in Function} {} randperm (@var{n}, @var{m})\n\ Return a row vector containing a random permutation of @code{1:@var{n}}.\n\ If @var{m} is supplied, return @var{m} unique entries, sampled without\n\ replacement from @code{1:@var{n}}. The complexity is O(@var{n}) in\n\
rename from src/DLD-FUNCTIONS/rcond.cc rename to src/corefcn/rcond.cc --- a/src/DLD-FUNCTIONS/rcond.cc +++ b/src/corefcn/rcond.cc @@ -24,15 +24,15 @@ #include <config.h> #endif -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" #include "utils.h" -DEFUN_DLD (rcond, args, , +DEFUN (rcond, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{c} =} rcond (@var{A})\n\ +@deftypefn {Built-in Function} {@var{c} =} rcond (@var{A})\n\ Compute the 1-norm estimate of the reciprocal condition number as returned\n\ by @sc{lapack}. If the matrix is well-conditioned then @var{c} will be near\n\ 1 and if the matrix is poorly conditioned it will be close to zero.\n\
rename from src/DLD-FUNCTIONS/regexp.cc rename to src/corefcn/regexp.cc --- a/src/DLD-FUNCTIONS/regexp.cc +++ b/src/corefcn/regexp.cc @@ -36,7 +36,7 @@ #include "regexp.h" #include "str-vec.h" -#include "defun-dld.h" +#include "defun.h" #include "Cell.h" #include "error.h" #include "gripes.h" @@ -536,10 +536,10 @@ } -DEFUN_DLD (regexp, args, nargout, +DEFUN (regexp, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{s}, @var{e}, @var{te}, @var{m}, @var{t}, @var{nm}, @var{sp}] =} regexp (@var{str}, @var{pat})\n\ -@deftypefnx {Loadable Function} {[@dots{}] =} regexp (@var{str}, @var{pat}, \"@var{opt1}\", @dots{})\n\ +@deftypefn {Built-in Function} {[@var{s}, @var{e}, @var{te}, @var{m}, @var{t}, @var{nm}, @var{sp}] =} regexp (@var{str}, @var{pat})\n\ +@deftypefnx {Built-in Function} {[@dots{}] =} regexp (@var{str}, @var{pat}, \"@var{opt1}\", @dots{})\n\ Regular expression string matching. Search for @var{pat} in @var{str} and\n\ return the positions and substrings of any matches, or empty values if there\n\ are none.\n\ @@ -1016,10 +1016,10 @@ %!assert (regexp ("\n", "\n"), 1); */ -DEFUN_DLD (regexpi, args, nargout, +DEFUN (regexpi, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{s}, @var{e}, @var{te}, @var{m}, @var{t}, @var{nm}, @var{sp}] =} regexpi (@var{str}, @var{pat})\n\ -@deftypefnx {Loadable Function} {[@dots{}] =} regexpi (@var{str}, @var{pat}, \"@var{opt1}\", @dots{})\n\ +@deftypefn {Built-in Function} {[@var{s}, @var{e}, @var{te}, @var{m}, @var{t}, @var{nm}, @var{sp}] =} regexpi (@var{str}, @var{pat})\n\ +@deftypefnx {Built-in Function} {[@dots{}] =} regexpi (@var{str}, @var{pat}, \"@var{opt1}\", @dots{})\n\ \n\ Case insensitive regular expression string matching. Search for @var{pat} in\n\ @var{str} and return the positions and substrings of any matches, or empty\n\ @@ -1228,10 +1228,10 @@ return regexp_replace (pattern, buffer, replacement, options, who); } -DEFUN_DLD (regexprep, args, , +DEFUN (regexprep, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{outstr} =} regexprep (@var{string}, @var{pat}, @var{repstr})\n\ -@deftypefnx {Loadable Function} {@var{outstr} =} regexprep (@var{string}, @var{pat}, @var{repstr}, \"@var{opt1}\", @dots{})\n\ +@deftypefn {Built-in Function} {@var{outstr} =} regexprep (@var{string}, @var{pat}, @var{repstr})\n\ +@deftypefnx {Built-in Function} {@var{outstr} =} regexprep (@var{string}, @var{pat}, @var{repstr}, \"@var{opt1}\", @dots{})\n\ Replace occurrences of pattern @var{pat} in @var{string} with @var{repstr}.\n\ \n\ The pattern is a regular expression as documented for @code{regexp}.\n\
rename from src/DLD-FUNCTIONS/schur.cc rename to src/corefcn/schur.cc --- a/src/DLD-FUNCTIONS/schur.cc +++ b/src/corefcn/schur.cc @@ -31,7 +31,7 @@ #include "fCmplxSCHUR.h" #include "floatSCHUR.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -57,13 +57,13 @@ return retval; } -DEFUN_DLD (schur, args, nargout, +DEFUN (schur, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{S} =} schur (@var{A})\n\ -@deftypefnx {Loadable Function} {@var{S} =} schur (@var{A}, \"real\")\n\ -@deftypefnx {Loadable Function} {@var{S} =} schur (@var{A}, \"complex\")\n\ -@deftypefnx {Loadable Function} {@var{S} =} schur (@var{A}, @var{opt})\n\ -@deftypefnx {Loadable Function} {[@var{U}, @var{S}] =} schur (@var{A}, @dots{})\n\ +@deftypefn {Built-in Function} {@var{S} =} schur (@var{A})\n\ +@deftypefnx {Built-in Function} {@var{S} =} schur (@var{A}, \"real\")\n\ +@deftypefnx {Built-in Function} {@var{S} =} schur (@var{A}, \"complex\")\n\ +@deftypefnx {Built-in Function} {@var{S} =} schur (@var{A}, @var{opt})\n\ +@deftypefnx {Built-in Function} {[@var{U}, @var{S}] =} schur (@var{A}, @dots{})\n\ @cindex Schur decomposition\n\ Compute the Schur@tie{}decomposition of @var{A}\n\ @tex\n\ @@ -292,7 +292,7 @@ %!error <argument must be a square matrix> schur ([1, 2, 3; 4, 5, 6]) */ -DEFUN_DLD (rsf2csf, args, nargout, +DEFUN (rsf2csf, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Function File} {[@var{U}, @var{T}] =} rsf2csf (@var{UR}, @var{TR})\n\ Convert a real, upper quasi-triangular Schur@tie{}form @var{TR} to a complex,\n\
rename from src/DLD-FUNCTIONS/spparms.cc rename to src/corefcn/spparms.cc --- a/src/DLD-FUNCTIONS/spparms.cc +++ b/src/corefcn/spparms.cc @@ -25,7 +25,7 @@ #include <config.h> #endif -#include "defun-dld.h" +#include "defun.h" #include "ov.h" #include "pager.h" #include "error.h" @@ -33,16 +33,16 @@ #include "oct-spparms.h" -DEFUN_DLD (spparms, args, nargout, +DEFUN (spparms, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} { } spparms ()\n\ -@deftypefnx {Loadable Function} {@var{vals} =} spparms ()\n\ -@deftypefnx {Loadable Function} {[@var{keys}, @var{vals}] =} spparms ()\n\ -@deftypefnx {Loadable Function} {@var{val} =} spparms (@var{key})\n\ -@deftypefnx {Loadable Function} { } spparms (@var{vals})\n\ -@deftypefnx {Loadable Function} { } spparms (\"defaults\")\n\ -@deftypefnx {Loadable Function} { } spparms (\"tight\")\n\ -@deftypefnx {Loadable Function} { } spparms (@var{key}, @var{val})\n\ +@deftypefn {Built-in Function} { } spparms ()\n\ +@deftypefnx {Built-in Function} {@var{vals} =} spparms ()\n\ +@deftypefnx {Built-in Function} {[@var{keys}, @var{vals}] =} spparms ()\n\ +@deftypefnx {Built-in Function} {@var{val} =} spparms (@var{key})\n\ +@deftypefnx {Built-in Function} { } spparms (@var{vals})\n\ +@deftypefnx {Built-in Function} { } spparms (\"defaults\")\n\ +@deftypefnx {Built-in Function} { } spparms (\"tight\")\n\ +@deftypefnx {Built-in Function} { } spparms (@var{key}, @var{val})\n\ Query or set the parameters used by the sparse solvers and factorization\n\ functions. The first four calls above get information about the current\n\ settings, while the others change the current settings. The parameters are\n\
rename from src/DLD-FUNCTIONS/sqrtm.cc rename to src/corefcn/sqrtm.cc --- a/src/DLD-FUNCTIONS/sqrtm.cc +++ b/src/corefcn/sqrtm.cc @@ -33,7 +33,7 @@ #include "lo-mappers.h" #include "oct-norm.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "utils.h" @@ -199,10 +199,10 @@ return retval; } -DEFUN_DLD (sqrtm, args, nargout, +DEFUN (sqrtm, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{s} =} sqrtm (@var{A})\n\ -@deftypefnx {Loadable Function} {[@var{s}, @var{error_estimate}] =} sqrtm (@var{A})\n\ +@deftypefn {Built-in Function} {@var{s} =} sqrtm (@var{A})\n\ +@deftypefnx {Built-in Function} {[@var{s}, @var{error_estimate}] =} sqrtm (@var{A})\n\ Compute the matrix square root of the square matrix @var{A}.\n\ \n\ Ref: N.J. Higham. @cite{A New sqrtm for @sc{matlab}}. Numerical\n\
rename from src/DLD-FUNCTIONS/str2double.cc rename to src/corefcn/str2double.cc --- a/src/DLD-FUNCTIONS/str2double.cc +++ b/src/corefcn/str2double.cc @@ -34,7 +34,7 @@ #include "Cell.h" #include "ov.h" -#include "defun-dld.h" +#include "defun.h" #include "gripes.h" #include "utils.h" @@ -294,7 +294,7 @@ return val; } -DEFUN_DLD (str2double, args, , +DEFUN (str2double, args, , "-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} str2double (@var{s})\n\ Convert a string to a real or complex number.\n\
rename from src/DLD-FUNCTIONS/strfind.cc rename to src/corefcn/strfind.cc --- a/src/DLD-FUNCTIONS/strfind.cc +++ b/src/corefcn/strfind.cc @@ -32,7 +32,7 @@ #include "Cell.h" #include "ov.h" -#include "defun-dld.h" +#include "defun.h" #include "unwind-prot.h" #include "gripes.h" #include "utils.h" @@ -145,10 +145,10 @@ return result; } -DEFUN_DLD (strfind, args, , +DEFUN (strfind, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{idx} =} strfind (@var{str}, @var{pattern})\n\ -@deftypefnx {Loadable Function} {@var{idx} =} strfind (@var{cellstr}, @var{pattern})\n\ +@deftypefn {Built-in Function} {@var{idx} =} strfind (@var{str}, @var{pattern})\n\ +@deftypefnx {Built-in Function} {@var{idx} =} strfind (@var{cellstr}, @var{pattern})\n\ Search for @var{pattern} in the string @var{str} and return the\n\ starting index of every such occurrence in the vector @var{idx}.\n\ If there is no such occurrence, or if @var{pattern} is longer\n\ @@ -319,10 +319,10 @@ return ret; } -DEFUN_DLD (strrep, args, , +DEFUN (strrep, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} strrep (@var{s}, @var{ptn}, @var{rep})\n\ -@deftypefnx {Loadable Function} {} strrep (@var{s}, @var{ptn}, @var{rep}, \"overlaps\", @var{o})\n\ +@deftypefn {Built-in Function} {} strrep (@var{s}, @var{ptn}, @var{rep})\n\ +@deftypefnx {Built-in Function} {} strrep (@var{s}, @var{ptn}, @var{rep}, \"overlaps\", @var{o})\n\ Replace all occurrences of the substring @var{ptn} in the string @var{s}\n\ with the string @var{rep} and return the result. For example:\n\ \n\
rename from src/DLD-FUNCTIONS/sub2ind.cc rename to src/corefcn/sub2ind.cc --- a/src/DLD-FUNCTIONS/sub2ind.cc +++ b/src/corefcn/sub2ind.cc @@ -26,7 +26,7 @@ #include "quit.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -61,7 +61,7 @@ return dv; } -DEFUN_DLD (sub2ind, args, , +DEFUN (sub2ind, args, , "-*- texinfo -*-\n\ @deftypefn {Function File} {@var{ind} =} sub2ind (@var{dims}, @var{i}, @var{j})\n\ @deftypefnx {Function File} {@var{ind} =} sub2ind (@var{dims}, @var{s1}, @var{s2}, @dots{}, @var{sN})\n\ @@ -167,7 +167,7 @@ %!error <subscript indices> sub2ind ([10 10], 1, 1.5) */ -DEFUN_DLD (ind2sub, args, nargout, +DEFUN (ind2sub, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Function File} {[@var{s1}, @var{s2}, @dots{}, @var{sN}] =} ind2sub (@var{dims}, @var{ind})\n\ Convert a linear index to subscripts.\n\
rename from src/DLD-FUNCTIONS/svd.cc rename to src/corefcn/svd.cc --- a/src/DLD-FUNCTIONS/svd.cc +++ b/src/corefcn/svd.cc @@ -29,7 +29,7 @@ #include "fCmplxSVD.h" #include "floatSVD.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -39,11 +39,11 @@ static int Vsvd_driver = SVD::GESVD; -DEFUN_DLD (svd, args, nargout, +DEFUN (svd, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{s} =} svd (@var{A})\n\ -@deftypefnx {Loadable Function} {[@var{U}, @var{S}, @var{V}] =} svd (@var{A})\n\ -@deftypefnx {Loadable Function} {[@var{U}, @var{S}, @var{V}] =} svd (@var{A}, @var{econ})\n\ +@deftypefn {Built-in Function} {@var{s} =} svd (@var{A})\n\ +@deftypefnx {Built-in Function} {[@var{U}, @var{S}, @var{V}] =} svd (@var{A})\n\ +@deftypefnx {Built-in Function} {[@var{U}, @var{S}, @var{V}] =} svd (@var{A}, @var{econ})\n\ @cindex singular value decomposition\n\ Compute the singular value decomposition of @var{A}\n\ @tex\n\ @@ -402,11 +402,11 @@ %!error [u, v] = svd ([1, 2; 3, 4]) */ -DEFUN_DLD (svd_driver, args, nargout, +DEFUN (svd_driver, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{val} =} svd_driver ()\n\ -@deftypefnx {Loadable Function} {@var{old_val} =} svd_driver (@var{new_val})\n\ -@deftypefnx {Loadable Function} {} svd_driver (@var{new_val}, \"local\")\n\ +@deftypefn {Built-in Function} {@var{val} =} svd_driver ()\n\ +@deftypefnx {Built-in Function} {@var{old_val} =} svd_driver (@var{new_val})\n\ +@deftypefnx {Built-in Function} {} svd_driver (@var{new_val}, \"local\")\n\ Query or set the underlying @sc{lapack} driver used by @code{svd}.\n\ Currently recognized values are \"gesvd\" and \"gesdd\". The default\n\ is \"gesvd\".\n\
rename from src/DLD-FUNCTIONS/syl.cc rename to src/corefcn/syl.cc --- a/src/DLD-FUNCTIONS/syl.cc +++ b/src/corefcn/syl.cc @@ -26,15 +26,15 @@ #include <config.h> #endif -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" #include "utils.h" -DEFUN_DLD (syl, args, nargout, +DEFUN (syl, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{x} =} syl (@var{A}, @var{B}, @var{C})\n\ +@deftypefn {Built-in Function} {@var{x} =} syl (@var{A}, @var{B}, @var{C})\n\ Solve the Sylvester equation\n\ @tex\n\ $$\n\
rename from src/DLD-FUNCTIONS/time.cc rename to src/corefcn/time.cc --- a/src/DLD-FUNCTIONS/time.cc +++ b/src/corefcn/time.cc @@ -26,7 +26,7 @@ #include <string> -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "oct-map.h" #include "oct-time.h" @@ -101,9 +101,9 @@ return tm; } -DEFUN_DLD (time, args, , +DEFUN (time, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{seconds} =} time ()\n\ +@deftypefn {Built-in Function} {@var{seconds} =} time ()\n\ Return the current time as the number of seconds since the epoch. The\n\ epoch is referenced to 00:00:00 CUT (Coordinated Universal Time) 1 Jan\n\ 1970. For example, on Monday February 17, 1997 at 07:15:06 CUT, the\n\ @@ -125,9 +125,9 @@ %!assert (time () > 0) */ -DEFUN_DLD (gmtime, args, , +DEFUN (gmtime, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{tm_struct} =} gmtime (@var{t})\n\ +@deftypefn {Built-in Function} {@var{tm_struct} =} gmtime (@var{t})\n\ Given a value returned from @code{time}, or any non-negative integer,\n\ return a time structure corresponding to CUT (Coordinated Universal Time).\n\ For example:\n\ @@ -187,9 +187,9 @@ %!error gmtime (1, 2) */ -DEFUN_DLD (localtime, args, , +DEFUN (localtime, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{tm_struct} =} localtime (@var{t})\n\ +@deftypefn {Built-in Function} {@var{tm_struct} =} localtime (@var{t})\n\ Given a value returned from @code{time}, or any non-negative integer,\n\ return a time structure corresponding to the local time zone.\n\ \n\ @@ -248,9 +248,9 @@ %!error localtime (1, 2) */ -DEFUN_DLD (mktime, args, , +DEFUN (mktime, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{seconds} =} mktime (@var{tm_struct})\n\ +@deftypefn {Built-in Function} {@var{seconds} =} mktime (@var{tm_struct})\n\ Convert a time structure corresponding to the local time to the number\n\ of seconds since the epoch. For example:\n\ \n\ @@ -302,9 +302,9 @@ %!error mktime (1, 2, 3) */ -DEFUN_DLD (strftime, args, , +DEFUN (strftime, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} strftime (@var{fmt}, @var{tm_struct})\n\ +@deftypefn {Built-in Function} {} strftime (@var{fmt}, @var{tm_struct})\n\ Format the time structure @var{tm_struct} in a flexible way using the\n\ format string @var{fmt} that contains @samp{%} substitutions\n\ similar to those in @code{printf}. Except where noted, substituted\n\ @@ -497,9 +497,9 @@ %!error strftime ("foo", localtime (time ()), 1) */ -DEFUN_DLD (strptime, args, , +DEFUN (strptime, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{tm_struct}, @var{nchars}] =} strptime (@var{str}, @var{fmt})\n\ +@deftypefn {Built-in Function} {[@var{tm_struct}, @var{nchars}] =} strptime (@var{str}, @var{fmt})\n\ Convert the string @var{str} to the time structure @var{tm_struct} under\n\ the control of the format string @var{fmt}.\n\ \n\
rename from src/DLD-FUNCTIONS/tril.cc rename to src/corefcn/tril.cc --- a/src/DLD-FUNCTIONS/tril.cc +++ b/src/corefcn/tril.cc @@ -33,7 +33,7 @@ #include "ov.h" #include "Cell.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "oct-obj.h" @@ -339,7 +339,7 @@ return retval; } -DEFUN_DLD (tril, args, , +DEFUN (tril, args, , "-*- texinfo -*-\n\ @deftypefn {Function File} {} tril (@var{A})\n\ @deftypefnx {Function File} {} tril (@var{A}, @var{k})\n\ @@ -395,7 +395,7 @@ return do_trilu ("tril", args); } -DEFUN_DLD (triu, args, , +DEFUN (triu, args, , "-*- texinfo -*-\n\ @deftypefn {Function File} {} triu (@var{A})\n\ @deftypefnx {Function File} {} triu (@var{A}, @var{k})\n\
rename from src/DLD-FUNCTIONS/typecast.cc rename to src/corefcn/typecast.cc --- a/src/DLD-FUNCTIONS/typecast.cc +++ b/src/corefcn/typecast.cc @@ -27,7 +27,7 @@ #include "mx-base.h" -#include "defun-dld.h" +#include "defun.h" #include "error.h" #include "gripes.h" #include "oct-obj.h" @@ -86,9 +86,9 @@ } -DEFUN_DLD (typecast, args, , +DEFUN (typecast, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} typecast (@var{x}, @var{class})\n\ +@deftypefn {Built-in Function} {} typecast (@var{x}, @var{class})\n\ Return a new array @var{y} resulting from interpreting the data of\n\ @var{x} in memory as data of the numeric class @var{class}. Both the class\n\ of @var{x} and @var{class} must be one of the built-in numeric classes:\n\ @@ -271,9 +271,9 @@ } } -DEFUN_DLD (bitpack, args, , +DEFUN (bitpack, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{y} =} bitpack (@var{x}, @var{class})\n\ +@deftypefn {Built-in Function} {@var{y} =} bitpack (@var{x}, @var{class})\n\ Return a new array @var{y} resulting from interpreting an array\n\ @var{x} as raw bit patterns for data of the numeric class @var{class}.\n\ @var{class} must be one of the built-in numeric classes:\n\ @@ -380,9 +380,9 @@ return retval; } -DEFUN_DLD (bitunpack, args, , +DEFUN (bitunpack, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{y} =} bitunpack (@var{x})\n\ +@deftypefn {Built-in Function} {@var{y} =} bitunpack (@var{x})\n\ Return an array @var{y} corresponding to the raw bit patterns of\n\ @var{x}. @var{x} must belong to one of the built-in numeric classes:\n\ \n\
--- a/src/data.cc +++ b/src/data.cc @@ -5066,7 +5066,7 @@ DEFUN (full, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{FM} =} full (@var{SM})\n\ +@deftypefn {Built-in Function} {@var{FM} =} full (@var{SM})\n\ Return a full storage matrix from a sparse, diagonal, permutation matrix\n\ or a range.\n\ @seealso{sparse}\n\ @@ -5865,10 +5865,10 @@ DEFUN (sort, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{s}, @var{i}] =} sort (@var{x})\n\ -@deftypefnx {Loadable Function} {[@var{s}, @var{i}] =} sort (@var{x}, @var{dim})\n\ -@deftypefnx {Loadable Function} {[@var{s}, @var{i}] =} sort (@var{x}, @var{mode})\n\ -@deftypefnx {Loadable Function} {[@var{s}, @var{i}] =} sort (@var{x}, @var{dim}, @var{mode})\n\ +@deftypefn {Built-in Function} {[@var{s}, @var{i}] =} sort (@var{x})\n\ +@deftypefnx {Built-in Function} {[@var{s}, @var{i}] =} sort (@var{x}, @var{dim})\n\ +@deftypefnx {Built-in Function} {[@var{s}, @var{i}] =} sort (@var{x}, @var{mode})\n\ +@deftypefnx {Built-in Function} {[@var{s}, @var{i}] =} sort (@var{x}, @var{dim}, @var{mode})\n\ Return a copy of @var{x} with the elements arranged in increasing\n\ order. For matrices, @code{sort} orders the elements within columns\n\ \n\
--- a/src/debug.cc +++ b/src/debug.cc @@ -504,8 +504,8 @@ DEFUN (dbstop, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{rline} =} dbstop (\"@var{func}\")\n\ -@deftypefnx {Loadable Function} {@var{rline} =} dbstop (\"@var{func}\", @var{line}, @dots{})\n\ +@deftypefn {Built-in Function} {@var{rline} =} dbstop (\"@var{func}\")\n\ +@deftypefnx {Built-in Function} {@var{rline} =} dbstop (\"@var{func}\", @var{line}, @dots{})\n\ Set a breakpoint in function @var{func}.\n\ \n\ Arguments are\n\ @@ -548,8 +548,8 @@ DEFUN (dbclear, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} dbclear (\"@var{func}\")\n\ -@deftypefnx {Loadable Function} {} dbclear (\"@var{func}\", @var{line}, @dots{})\n\ +@deftypefn {Built-in Function} {} dbclear (\"@var{func}\")\n\ +@deftypefnx {Built-in Function} {} dbclear (\"@var{func}\", @var{line}, @dots{})\n\ Delete a breakpoint in the function @var{func}.\n\ \n\ Arguments are\n\ @@ -585,9 +585,9 @@ DEFUN (dbstatus, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} dbstatus ()\n\ -@deftypefnx {Loadable Function} {@var{brk_list} =} dbstatus ()\n\ -@deftypefnx {Loadable Function} {@var{brk_list} =} dbstatus (\"@var{func}\")\n\ +@deftypefn {Built-in Function} {} dbstatus ()\n\ +@deftypefnx {Built-in Function} {@var{brk_list} =} dbstatus ()\n\ +@deftypefnx {Built-in Function} {@var{brk_list} =} dbstatus (\"@var{func}\")\n\ Report the location of active breakpoints.\n\ \n\ When called with no input or output arguments, print the list of\n\ @@ -701,7 +701,7 @@ DEFUN (dbwhere, , , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} dbwhere ()\n\ +@deftypefn {Built-in Function} {} dbwhere ()\n\ In debugging mode, report the current file and line number where\n\ execution is stopped.\n\ @seealso{dbstatus, dbcont, dbstep, dbup}\n\ @@ -794,13 +794,13 @@ DEFUN (dbtype, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} dbtype ()\n\ -@deftypefnx {Loadable Function} {} dbtype (\"startl:endl\")\n\ -@deftypefnx {Loadable Function} {} dbtype (\"startl:end\")\n\ -@deftypefnx {Loadable Function} {} dbtype (\"@var{func}\")\n\ -@deftypefnx {Loadable Function} {} dbtype (\"@var{func}\", \"startl\")\n\ -@deftypefnx {Loadable Function} {} dbtype (\"@var{func}\", \"startl:endl\")\n\ -@deftypefnx {Loadable Function} {} dbtype (\"@var{func}\", \"startl:end\")\n\ +@deftypefn {Built-in Function} {} dbtype ()\n\ +@deftypefnx {Built-in Function} {} dbtype (\"startl:endl\")\n\ +@deftypefnx {Built-in Function} {} dbtype (\"startl:end\")\n\ +@deftypefnx {Built-in Function} {} dbtype (\"@var{func}\")\n\ +@deftypefnx {Built-in Function} {} dbtype (\"@var{func}\", \"startl\")\n\ +@deftypefnx {Built-in Function} {} dbtype (\"@var{func}\", \"startl:endl\")\n\ +@deftypefnx {Built-in Function} {} dbtype (\"@var{func}\", \"startl:end\")\n\ When in debugging mode and called with no arguments, list the script file\n\ being debugged with line numbers. An optional range specification,\n\ specified as a string, can be used to list only a portion of the file.\n\ @@ -1022,9 +1022,9 @@ DEFUN (dbstack, args, nargout, "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} dbstack ()\n\ -@deftypefnx {Loadable Function} {} dbstack (@var{n})\n\ -@deftypefnx {Loadable Function} {[@var{stack}, @var{idx}] =} dbstack (@dots{})\n\ +@deftypefn {Built-in Function} {} dbstack ()\n\ +@deftypefnx {Built-in Function} {} dbstack (@var{n})\n\ +@deftypefnx {Built-in Function} {[@var{stack}, @var{idx}] =} dbstack (@dots{})\n\ Display or return current debugging function stack information.\n\ With optional argument @var{n}, omit the @var{n} innermost stack frames.\n\ \n\ @@ -1090,8 +1090,8 @@ DEFUN (dbup, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} dbup\n\ -@deftypefnx {Loadable Function} {} dbup (@var{n})\n\ +@deftypefn {Built-in Function} {} dbup\n\ +@deftypefnx {Built-in Function} {} dbup (@var{n})\n\ In debugging mode, move up the execution stack @var{n} frames.\n\ If @var{n} is omitted, move up one frame.\n\ @seealso{dbstack, dbdown}\n\ @@ -1106,8 +1106,8 @@ DEFUN (dbdown, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} dbdown\n\ -@deftypefnx {Loadable Function} {} dbdown (@var{n})\n\ +@deftypefn {Built-in Function} {} dbdown\n\ +@deftypefnx {Built-in Function} {} dbdown (@var{n})\n\ In debugging mode, move down the execution stack @var{n} frames.\n\ If @var{n} is omitted, move down one frame.\n\ @seealso{dbstack, dbup}\n\ @@ -1252,7 +1252,7 @@ DEFUN (isdebugmode, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} isdebugmode ()\n\ +@deftypefn {Built-in Function} {} isdebugmode ()\n\ Return true if in debugging mode, otherwise false.\n\ @seealso{dbwhere, dbstack, dbstatus}\n\ @end deftypefn")
--- a/src/find-defun-files.sh +++ b/src/find-defun-files.sh @@ -21,6 +21,6 @@ file="$srcdir/$arg" fi if [ "`$EGREP -l "$DEFUN_PATTERN" $file`" ]; then - echo "$file" | $SED 's,.*/,,; s/\.cc$/.df/; s/\.ll$/.df/; s/\.yy$/.df/'; + echo "$file" | $SED "s,\\$srcdir/,," | $SED 's/\.cc$/.df/; s/\.ll$/.df/; s/\.yy$/.df/'; fi done
--- a/src/help.cc +++ b/src/help.cc @@ -954,7 +954,7 @@ } DEFUN (get_help_text, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{text}, @var{format}] =} get_help_text (@var{name})\n\ +@deftypefn {Built-in Function} {[@var{text}, @var{format}] =} get_help_text (@var{name})\n\ Return the raw help text of function @var{name}.\n\ \n\ The raw help text is returned in @var{text} and the format in @var{format}\n\ @@ -1023,7 +1023,7 @@ DEFUN (get_help_text_from_file, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {[@var{text}, @var{format}] =} get_help_text_from_file (@var{fname})\n\ +@deftypefn {Built-in Function} {[@var{text}, @var{format}] =} get_help_text_from_file (@var{fname})\n\ Return the raw help text from the file @var{fname}.\n\ \n\ The raw help text is returned in @var{text} and the format in @var{format}\n\
--- a/src/link-deps.mk +++ b/src/link-deps.mk @@ -11,6 +11,8 @@ $(FT2_LIBS) \ $(HDF5_LIBS) \ $(Z_LIBS) \ + $(FFTW_XLIBS) \ + $(REGEX_LIBS) \ $(OPENGL_LIBS) \ $(X11_LIBS) \ $(CARBON_LIBS) \ @@ -22,6 +24,7 @@ $(HDF5_LDFLAGS) \ $(Z_LDFLAGS) \ $(REGEX_LDFLAGS) \ + $(FFTW_XLDFLAGS) \ $(LLVM_LDFLAGS) OCT_LINK_DEPS =
--- a/src/ov-oncleanup.cc +++ b/src/ov-oncleanup.cc @@ -191,7 +191,7 @@ DEFUN (onCleanup, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{c} =} onCleanup (@var{action})\n\ +@deftypefn {Built-in Function} {@var{c} =} onCleanup (@var{action})\n\ Create a special object that executes a given function upon destruction.\n\ If the object is copied to multiple variables (or cell or struct array\n\ elements) or returned from a function, @var{action} will be executed after\n\
--- a/src/sparse.cc +++ b/src/sparse.cc @@ -43,7 +43,7 @@ DEFUN (issparse, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {} issparse (@var{x})\n\ +@deftypefn {Built-in Function} {} issparse (@var{x})\n\ Return true if @var{x} is a sparse matrix.\n\ @seealso{ismatrix}\n\ @end deftypefn") @@ -59,11 +59,11 @@ DEFUN (sparse, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{s} =} sparse (@var{a})\n\ -@deftypefnx {Loadable Function} {@var{s} =} sparse (@var{i}, @var{j}, @var{sv}, @var{m}, @var{n}, @var{nzmax})\n\ -@deftypefnx {Loadable Function} {@var{s} =} sparse (@var{i}, @var{j}, @var{sv})\n\ -@deftypefnx {Loadable Function} {@var{s} =} sparse (@var{i}, @var{j}, @var{s}, @var{m}, @var{n}, \"unique\")\n\ -@deftypefnx {Loadable Function} {@var{s} =} sparse (@var{m}, @var{n})\n\ +@deftypefn {Built-in Function} {@var{s} =} sparse (@var{a})\n\ +@deftypefnx {Built-in Function} {@var{s} =} sparse (@var{i}, @var{j}, @var{sv}, @var{m}, @var{n}, @var{nzmax})\n\ +@deftypefnx {Built-in Function} {@var{s} =} sparse (@var{i}, @var{j}, @var{sv})\n\ +@deftypefnx {Built-in Function} {@var{s} =} sparse (@var{i}, @var{j}, @var{s}, @var{m}, @var{n}, \"unique\")\n\ +@deftypefnx {Built-in Function} {@var{s} =} sparse (@var{m}, @var{n})\n\ Create a sparse matrix from the full matrix or row, column, value triplets.\n\ If @var{a} is a full matrix, convert it to a sparse matrix representation,\n\ removing all zero values in the process.\n\ @@ -209,7 +209,7 @@ DEFUN (spalloc, args, , "-*- texinfo -*-\n\ -@deftypefn {Loadable Function} {@var{s} =} spalloc (@var{m}, @var{n}, @var{nz})\n\ +@deftypefn {Built-in Function} {@var{s} =} spalloc (@var{m}, @var{n}, @var{nz})\n\ Create an @var{m}-by-@var{n} sparse matrix with pre-allocated space for at\n\ most @var{nz} nonzero elements. This is useful for building the matrix\n\ incrementally by a sequence of indexed assignments. Subsequent indexed\n\