# HG changeset patch # User jwe # Date 1020226052 0 # Node ID 87db95b22f8fa1200f7b32f352a570d2a2144ff5 # Parent cdfbc6678c2383c2697db0a79aa8fac0957f14c5 [project @ 2002-05-01 04:07:31 by jwe] diff -r cdfbc6678c23 -r 87db95b22f8f doc/interpreter/matrix.txi --- a/doc/interpreter/matrix.txi Wed May 01 03:01:54 2002 +0000 +++ b/doc/interpreter/matrix.txi Wed May 01 04:07:32 2002 +0000 @@ -119,6 +119,8 @@ @DOCSTRING(zeros) +@DOCSTRING(repmat) + @DOCSTRING(rand) @DOCSTRING(randn) diff -r cdfbc6678c23 -r 87db95b22f8f doc/interpreter/numbers.txi --- a/doc/interpreter/numbers.txi Wed May 01 03:01:54 2002 +0000 +++ b/doc/interpreter/numbers.txi Wed May 01 04:07:32 2002 +0000 @@ -332,7 +332,7 @@ @cindex range expressions @cindex expression, range -@opindex : +@opindex colon A @dfn{range} is a convenient way to write a row vector with evenly spaced elements. A range expression is defined by the value of the first diff -r cdfbc6678c23 -r 87db95b22f8f doc/interpreter/signal.txi --- a/doc/interpreter/signal.txi Wed May 01 03:01:54 2002 +0000 +++ b/doc/interpreter/signal.txi Wed May 01 04:07:32 2002 +0000 @@ -27,8 +27,12 @@ @DOCSTRING(freqz) +@DOCSTRING(freqz_plot) + @DOCSTRING(sinc) +@DOCSTRING(unwrap) + @c XXX FIXME XXX -- someone needs to organize these... @DOCSTRING(arch_fit) diff -r cdfbc6678c23 -r 87db95b22f8f doc/interpreter/strings.txi --- a/doc/interpreter/strings.txi Wed May 01 03:01:54 2002 +0000 +++ b/doc/interpreter/strings.txi Wed May 01 04:07:32 2002 +0000 @@ -171,6 +171,12 @@ @DOCSTRING(hex2dec) +@DOCSTRING(dec2base) + +@DOCSTRING(base2dec) + +@DOCSTRING(strjust) + @DOCSTRING(str2num) @DOCSTRING(toascii) diff -r cdfbc6678c23 -r 87db95b22f8f doc/liboctave/array.texi --- a/doc/liboctave/array.texi Wed May 01 03:01:54 2002 +0000 +++ b/doc/liboctave/array.texi Wed May 01 04:07:32 2002 +0000 @@ -9,95 +9,101 @@ @node Constructors and Assignment, , Arrays, Arrays @section Constructors and Assignment -@deftypefn Constructor {} Array::Array (void) +@deftypefn Constructor {} Array (void) Create an array with no elements. @end deftypefn -@deftypefn Constructor {} Array::Array (int @var{n} [, const T &@var{val}]) +@deftypefn Constructor {} Array (int @var{n} [, const T &@var{val}]) Create an array with @var{n} elements. If the optional argument @var{val} is supplied, the elements are initialized to @var{val}; otherwise, they are left uninitialized. If @var{n} is less than zero, the current error handler is invoked (@pxref{Error Handling}). @end deftypefn -@deftypefn Constructor {} Array::Array (const Array &@var{a}) +@deftypefn Constructor {} Array (const Array &@var{a}) Create a copy of the @var{Array} object @var{a}. Memory for the @var{Array} class is managed using a reference counting scheme, so the cost of this operation is independent of the size of the array. @end deftypefn -@deftypefn Operator Array& {Array::operator =} (const Array &@var{a}) +@deftypeop Assignment Array Array& {operator =} (const Array &@var{a}) Assignment operator. Memory for the @var{Array} class is managed using a reference counting scheme, so the cost of this operation is independent of the size of the array. -@end deftypefn +@end deftypeop -@deftypefn Method int Array::capacity (void) const -@deftypefnx Method int Array::length (void) const +@deftypemethod Array int capacity (void) const +@deftypemethodx Array int length (void) const Return the length of the array. -@end deftypefn +@end deftypemethod -@deftypefn Method T& Array::elem (int @var{n}) -@deftypefnx Method T& Array::checkelem (int @var{n}) -@deftypefnx Method T& {Array::operator ()} (int @var{n}) +@deftypemethod Array T& elem (int @var{n}) +@deftypemethodx Array T& checkelem (int @var{n}) If @var{n} is within the bounds of the array, return a reference to the element indexed by @var{n}; otherwise, the current error handler is invoked (@pxref{Error Handling}). -@end deftypefn +@end deftypemethod -@deftypefn Method T Array::elem (int @var{n}) const -@deftypefnx Method T Array::checkelem (int @var{n}) const -@deftypefnx Method T Array::operator () (int @var{n}) const +@deftypeop Indexing Array T& {operator ()} (int @var{n}) +@end deftypeop + +@deftypemethod Array T elem (int @var{n}) const +@deftypemethodx Array T checkelem (int @var{n}) const If @var{n} is within the bounds of the array, return the value indexed by @var{n}; otherwise, call the current error handler. @xref{Error Handling}. -@end deftypefn +@end deftypemethod -@deftypefn Method T& Array::xelem (int @var{n}) -@deftypefnx Method T Array::xelem (int @var{n}) const +@deftypeop Indexing Array T {operator ()} (int @var{n}) const +@end deftypeop + +@deftypemethod Array T& xelem (int @var{n}) +@deftypemethodx Array T xelem (int @var{n}) const Return a reference to, or the value of, the element indexed by @var{n}. These methods never perform bounds checking. -@end deftypefn +@end deftypemethod -@deftypefn Method void Array::resize (int @var{n} [, const T &@var{val}]) +@deftypemethod Array void resize {(int @var{n} [, const T &@var{val}])} Change the size of the array to be @var{n} elements. All elements are unchanged, except that if @var{n} is greater than the current size and the optional argument @var{val} is provided, the additional elements are initialized to @var{val}; otherwise, any additional elements are left uninitialized. In the current implementation, if @var{n} is less than the current size, the length is updated but no memory is released. -@end deftypefn +@end deftypemethod -@deftypefn Method {const T*} Array::data (void) const -@end deftypefn +@deftypemethod Array {const T*} data (void) const +@end deftypemethod @c Should this be public? @c @c T *fortran_vec (void) -@deftypefn {} {} Array2 (void) -@deftypefnx {} {} Array2 (int @var{n}, int @var{m}) -@deftypefnx {} {} Array2 (int @var{n}, int @var{m}, const T &@var{val}) -@deftypefnx {} {} Array2 (const Array2 &@var{a}) -@deftypefnx {} {} Array2 (const DiagArray &@var{a}) -@end deftypefn - -@deftypefn {} Array2& {operator =} (const Array2 &@var{a}) +@deftypefn Constructor {} Array2 Array2 Array2 (void) +@deftypefnx Constructor {} Array2 (int @var{n}, int @var{m}) +@deftypefnx Constructor {} Array2 (int @var{n}, int @var{m}, const T &@var{val}) +@deftypefnx Constructor {} Array2 (const Array2 &@var{a}) +@deftypefnx Constructor {} Array2 (const DiagArray &@var{a}) @end deftypefn -@deftypefn {} int dim1 (void) const -@deftypefnx {} int rows (void) const -@end deftypefn +@deftypeop Assignment Array2 Array2& {operator =} (const Array2 &@var{a}) +@end deftypeop + +@deftypemethod Array2 int dim1 (void) const +@deftypemethodx Array2 int rows (void) const +@end deftypemethod -@deftypefn {} int dim2 (void) const -@deftypefnx {} int cols (void) const -@deftypefnx {} int columns (void) const -@end deftypefn +@deftypemethod Array2 int dim2 (void) const +@deftypemethodx Array2 int cols (void) const +@deftypemethodx Array2 int columns (void) const +@end deftypemethod -@deftypefn {} T& elem (int @var{i}, int @var{j}) -@deftypefnx {} T& checkelem (int @var{i}, int @var{j}) -@deftypefnx {} T& {operator ()} (int @var{i}, int @var{j}) -@end deftypefn +@deftypemethod Array2 T& elem (int @var{i}, int @var{j}) +@deftypemethodx Array2 T& checkelem (int @var{i}, int @var{j}) +@end deftypemethod + +@deftypeop Indexing Array2 T& {operator ()} (int @var{i}, int @var{j}) +@end deftypeop @c This needs to be fixed. @c @@ -107,28 +113,30 @@ @c T checkelem (int i, int j) const @c T operator () (int i, int j) const -@deftypefn {} void resize (int @var{n}, int @var{m}) -@deftypefnx {} void resize (int @var{n}, int @var{m}, const T &@var{val}) -@end deftypefn +@deftypemethod Array2 void resize (int @var{n}, int @var{m}) +@deftypemethodx Array2 void resize (int @var{n}, int @var{m}, const T &@var{val}) +@end deftypemethod -@deftypefn {} Array3 (void) -@deftypefnx {} Array3 (int @var{n}, int @var{m}, int @var{k}) -@deftypefnx {} Array3 (int @var{n}, int @var{m}, int @var{k}, const T &@var{val}) -@deftypefnx {} Array3 (const Array3 &@var{a}) +@deftypefn Constructor {} Array3 (void) +@deftypefnx Constructor {} Array3 (int @var{n}, int @var{m}, int @var{k}) +@deftypefnx Constructor {} Array3 (int @var{n}, int @var{m}, int @var{k}, const T &@var{val}) +@deftypefnx Constructor {} Array3 (const Array3 &@var{a}) @end deftypefn -@deftypefn {} Array3& {operator =} (const Array3 &@var{a}) -@end deftypefn +@deftypeop Assignment Array3 Array3& {operator =} (const Array3 &@var{a}) +@end deftypeop -@deftypefn {} int dim1 (void) const -@deftypefnx {} int dim2 (void) const -@deftypefnx {} int dim3 (void) const -@end deftypefn +@deftypemethod Array3 int dim1 (void) const +@deftypemethodx Array3 int dim2 (void) const +@deftypemethodx Array3 int dim3 (void) const +@end deftypemethod -@deftypefn {} T& elem (int @var{i}, int @var{j}, int @var{k}) -@deftypefnx {} T& checkelem (int @var{i}, int @var{j}, int @var{k}) -@deftypefnx {} T& {operator ()} (int @var{i}, int @var{j}, int @var{k}) -@end deftypefn +@deftypemethod Array3 T& elem (int @var{i}, int @var{j}, int @var{k}) +@deftypemethodx Array3 T& checkelem (int @var{i}, int @var{j}, int @var{k}) +@end deftypemethod + +@deftypeop Indexing Array3 T& {operator ()} (int @var{i}, int @var{j}, int @var{k}) +@end deftypeop @c This needs to be fixed. @c @@ -138,35 +146,37 @@ @c T checkelem (int i, int j, int k) const @c T operator () (int i, int j, int k) const -@deftypefn {} void resize (int @var{n}, int @var{m}, int @var{k}) -@deftypefnx {} void resize (int @var{n}, int @var{m}, int @var{k}, const T &@var{val}) -@end deftypefn +@deftypemethod Array3 void resize (int @var{n}, int @var{m}, int @var{k}) +@deftypemethodx Array3 void resize (int @var{n}, int @var{m}, int @var{k}, const T &@var{val}) +@end deftypemethod -@deftypefn {} {}DiagArray (void) -@deftypefnx {} {}DiagArray (int @var{n}) -@deftypefnx {} {}DiagArray (int @var{n}, const T &@var{val}) -@deftypefnx {} {}DiagArray (int @var{r}, int @var{c}) -@deftypefnx {} {}DiagArray (int @var{r}, int @var{c}, const T &@var{val}) -@deftypefnx {} {}DiagArray (const Array &@var{a}) -@deftypefnx {} {}DiagArray (const DiagArray &@var{a}) +@deftypefn Constructor {} DiagArray (void) +@deftypefnx Constructor {} DiagArray (int @var{n}) +@deftypefnx Constructor {} DiagArray (int @var{n}, const T &@var{val}) +@deftypefnx Constructor {} DiagArray (int @var{r}, int @var{c}) +@deftypefnx Constructor {} DiagArray (int @var{r}, int @var{c}, const T &@var{val}) +@deftypefnx Constructor {} DiagArray (const Array &@var{a}) +@deftypefnx Constructor {} DiagArray (const DiagArray &@var{a}) @end deftypefn -@deftypefn {} DiagArray& {operator =} (const DiagArray &@var{a}) -@end deftypefn +@deftypeop {Assginment} DiagArray& {operator =} (const DiagArray &@var{a}) +@end deftypeop -@deftypefn {} int dim1 (void) const -@deftypefnx {} int rows (void) const -@end deftypefn +@deftypemethod DiagArray int dim1 (void) const +@deftypemethodx DiagArray int rows (void) const +@end deftypemethod -@deftypefn {} int dim2 (void) const -@deftypefnx {} int cols (void) const -@deftypefnx {} int columns (void) const -@end deftypefn +@deftypemethod DiagArray int dim2 (void) const +@deftypemethodx DiagArray int cols (void) const +@deftypemethodx DiagArray int columns (void) const +@end deftypemethod -@deftypefn {} T& elem (int @var{r}, int @var{c}) -@deftypefnx {} T& checkelem (int @var{r}, int @var{c}) -@deftypefnx {} T& {operator ()} (int @var{r}, int @var{c}) -@end deftypefn +@deftypemethod DiagArray T& elem (int @var{r}, int @var{c}) +@deftypemethodx DiagArray T& checkelem (int @var{r}, int @var{c}) +@end deftypemethod + +@deftypeop Indexing DiagArray T& {operator ()} (int @var{r}, int @var{c}) +@end deftypeop @c This needs to be fixed. @c @@ -176,6 +186,6 @@ @c T checkelem (int r, int c) const @c T operator () (int r, int c) const -@deftypefn {} void resize (int @var{n}, int @var{m}) -@deftypefnx {} void resize (int @var{n}, int @var{m}, const T &@var{val}) -@end deftypefn +@deftypemethod DiagArray void resize (int @var{n}, int @var{m}) +@deftypemethodx DiagArray void resize (int @var{n}, int @var{m}, const T &@var{val}) +@end deftypemethod diff -r cdfbc6678c23 -r 87db95b22f8f scripts/signal/freqz.m --- a/scripts/signal/freqz.m Wed May 01 03:01:54 2002 +0000 +++ b/scripts/signal/freqz.m Wed May 01 04:07:32 2002 +0000 @@ -63,7 +63,7 @@ ## @var{Fs}. If you are evaluating the response at specific frequencies ## @var{w}, those frequencies should be requested in Hz rather than radians. ## -## @deftypefnx {Function File} {} freqz(@dots{}) +## @deftypefnx {Function File} {} freqz (@dots{}) ## Plot the pass band, stop band and phase response of @var{h} rather ## than returning them. ## @end deftypefn diff -r cdfbc6678c23 -r 87db95b22f8f src/ChangeLog --- a/src/ChangeLog Wed May 01 03:01:54 2002 +0000 +++ b/src/ChangeLog Wed May 01 04:07:32 2002 +0000 @@ -1,3 +1,7 @@ +2002-04-30 John W. Eaton + + * DLD-FUNCTIONS/lsode.cc (Flsode): Delete unused variable nsteps. + 2002-04-29 John W. Eaton * help.cc (additional_help_message): Use www.octave.org, not diff -r cdfbc6678c23 -r 87db95b22f8f src/DLD-FUNCTIONS/lsode.cc --- a/src/DLD-FUNCTIONS/lsode.cc Wed May 01 03:01:54 2002 +0000 +++ b/src/DLD-FUNCTIONS/lsode.cc Wed May 01 04:07:32 2002 +0000 @@ -265,7 +265,6 @@ } double tzero = out_times (0); - int nsteps = out_times.capacity (); ODEFunc func (lsode_user_function); if (lsode_jac)