annotate doc/interpreter/set.txi @ 11842:0b9c56b6bf0e release-3-0-x

partially sync Matrix::expm and ComplexMatrix::expm with development repo
author Jaroslav Hajek <highegg@gmail.com>
date Fri, 19 Sep 2008 11:29:51 +0200
parents fd42779a8428
children fa78cb8d8a5c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7018
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 7001
diff changeset
1 @c Copyright (C) 1996, 1997, 1999, 2000, 2002, 2007 John W. Eaton
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 7001
diff changeset
2 @c
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 7001
diff changeset
3 @c This file is part of Octave.
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 7001
diff changeset
4 @c
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 7001
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: 7001
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: 7001
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: 7001
diff changeset
8 @c your option) any later version.
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 7001
diff changeset
9 @c
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 7001
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: 7001
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: 7001
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: 7001
diff changeset
13 @c for more details.
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 7001
diff changeset
14 @c
fd42779a8428 [project @ 2007-10-13 00:52:12 by jwe]
jwe
parents: 7001
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: 7001
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: 7001
diff changeset
17 @c <http://www.gnu.org/licenses/>.
3294
bfe1573bd2ae [project @ 1999-10-19 10:06:07 by jwe]
jwe
parents:
diff changeset
18
4167
aae05d51353c [project @ 2002-11-12 02:52:50 by jwe]
jwe
parents: 3439
diff changeset
19 @node Sets
3294
bfe1573bd2ae [project @ 1999-10-19 10:06:07 by jwe]
jwe
parents:
diff changeset
20 @chapter Sets
bfe1573bd2ae [project @ 1999-10-19 10:06:07 by jwe]
jwe
parents:
diff changeset
21
bfe1573bd2ae [project @ 1999-10-19 10:06:07 by jwe]
jwe
parents:
diff changeset
22 Octave has a limited set of functions for managing sets of data, where a
7001
8b0cfeb06365 [project @ 2007-10-10 18:02:59 by jwe]
jwe
parents: 6778
diff changeset
23 set is defined as a collection of unique elements. In Octave a set is
6741
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
24 represented as a vector of numbers.
3294
bfe1573bd2ae [project @ 1999-10-19 10:06:07 by jwe]
jwe
parents:
diff changeset
25
3368
a4cd1e9d9962 [project @ 1999-11-20 17:22:48 by jwe]
jwe
parents: 3294
diff changeset
26 @DOCSTRING(create_set)
3294
bfe1573bd2ae [project @ 1999-10-19 10:06:07 by jwe]
jwe
parents:
diff changeset
27
6741
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
28 @DOCSTRING(unique)
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
29
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
30 @menu
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
31 * Set Operations::
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
32 @end menu
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
33
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
34 @node Set Operations
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
35 @section Set Operations
6550
1b7a6061a05d [project @ 2007-04-20 07:40:26 by jwe]
jwe
parents: 6502
diff changeset
36
6741
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
37 Octave supports the basic set operations. That is, Octave can compute
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
38 the union, intersection, complement, and difference of two sets.
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
39 Octave can also supports the @emph{Exclusive Or} set operation, and
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
40 membership determination. The functions for set operations all work in
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
41 pretty much the same way. As an example, assume that @code{x} and
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
42 @code{y} contains two sets, then
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
43
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
44 @example
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
45 union(x, y)
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
46 @end example
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
47
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
48 @noindent
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
49 computes the union of the two sets.
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
50
00116015904d [project @ 2007-06-18 16:07:14 by jwe]
jwe
parents: 6550
diff changeset
51 @DOCSTRING(ismember)
6502
6ab0a8767780 [project @ 2007-04-06 03:32:06 by jwe]
jwe
parents: 4167
diff changeset
52
3368
a4cd1e9d9962 [project @ 1999-11-20 17:22:48 by jwe]
jwe
parents: 3294
diff changeset
53 @DOCSTRING(union)
3294
bfe1573bd2ae [project @ 1999-10-19 10:06:07 by jwe]
jwe
parents:
diff changeset
54
6502
6ab0a8767780 [project @ 2007-04-06 03:32:06 by jwe]
jwe
parents: 4167
diff changeset
55 @DOCSTRING(intersect)
3294
bfe1573bd2ae [project @ 1999-10-19 10:06:07 by jwe]
jwe
parents:
diff changeset
56
3368
a4cd1e9d9962 [project @ 1999-11-20 17:22:48 by jwe]
jwe
parents: 3294
diff changeset
57 @DOCSTRING(complement)
6502
6ab0a8767780 [project @ 2007-04-06 03:32:06 by jwe]
jwe
parents: 4167
diff changeset
58
6ab0a8767780 [project @ 2007-04-06 03:32:06 by jwe]
jwe
parents: 4167
diff changeset
59 @DOCSTRING(setdiff)
6ab0a8767780 [project @ 2007-04-06 03:32:06 by jwe]
jwe
parents: 4167
diff changeset
60
6ab0a8767780 [project @ 2007-04-06 03:32:06 by jwe]
jwe
parents: 4167
diff changeset
61 @DOCSTRING(setxor)