annotate doc/liboctave/array.texi @ 20595:c1a6c31ac29a

eliminate more simple uses of error_state * ov-classdef.cc: Eliminate simple uses of error_state.
author John W. Eaton <jwe@octave.org>
date Tue, 06 Oct 2015 00:20:02 -0400
parents 4197fc428c7d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19731
4197fc428c7d maint: Update copyright notices for 2015.
John W. Eaton <jwe@octave.org>
parents: 19627
diff changeset
1 @c Copyright (C) 1996-2015 John W. Eaton
7018
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 5647
diff changeset
2 @c
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 5647
diff changeset
3 @c This file is part of Octave.
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 5647
diff changeset
4 @c
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 5647
diff changeset
5 @c Octave is free software; you can redistribute it and/or modify it
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 5647
diff changeset
6 @c under the terms of the GNU General Public License as published by the
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 5647
diff changeset
7 @c Free Software Foundation; either version 3 of the License, or (at
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 5647
diff changeset
8 @c your option) any later version.
19627
446c46af4b42 strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
9 @c
7018
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 5647
diff changeset
10 @c Octave is distributed in the hope that it will be useful, but WITHOUT
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 5647
diff changeset
11 @c ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 5647
diff changeset
12 @c FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 5647
diff changeset
13 @c for more details.
19627
446c46af4b42 strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
14 @c
7018
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 5647
diff changeset
15 @c You should have received a copy of the GNU General Public License
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 5647
diff changeset
16 @c along with Octave; see the file COPYING. If not, see
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 5647
diff changeset
17 @c <http://www.gnu.org/licenses/>.
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 5647
diff changeset
18
3178
09a3064a3a17 [project @ 1998-06-23 03:46:42 by jwe]
jwe
parents: 2333
diff changeset
19 @node Arrays, Matrix and Vector Operations, Introduction, Top
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
20 @chapter Arrays
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
21 @cindex arrays
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
22
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
23 @menu
19627
446c46af4b42 strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
24 * Constructors and Assignment::
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
25 @end menu
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
26
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
27 @node Constructors and Assignment, , Arrays, Arrays
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
28 @section Constructors and Assignment
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
29
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
30 @deftypefn Constructor {} Array<T> (void)
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
31 Create an array with no elements.
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
32 @end deftypefn
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
33
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
34 @deftypefn Constructor {} Array<T> (int @var{n} [, const T &@var{val}])
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
35 Create an array with @var{n} elements. If the optional argument
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
36 @var{val} is supplied, the elements are initialized to @var{val};
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
37 otherwise, they are left uninitialized. If @var{n} is less than zero,
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
38 the current error handler is invoked (@pxref{Error Handling}).
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
39 @end deftypefn
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
40
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
41 @deftypefn Constructor {} Array<T> (const Array<T> &@var{a})
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
42 Create a copy of the @var{Array<T>} object @var{a}. Memory for the
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
43 @var{Array<T>} class is managed using a reference counting scheme, so
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
44 the cost of this operation is independent of the size of the array.
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
45 @end deftypefn
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
46
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
47 @deftypeop Assignment Array<T> Array<T>& {operator =} (const Array<T> &@var{a})
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
48 Assignment operator. Memory for the @var{Array<T>} class is managed
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
49 using a reference counting scheme, so the cost of this operation is
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
50 independent of the size of the array.
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
51 @end deftypeop
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
52
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
53 @deftypemethod Array<T> int capacity (void) const
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
54 @deftypemethodx Array<T> int length (void) const
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
55 Return the length of the array.
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
56 @end deftypemethod
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
57
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
58 @deftypemethod Array<T> T& elem (int @var{n})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
59 @deftypemethodx Array<T> T& checkelem (int @var{n})
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
60 If @var{n} is within the bounds of the array, return a reference to the
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
61 element indexed by @var{n}; otherwise, the current error handler is
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
62 invoked (@pxref{Error Handling}).
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
63 @end deftypemethod
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
64
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
65 @deftypeop Indexing Array<T> T& {operator ()} (int @var{n})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
66 @end deftypeop
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
67
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
68 @deftypemethod Array<T> T elem (int @var{n}) const
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
69 @deftypemethodx Array<T> T checkelem (int @var{n}) const
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
70 If @var{n} is within the bounds of the array, return the value indexed
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
71 by @var{n}; otherwise, call the current error handler.
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
72 @xref{Error Handling}.
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
73 @end deftypemethod
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
74
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
75 @deftypeop Indexing Array<T> T {operator ()} (int @var{n}) const
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
76 @end deftypeop
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
77
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
78 @deftypemethod Array<T> T& xelem (int @var{n})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
79 @deftypemethodx Array<T> T xelem (int @var{n}) const
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
80 Return a reference to, or the value of, the element indexed by @var{n}.
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
81 These methods never perform bounds checking.
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
82 @end deftypemethod
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
83
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
84 @deftypemethod Array<T> void resize {(int @var{n} [, const T &@var{val}])}
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
85 Change the size of the array to be @var{n} elements. All elements are
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
86 unchanged, except that if @var{n} is greater than the current size and
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
87 the optional argument @var{val} is provided, the additional elements are
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
88 initialized to @var{val}; otherwise, any additional elements are left
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
89 uninitialized. In the current implementation, if @var{n} is less than
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
90 the current size, the length is updated but no memory is released.
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
91 @end deftypemethod
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
92
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
93 @deftypemethod Array<T> {const T*} data (void) const
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
94 @end deftypemethod
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
95
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
96 @c Should this be public?
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
97 @c
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
98 @c T *fortran_vec (void)
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
99
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
100 @deftypefn Constructor {} Array2<T> Array2<T> Array2 (void)
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
101 @deftypefnx Constructor {} Array2<T> (int @var{n}, int @var{m})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
102 @deftypefnx Constructor {} Array2<T> (int @var{n}, int @var{m}, const T &@var{val})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
103 @deftypefnx Constructor {} Array2<T> (const Array2<T> &@var{a})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
104 @deftypefnx Constructor {} Array2<T> (const DiagArray<T> &@var{a})
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
105 @end deftypefn
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
106
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
107 @deftypeop Assignment Array2<T> Array2<T>& {operator =} (const Array2<T> &@var{a})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
108 @end deftypeop
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
109
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
110 @deftypemethod Array2<T> int dim1 (void) const
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
111 @deftypemethodx Array2<T> int rows (void) const
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
112 @end deftypemethod
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
113
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
114 @deftypemethod Array2<T> int dim2 (void) const
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
115 @deftypemethodx Array2<T> int cols (void) const
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
116 @deftypemethodx Array2<T> int columns (void) const
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
117 @end deftypemethod
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
118
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
119 @deftypemethod Array2<T> T& elem (int @var{i}, int @var{j})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
120 @deftypemethodx Array2<T> T& checkelem (int @var{i}, int @var{j})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
121 @end deftypemethod
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
122
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
123 @deftypeop Indexing Array2<T> T& {operator ()} (int @var{i}, int @var{j})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
124 @end deftypeop
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
125
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
126 @c This needs to be fixed.
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
127 @c
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
128 @c T& xelem (int i, int j)
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
129 @c
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
130 @c T elem (int i, int j) const
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
131 @c T checkelem (int i, int j) const
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
132 @c T operator () (int i, int j) const
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
133
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
134 @deftypemethod Array2<T> void resize (int @var{n}, int @var{m})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
135 @deftypemethodx Array2<T> void resize (int @var{n}, int @var{m}, const T &@var{val})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
136 @end deftypemethod
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
137
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
138 @deftypefn Constructor {} Array3<T> (void)
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
139 @deftypefnx Constructor {} Array3<T> (int @var{n}, int @var{m}, int @var{k})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
140 @deftypefnx Constructor {} Array3<T> (int @var{n}, int @var{m}, int @var{k}, const T &@var{val})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
141 @deftypefnx Constructor {} Array3<T> (const Array3<T> &@var{a})
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
142 @end deftypefn
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
143
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
144 @deftypeop Assignment Array3<T> Array3<T>& {operator =} (const Array3<T> &@var{a})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
145 @end deftypeop
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
146
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
147 @deftypemethod Array3<T> int dim1 (void) const
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
148 @deftypemethodx Array3<T> int dim2 (void) const
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
149 @deftypemethodx Array3<T> int dim3 (void) const
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
150 @end deftypemethod
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
151
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
152 @deftypemethod Array3<T> T& elem (int @var{i}, int @var{j}, int @var{k})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
153 @deftypemethodx Array3<T> T& checkelem (int @var{i}, int @var{j}, int @var{k})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
154 @end deftypemethod
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
155
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
156 @deftypeop Indexing Array3<T> T& {operator ()} (int @var{i}, int @var{j}, int @var{k})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
157 @end deftypeop
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
158
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
159 @c This needs to be fixed.
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
160 @c
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
161 @c T& xelem (int i, int j, int k)
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
162 @c
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
163 @c T elem (int i, int j, int k) const
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
164 @c T checkelem (int i, int j, int k) const
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
165 @c T operator () (int i, int j, int k) const
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
166
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
167 @deftypemethod Array3<T> void resize (int @var{n}, int @var{m}, int @var{k})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
168 @deftypemethodx Array3<T> void resize (int @var{n}, int @var{m}, int @var{k}, const T &@var{val})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
169 @end deftypemethod
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
170
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
171 @deftypefn Constructor {} DiagArray<T> (void)
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
172 @deftypefnx Constructor {} DiagArray<T> (int @var{n})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
173 @deftypefnx Constructor {} DiagArray<T> (int @var{n}, const T &@var{val})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
174 @deftypefnx Constructor {} DiagArray<T> (int @var{r}, int @var{c})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
175 @deftypefnx Constructor {} DiagArray<T> (int @var{r}, int @var{c}, const T &@var{val})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
176 @deftypefnx Constructor {} DiagArray<T> (const Array<T> &@var{a})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
177 @deftypefnx Constructor {} DiagArray<T> (const DiagArray<T> &@var{a})
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
178 @end deftypefn
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
179
12702
013cd94d8d7f doc: Spelling fixes for various documentation files
John Bradshaw <john@johnbradshaw.org>
parents: 11523
diff changeset
180 @deftypeop Assignment DiagArray<T>& {} {operator =} (const DiagArray<T> &@var{a})
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
181 @end deftypeop
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
182
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
183 @deftypemethod DiagArray<T> int dim1 (void) const
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
184 @deftypemethodx DiagArray<T> int rows (void) const
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
185 @end deftypemethod
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
186
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
187 @deftypemethod DiagArray<T> int dim2 (void) const
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
188 @deftypemethodx DiagArray<T> int cols (void) const
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
189 @deftypemethodx DiagArray<T> int columns (void) const
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
190 @end deftypemethod
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
191
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
192 @deftypemethod DiagArray<T> T& elem (int @var{r}, int @var{c})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
193 @deftypemethodx DiagArray<T> T& checkelem (int @var{r}, int @var{c})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
194 @end deftypemethod
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
195
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
196 @deftypeop Indexing DiagArray<T> T& {operator ()} (int @var{r}, int @var{c})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
197 @end deftypeop
2333
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
198
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
199 @c This needs to be fixed.
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
200 @c
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
201 @c T& xelem (int r, int c)
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
202 @c
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
203 @c T elem (int r, int c) const
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
204 @c T checkelem (int r, int c) const
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
205 @c T operator () (int r, int c) const
b1a56412c385 [project @ 1996-07-19 02:20:16 by jwe]
jwe
parents:
diff changeset
206
3920
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
207 @deftypemethod DiagArray<T> void resize (int @var{n}, int @var{m})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
208 @deftypemethodx DiagArray<T> void resize (int @var{n}, int @var{m}, const T &@var{val})
87db95b22f8f [project @ 2002-05-01 04:07:31 by jwe]
jwe
parents: 3178
diff changeset
209 @end deftypemethod