Mercurial > octave-nkf
diff libinterp/corefcn/mappers.cc @ 17787:175b392e91fe
Use GNU style coding conventions for code in libinterp/
* libinterp/corefcn/Cell.h, libinterp/corefcn/__contourc__.cc,
libinterp/corefcn/__dispatch__.cc, libinterp/corefcn/__lin_interpn__.cc,
libinterp/corefcn/__pchip_deriv__.cc, libinterp/corefcn/__qp__.cc,
libinterp/corefcn/balance.cc, libinterp/corefcn/besselj.cc,
libinterp/corefcn/betainc.cc, libinterp/corefcn/bitfcns.cc,
libinterp/corefcn/bsxfun.cc, libinterp/corefcn/c-file-ptr-stream.cc,
libinterp/corefcn/c-file-ptr-stream.h, libinterp/corefcn/cellfun.cc,
libinterp/corefcn/colloc.cc, libinterp/corefcn/comment-list.h,
libinterp/corefcn/conv2.cc, libinterp/corefcn/daspk.cc,
libinterp/corefcn/dasrt.cc, libinterp/corefcn/dassl.cc,
libinterp/corefcn/data.cc, libinterp/corefcn/debug.cc,
libinterp/corefcn/defaults.cc, libinterp/corefcn/defaults.in.h,
libinterp/corefcn/defun-int.h, libinterp/corefcn/defun.cc,
libinterp/corefcn/det.cc, libinterp/corefcn/dirfns.cc,
libinterp/corefcn/display.cc, libinterp/corefcn/dlmread.cc,
libinterp/corefcn/dot.cc, libinterp/corefcn/dynamic-ld.cc,
libinterp/corefcn/dynamic-ld.h, libinterp/corefcn/eig.cc,
libinterp/corefcn/ellipj.cc, libinterp/corefcn/error.cc,
libinterp/corefcn/error.h, libinterp/corefcn/event-queue.h,
libinterp/corefcn/fft.cc, libinterp/corefcn/fft2.cc, libinterp/corefcn/fftn.cc,
libinterp/corefcn/file-io.cc, libinterp/corefcn/filter.cc,
libinterp/corefcn/find.cc, libinterp/corefcn/gammainc.cc,
libinterp/corefcn/gcd.cc, libinterp/corefcn/getgrent.cc,
libinterp/corefcn/getpwent.cc, libinterp/corefcn/getrusage.cc,
libinterp/corefcn/givens.cc, libinterp/corefcn/gl-render.cc,
libinterp/corefcn/gl2ps-renderer.cc, libinterp/corefcn/gl2ps-renderer.h,
libinterp/corefcn/graphics.cc, libinterp/corefcn/graphics.in.h,
libinterp/corefcn/gripes.cc, libinterp/corefcn/gripes.h,
libinterp/corefcn/help.cc, libinterp/corefcn/hess.cc,
libinterp/corefcn/hex2num.cc, libinterp/corefcn/input.cc,
libinterp/corefcn/input.h, libinterp/corefcn/inv.cc,
libinterp/corefcn/jit-ir.h, libinterp/corefcn/jit-typeinfo.cc,
libinterp/corefcn/jit-typeinfo.h, libinterp/corefcn/jit-util.h,
libinterp/corefcn/kron.cc, libinterp/corefcn/load-path.cc,
libinterp/corefcn/load-path.h, libinterp/corefcn/load-save.cc,
libinterp/corefcn/load-save.h, libinterp/corefcn/lookup.cc,
libinterp/corefcn/ls-ascii-helper.cc, libinterp/corefcn/ls-hdf5.cc,
libinterp/corefcn/ls-hdf5.h, libinterp/corefcn/ls-mat-ascii.cc,
libinterp/corefcn/ls-mat-ascii.h, libinterp/corefcn/ls-mat4.cc,
libinterp/corefcn/ls-mat5.cc, libinterp/corefcn/ls-mat5.h,
libinterp/corefcn/ls-oct-ascii.cc, libinterp/corefcn/lsode.cc,
libinterp/corefcn/lu.cc, libinterp/corefcn/luinc.cc,
libinterp/corefcn/mappers.cc, libinterp/corefcn/matrix_type.cc,
libinterp/corefcn/max.cc, libinterp/corefcn/md5sum.cc,
libinterp/corefcn/mex.cc, libinterp/corefcn/mexproto.h,
libinterp/corefcn/mgorth.cc, libinterp/corefcn/mxarray.in.h,
libinterp/corefcn/nproc.cc, libinterp/corefcn/oct-hist.cc,
libinterp/corefcn/oct-lvalue.h, libinterp/corefcn/oct-map.cc,
libinterp/corefcn/oct-map.h, libinterp/corefcn/oct-obj.h,
libinterp/corefcn/oct-prcstrm.h, libinterp/corefcn/oct-stdstrm.h,
libinterp/corefcn/oct-stream.cc, libinterp/corefcn/oct-stream.h,
libinterp/corefcn/octave-link.cc, libinterp/corefcn/octave-link.h,
libinterp/corefcn/pager.cc, libinterp/corefcn/pinv.cc,
libinterp/corefcn/pr-output.cc, libinterp/corefcn/procstream.h,
libinterp/corefcn/profiler.cc, libinterp/corefcn/pt-jit.cc,
libinterp/corefcn/pt-jit.h, libinterp/corefcn/quad.cc,
libinterp/corefcn/quadcc.cc, libinterp/corefcn/qz.cc,
libinterp/corefcn/rand.cc, libinterp/corefcn/rcond.cc,
libinterp/corefcn/regexp.cc, libinterp/corefcn/schur.cc,
libinterp/corefcn/sighandlers.cc, libinterp/corefcn/sighandlers.h,
libinterp/corefcn/sparse-xdiv.cc, libinterp/corefcn/sparse-xdiv.h,
libinterp/corefcn/sparse-xpow.cc, libinterp/corefcn/sparse.cc,
libinterp/corefcn/spparms.cc, libinterp/corefcn/sqrtm.cc,
libinterp/corefcn/str2double.cc, libinterp/corefcn/strfind.cc,
libinterp/corefcn/strfns.cc, libinterp/corefcn/sub2ind.cc,
libinterp/corefcn/svd.cc, libinterp/corefcn/syl.cc,
libinterp/corefcn/symtab.cc, libinterp/corefcn/symtab.h,
libinterp/corefcn/syscalls.cc, libinterp/corefcn/sysdep.cc,
libinterp/corefcn/sysdep.h, libinterp/corefcn/time.cc,
libinterp/corefcn/toplev.cc, libinterp/corefcn/toplev.h,
libinterp/corefcn/tril.cc, libinterp/corefcn/txt-eng-ft.cc,
libinterp/corefcn/txt-eng-ft.h, libinterp/corefcn/txt-eng.h,
libinterp/corefcn/typecast.cc, libinterp/corefcn/urlwrite.cc,
libinterp/corefcn/utils.cc, libinterp/corefcn/variables.cc,
libinterp/corefcn/variables.h, libinterp/corefcn/xdiv.cc,
libinterp/corefcn/xdiv.h, libinterp/corefcn/xnorm.h, libinterp/corefcn/xpow.cc,
libinterp/corefcn/xpow.h, libinterp/corefcn/zfstream.cc,
libinterp/corefcn/zfstream.h, libinterp/dldfcn/__delaunayn__.cc,
libinterp/dldfcn/__dsearchn__.cc, libinterp/dldfcn/__eigs__.cc,
libinterp/dldfcn/__fltk_uigetfile__.cc, libinterp/dldfcn/__glpk__.cc,
libinterp/dldfcn/__init_fltk__.cc, libinterp/dldfcn/__init_gnuplot__.cc,
libinterp/dldfcn/__magick_read__.cc, libinterp/dldfcn/__voronoi__.cc,
libinterp/dldfcn/amd.cc, libinterp/dldfcn/ccolamd.cc, libinterp/dldfcn/chol.cc,
libinterp/dldfcn/colamd.cc, libinterp/dldfcn/convhulln.cc,
libinterp/dldfcn/dmperm.cc, libinterp/dldfcn/fftw.cc, libinterp/dldfcn/qr.cc,
libinterp/dldfcn/symbfact.cc, libinterp/dldfcn/symrcm.cc,
libinterp/dldfcn/tsearch.cc, libinterp/octave-value/ov-base-diag.cc,
libinterp/octave-value/ov-base-diag.h, libinterp/octave-value/ov-base-int.cc,
libinterp/octave-value/ov-base-int.h, libinterp/octave-value/ov-base-mat.h,
libinterp/octave-value/ov-base-scalar.cc,
libinterp/octave-value/ov-base-scalar.h,
libinterp/octave-value/ov-base-sparse.cc,
libinterp/octave-value/ov-base-sparse.h, libinterp/octave-value/ov-base.cc,
libinterp/octave-value/ov-base.h, libinterp/octave-value/ov-bool-mat.cc,
libinterp/octave-value/ov-bool-mat.h, libinterp/octave-value/ov-bool-sparse.cc,
libinterp/octave-value/ov-bool-sparse.h, libinterp/octave-value/ov-bool.cc,
libinterp/octave-value/ov-bool.h, libinterp/octave-value/ov-builtin.cc,
libinterp/octave-value/ov-builtin.h, libinterp/octave-value/ov-cell.cc,
libinterp/octave-value/ov-cell.h, libinterp/octave-value/ov-ch-mat.cc,
libinterp/octave-value/ov-ch-mat.h, libinterp/octave-value/ov-class.cc,
libinterp/octave-value/ov-class.h, libinterp/octave-value/ov-colon.h,
libinterp/octave-value/ov-complex.cc, libinterp/octave-value/ov-complex.h,
libinterp/octave-value/ov-cx-diag.cc, libinterp/octave-value/ov-cx-diag.h,
libinterp/octave-value/ov-cx-mat.cc, libinterp/octave-value/ov-cx-mat.h,
libinterp/octave-value/ov-cx-sparse.cc, libinterp/octave-value/ov-cx-sparse.h,
libinterp/octave-value/ov-dld-fcn.h, libinterp/octave-value/ov-fcn-handle.cc,
libinterp/octave-value/ov-fcn-handle.h,
libinterp/octave-value/ov-fcn-inline.cc,
libinterp/octave-value/ov-fcn-inline.h, libinterp/octave-value/ov-fcn.h,
libinterp/octave-value/ov-float.cc, libinterp/octave-value/ov-float.h,
libinterp/octave-value/ov-flt-complex.cc,
libinterp/octave-value/ov-flt-complex.h,
libinterp/octave-value/ov-flt-cx-diag.cc,
libinterp/octave-value/ov-flt-cx-diag.h,
libinterp/octave-value/ov-flt-cx-mat.cc,
libinterp/octave-value/ov-flt-cx-mat.h,
libinterp/octave-value/ov-flt-re-diag.cc,
libinterp/octave-value/ov-flt-re-diag.h,
libinterp/octave-value/ov-flt-re-mat.cc,
libinterp/octave-value/ov-flt-re-mat.h, libinterp/octave-value/ov-int16.cc,
libinterp/octave-value/ov-int32.cc, libinterp/octave-value/ov-int64.cc,
libinterp/octave-value/ov-int8.cc, libinterp/octave-value/ov-intx.h,
libinterp/octave-value/ov-java.cc, libinterp/octave-value/ov-lazy-idx.h,
libinterp/octave-value/ov-mex-fcn.cc, libinterp/octave-value/ov-mex-fcn.h,
libinterp/octave-value/ov-null-mat.cc, libinterp/octave-value/ov-null-mat.h,
libinterp/octave-value/ov-oncleanup.cc, libinterp/octave-value/ov-perm.cc,
libinterp/octave-value/ov-perm.h, libinterp/octave-value/ov-range.cc,
libinterp/octave-value/ov-range.h, libinterp/octave-value/ov-re-diag.cc,
libinterp/octave-value/ov-re-diag.h, libinterp/octave-value/ov-re-mat.cc,
libinterp/octave-value/ov-re-mat.h, libinterp/octave-value/ov-re-sparse.cc,
libinterp/octave-value/ov-re-sparse.h, libinterp/octave-value/ov-scalar.cc,
libinterp/octave-value/ov-scalar.h, libinterp/octave-value/ov-str-mat.cc,
libinterp/octave-value/ov-str-mat.h, libinterp/octave-value/ov-struct.cc,
libinterp/octave-value/ov-struct.h, libinterp/octave-value/ov-type-conv.h,
libinterp/octave-value/ov-typeinfo.cc, libinterp/octave-value/ov-typeinfo.h,
libinterp/octave-value/ov-uint16.cc, libinterp/octave-value/ov-uint32.cc,
libinterp/octave-value/ov-uint64.cc, libinterp/octave-value/ov-uint8.cc,
libinterp/octave-value/ov-usr-fcn.cc, libinterp/octave-value/ov-usr-fcn.h,
libinterp/octave-value/ov.cc, libinterp/octave-value/ov.h, libinterp/octave.cc,
libinterp/operators/op-b-bm.cc, libinterp/operators/op-b-sbm.cc,
libinterp/operators/op-bm-b.cc, libinterp/operators/op-bm-bm.cc,
libinterp/operators/op-cdm-cdm.cc, libinterp/operators/op-chm.cc,
libinterp/operators/op-class.cc, libinterp/operators/op-cm-cm.cc,
libinterp/operators/op-cm-cs.cc, libinterp/operators/op-cm-s.cc,
libinterp/operators/op-cm-scm.cc, libinterp/operators/op-cm-sm.cc,
libinterp/operators/op-cs-cm.cc, libinterp/operators/op-cs-cs.cc,
libinterp/operators/op-cs-scm.cc, libinterp/operators/op-cs-sm.cc,
libinterp/operators/op-dm-dm.cc, libinterp/operators/op-dm-scm.cc,
libinterp/operators/op-double-conv.cc, libinterp/operators/op-fcdm-fcdm.cc,
libinterp/operators/op-fcm-fcm.cc, libinterp/operators/op-fcm-fcs.cc,
libinterp/operators/op-fcm-fm.cc, libinterp/operators/op-fcm-fs.cc,
libinterp/operators/op-fcs-fcm.cc, libinterp/operators/op-fcs-fcs.cc,
libinterp/operators/op-fcs-fm.cc, libinterp/operators/op-fcs-fs.cc,
libinterp/operators/op-fdm-fdm.cc, libinterp/operators/op-float-conv.cc,
libinterp/operators/op-fm-fcm.cc, libinterp/operators/op-fm-fcs.cc,
libinterp/operators/op-fm-fm.cc, libinterp/operators/op-fm-fs.cc,
libinterp/operators/op-fs-fcm.cc, libinterp/operators/op-fs-fcs.cc,
libinterp/operators/op-fs-fm.cc, libinterp/operators/op-fs-fs.cc,
libinterp/operators/op-m-cm.cc, libinterp/operators/op-m-cs.cc,
libinterp/operators/op-m-m.cc, libinterp/operators/op-m-s.cc,
libinterp/operators/op-m-scm.cc, libinterp/operators/op-m-sm.cc,
libinterp/operators/op-pm-scm.cc, libinterp/operators/op-range.cc,
libinterp/operators/op-s-cm.cc, libinterp/operators/op-s-cs.cc,
libinterp/operators/op-s-scm.cc, libinterp/operators/op-sbm-b.cc,
libinterp/operators/op-sbm-bm.cc, libinterp/operators/op-sbm-sbm.cc,
libinterp/operators/op-scm-cm.cc, libinterp/operators/op-scm-cs.cc,
libinterp/operators/op-scm-m.cc, libinterp/operators/op-scm-s.cc,
libinterp/operators/op-scm-scm.cc, libinterp/operators/op-scm-sm.cc,
libinterp/operators/op-sm-cm.cc, libinterp/operators/op-sm-m.cc,
libinterp/operators/op-sm-s.cc, libinterp/operators/op-sm-scm.cc,
libinterp/operators/op-sm-sm.cc, libinterp/operators/op-str-m.cc,
libinterp/operators/op-str-s.cc, libinterp/operators/op-str-str.cc,
libinterp/operators/ops.h, libinterp/parse-tree/lex.h,
libinterp/parse-tree/parse.h, libinterp/parse-tree/pt-arg-list.cc,
libinterp/parse-tree/pt-arg-list.h, libinterp/parse-tree/pt-assign.cc,
libinterp/parse-tree/pt-assign.h, libinterp/parse-tree/pt-binop.cc,
libinterp/parse-tree/pt-binop.h, libinterp/parse-tree/pt-bp.h,
libinterp/parse-tree/pt-cbinop.cc, libinterp/parse-tree/pt-check.cc,
libinterp/parse-tree/pt-colon.cc, libinterp/parse-tree/pt-colon.h,
libinterp/parse-tree/pt-const.cc, libinterp/parse-tree/pt-decl.cc,
libinterp/parse-tree/pt-decl.h, libinterp/parse-tree/pt-eval.cc,
libinterp/parse-tree/pt-except.h, libinterp/parse-tree/pt-exp.h,
libinterp/parse-tree/pt-fcn-handle.cc, libinterp/parse-tree/pt-id.cc,
libinterp/parse-tree/pt-id.h, libinterp/parse-tree/pt-idx.cc,
libinterp/parse-tree/pt-idx.h, libinterp/parse-tree/pt-loop.h,
libinterp/parse-tree/pt-mat.cc, libinterp/parse-tree/pt-misc.cc,
libinterp/parse-tree/pt-misc.h, libinterp/parse-tree/pt-pr-code.cc,
libinterp/parse-tree/pt-select.h, libinterp/parse-tree/pt-stmt.h,
libinterp/parse-tree/token.h, libinterp/version.cc:
Use GNU style coding conventions for code in libinterp/
author | Rik <rik@octave.org> |
---|---|
date | Mon, 28 Oct 2013 19:51:46 -0700 |
parents | d63878346099 |
children | 1b6db9303933 c6437824681c |
line wrap: on
line diff
--- a/libinterp/corefcn/mappers.cc Mon Oct 28 21:04:48 2013 -0400 +++ b/libinterp/corefcn/mappers.cc Mon Oct 28 19:51:46 2013 -0700 @@ -37,7 +37,7 @@ #include "variables.h" DEFUN (abs, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} abs (@var{z})\n\ Compute the magnitude of @var{z}, defined as\n\ @tex\n\ @@ -84,7 +84,7 @@ */ DEFUN (acos, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} acos (@var{x})\n\ Compute the inverse cosine in radians for each element of @var{x}.\n\ @seealso{cos, acosd}\n\ @@ -119,7 +119,7 @@ */ DEFUN (acosh, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} acosh (@var{x})\n\ Compute the inverse hyperbolic cosine for each element of @var{x}.\n\ @seealso{cosh}\n\ @@ -150,7 +150,7 @@ */ DEFUN (angle, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} angle (@var{z})\n\ See arg.\n\ @end deftypefn") @@ -165,7 +165,7 @@ } DEFUN (arg, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} arg (@var{z})\n\ @deftypefnx {Mapping Function} {} angle (@var{z})\n\ Compute the argument of @var{z}, defined as,\n\ @@ -220,7 +220,7 @@ */ DEFUN (asin, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} asin (@var{x})\n\ Compute the inverse sine in radians for each element of @var{x}.\n\ @seealso{sin, asind}\n\ @@ -248,7 +248,7 @@ */ DEFUN (asinh, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} asinh (@var{x})\n\ Compute the inverse hyperbolic sine for each element of @var{x}.\n\ @seealso{sinh}\n\ @@ -279,7 +279,7 @@ */ DEFUN (atan, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} atan (@var{x})\n\ Compute the inverse tangent in radians for each element of @var{x}.\n\ @seealso{tan, atand}\n\ @@ -314,7 +314,7 @@ */ DEFUN (atanh, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} atanh (@var{x})\n\ Compute the inverse hyperbolic tangent for each element of @var{x}.\n\ @seealso{tanh}\n\ @@ -345,7 +345,7 @@ */ DEFUN (cbrt, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} cbrt (@var{x})\n\ Compute the real cube root of each element of @var{x}.\n\ Unlike @code{@var{x}^(1/3)}, the result will be negative if @var{x} is\n\ @@ -377,7 +377,7 @@ */ DEFUN (ceil, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} ceil (@var{x})\n\ Return the smallest integer not less than @var{x}. This is equivalent to\n\ rounding towards positive infinity. If @var{x} is\n\ @@ -419,7 +419,7 @@ */ DEFUN (conj, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} conj (@var{z})\n\ Return the complex conjugate of @var{z}, defined as\n\ @tex\n\ @@ -458,7 +458,7 @@ */ DEFUN (cos, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} cos (@var{x})\n\ Compute the cosine for each element of @var{x} in radians.\n\ @seealso{acos, cosd, cosh}\n\ @@ -495,7 +495,7 @@ */ DEFUN (cosh, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} cosh (@var{x})\n\ Compute the hyperbolic cosine for each element of @var{x}.\n\ @seealso{acosh, sinh, tanh}\n\ @@ -526,7 +526,7 @@ */ DEFUN (erf, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} erf (@var{z})\n\ Compute the error function,\n\ @tex\n\ @@ -596,7 +596,7 @@ */ DEFUN (erfinv, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} erfinv (@var{x})\n\ Compute the inverse error function, i.e., @var{y} such that\n\ \n\ @@ -634,7 +634,7 @@ */ DEFUN (erfcinv, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} erfcinv (@var{x})\n\ Compute the inverse complementary error function, i.e., @var{y} such that\n\ \n\ @@ -672,7 +672,7 @@ */ DEFUN (erfc, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} erfc (@var{z})\n\ Compute the complementary error function,\n\ @tex\n\ @@ -703,7 +703,7 @@ */ DEFUN (erfcx, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} erfcx (@var{z})\n\ Compute the scaled complementary error function,\n\ @tex\n\ @@ -746,7 +746,7 @@ */ DEFUN (erfi, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} erfi (@var{z})\n\ Compute the imaginary error function,\n\ @tex\n\ @@ -784,7 +784,7 @@ */ DEFUN (dawson, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} dawson (@var{z})\n\ Compute the Dawson (scaled imaginary error) function,\n\ @tex\n\ @@ -824,7 +824,7 @@ */ DEFUN (exp, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} exp (@var{x})\n\ Compute\n\ @tex\n\ @@ -861,7 +861,7 @@ */ DEFUN (expm1, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} expm1 (@var{x})\n\ Compute\n\ @tex\n\ @@ -894,7 +894,7 @@ */ DEFUN (isfinite, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} isfinite (@var{x})\n\ @deftypefnx {Mapping Function} {} finite (@var{x})\n\ Return a logical array which is true where the elements of @var{x} are\n\ @@ -933,7 +933,7 @@ */ DEFUN (fix, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} fix (@var{x})\n\ Truncate fractional portion of @var{x} and return the integer portion. This\n\ is equivalent to rounding towards zero. If @var{x} is complex, return\n\ @@ -968,7 +968,7 @@ */ DEFUN (floor, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} floor (@var{x})\n\ Return the largest integer not greater than @var{x}. This is equivalent to\n\ rounding towards negative infinity. If @var{x} is\n\ @@ -1003,7 +1003,7 @@ */ DEFUN (gamma, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} gamma (@var{z})\n\ Compute the Gamma function,\n\ @tex\n\ @@ -1067,7 +1067,7 @@ */ DEFUN (imag, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} imag (@var{z})\n\ Return the imaginary part of @var{z} as a real number.\n\ @seealso{real, conj}\n\ @@ -1098,7 +1098,7 @@ */ DEFUNX ("isalnum", Fisalnum, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} isalnum (@var{s})\n\ Return a logical array which is true where the elements of @var{s} are\n\ letters or digits and false where they are not. This is equivalent to\n\ @@ -1129,7 +1129,7 @@ */ DEFUNX ("isalpha", Fisalpha, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} isalpha (@var{s})\n\ Return a logical array which is true where the elements of @var{s} are\n\ letters and false where they are not. This is equivalent to\n\ @@ -1159,7 +1159,7 @@ */ DEFUNX ("isascii", Fisascii, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} isascii (@var{s})\n\ Return a logical array which is true where the elements of @var{s} are\n\ ASCII characters (in the range 0 to 127 decimal) and false where they are\n\ @@ -1186,7 +1186,7 @@ */ DEFUNX ("iscntrl", Fiscntrl, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} iscntrl (@var{s})\n\ Return a logical array which is true where the elements of @var{s} are\n\ control characters and false where they are not.\n\ @@ -1215,7 +1215,7 @@ */ DEFUNX ("isdigit", Fisdigit, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} isdigit (@var{s})\n\ Return a logical array which is true where the elements of @var{s} are\n\ decimal digits (0-9) and false where they are not.\n\ @@ -1243,7 +1243,7 @@ */ DEFUN (isinf, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} isinf (@var{x})\n\ Return a logical array which is true where the elements of @var{x} are\n\ are infinite and false where they are not.\n\ @@ -1285,7 +1285,7 @@ */ DEFUNX ("isgraph", Fisgraph, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} isgraph (@var{s})\n\ Return a logical array which is true where the elements of @var{s} are\n\ printable characters (but not the space character) and false where they are\n\ @@ -1314,7 +1314,7 @@ */ DEFUNX ("islower", Fislower, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} islower (@var{s})\n\ Return a logical array which is true where the elements of @var{s} are\n\ lowercase letters and false where they are not.\n\ @@ -1342,7 +1342,7 @@ */ DEFUN (isna, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} isna (@var{x})\n\ Return a logical array which is true where the elements of @var{x} are\n\ NA (missing) values and false where they are not.\n\ @@ -1384,7 +1384,7 @@ */ DEFUN (isnan, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} isnan (@var{x})\n\ Return a logical array which is true where the elements of @var{x} are\n\ NaN values and false where they are not.\n\ @@ -1426,7 +1426,7 @@ */ DEFUNX ("isprint", Fisprint, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} isprint (@var{s})\n\ Return a logical array which is true where the elements of @var{s} are\n\ printable characters (including the space character) and false where they\n\ @@ -1455,7 +1455,7 @@ */ DEFUNX ("ispunct", Fispunct, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} ispunct (@var{s})\n\ Return a logical array which is true where the elements of @var{s} are\n\ punctuation characters and false where they are not.\n\ @@ -1486,7 +1486,7 @@ */ DEFUNX ("isspace", Fisspace, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} isspace (@var{s})\n\ Return a logical array which is true where the elements of @var{s} are\n\ whitespace characters (space, formfeed, newline, carriage return, tab, and\n\ @@ -1515,7 +1515,7 @@ */ DEFUNX ("isupper", Fisupper, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} isupper (@var{s})\n\ Return a logical array which is true where the elements of @var{s} are\n\ uppercase letters and false where they are not.\n\ @@ -1543,7 +1543,7 @@ */ DEFUNX ("isxdigit", Fisxdigit, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} isxdigit (@var{s})\n\ Return a logical array which is true where the elements of @var{s} are\n\ hexadecimal digits (0-9 and @nospell{a-fA-F}).\n\ @@ -1573,7 +1573,7 @@ */ DEFUN (lgamma, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} lgamma (@var{x})\n\ @deftypefnx {Mapping Function} {} gammaln (@var{x})\n\ Return the natural logarithm of the gamma function of @var{x}.\n\ @@ -1619,7 +1619,7 @@ */ DEFUN (log, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} log (@var{x})\n\ Compute the natural logarithm,\n\ @tex\n\ @@ -1654,7 +1654,7 @@ */ DEFUN (log10, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} log10 (@var{x})\n\ Compute the base-10 logarithm of each element of @var{x}.\n\ @seealso{log, log2, logspace, exp}\n\ @@ -1678,7 +1678,7 @@ */ DEFUN (log1p, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} log1p (@var{x})\n\ Compute\n\ @tex\n\ @@ -1709,7 +1709,7 @@ */ DEFUN (real, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} real (@var{z})\n\ Return the real part of @var{z}.\n\ @seealso{imag, conj}\n\ @@ -1740,7 +1740,7 @@ */ DEFUN (round, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} round (@var{x})\n\ Return the integer nearest to @var{x}. If @var{x} is complex, return\n\ @code{round (real (@var{x})) + round (imag (@var{x})) * I}. If there\n\ @@ -1786,7 +1786,7 @@ */ DEFUN (roundb, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} roundb (@var{x})\n\ Return the integer nearest to @var{x}. If there are two nearest\n\ integers, return the even one (banker's rounding). If @var{x} is complex,\n\ @@ -1827,7 +1827,7 @@ */ DEFUN (sign, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} sign (@var{x})\n\ Compute the @dfn{signum} function, which is defined as\n\ @tex\n\ @@ -1881,7 +1881,7 @@ */ DEFUNX ("signbit", Fsignbit, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} signbit (@var{x})\n\ Return logical true if the value of @var{x} has its sign bit set.\n\ Otherwise return logical false. This behavior is consistent with the other\n\ @@ -1895,9 +1895,11 @@ @end deftypefn") { octave_value retval; - if (args.length () == 1) { - retval = args(0).xsignbit (); - retval = (retval != 0); } + if (args.length () == 1) + { + retval = args(0).xsignbit (); + retval = (retval != 0); + } else print_usage (); @@ -1920,7 +1922,7 @@ */ DEFUN (sin, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} sin (@var{x})\n\ Compute the sine for each element of @var{x} in radians.\n\ @seealso{asin, sind, sinh}\n\ @@ -1955,7 +1957,7 @@ */ DEFUN (sinh, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} sinh (@var{x})\n\ Compute the hyperbolic sine for each element of @var{x}.\n\ @seealso{asinh, cosh, tanh}\n\ @@ -1986,7 +1988,7 @@ */ DEFUN (sqrt, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} sqrt (@var{x})\n\ Compute the square root of each element of @var{x}. If @var{x} is negative,\n\ a complex result is returned. To compute the matrix square root, see\n\ @@ -2019,7 +2021,7 @@ */ DEFUN (tan, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} tan (@var{z})\n\ Compute the tangent for each element of @var{x} in radians.\n\ @seealso{atan, tand, tanh}\n\ @@ -2054,7 +2056,7 @@ */ DEFUN (tanh, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} tanh (@var{x})\n\ Compute hyperbolic tangent for each element of @var{x}.\n\ @seealso{atanh, sinh, cosh}\n\ @@ -2085,7 +2087,7 @@ */ DEFUNX ("toascii", Ftoascii, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} toascii (@var{s})\n\ Return ASCII representation of @var{s} in a matrix. For example:\n\ \n\ @@ -2121,7 +2123,7 @@ */ DEFUNX ("tolower", Ftolower, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} tolower (@var{s})\n\ @deftypefnx {Mapping Function} {} lower (@var{s})\n\ Return a copy of the string or cell string @var{s}, with each uppercase\n\ @@ -2172,7 +2174,7 @@ */ DEFUNX ("toupper", Ftoupper, args, , - "-*- texinfo -*-\n\ + "-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} toupper (@var{s})\n\ @deftypefnx {Mapping Function} {} upper (@var{s})\n\ Return a copy of the string or cell string @var{s}, with each lowercase\n\