Mercurial > hg > octave-nkf
annotate libinterp/operators/op-sbm-sbm.cc @ 20804:3af34e1ef330
Preliminary inclusion of uixx objects properties in the manual (bug #46076)
* doc/interpreter/genpropdoc.m: add uixx objects to the list of supported graphics objects
* doc/interpreter/genpropdoc.m (get_doc): add uixx objects and their specific properties (currently empty documentation)
* doc/interpreter/plot.txi("Interacting with Plots"): add a note and a reference about ui* family of functions.
* doc/interpreter/plot.txi("Interacting with Plots"): for consistency, remove "uimenu" reference. All the other uixx are already in the gui section
* doc/interpreter/plot.txi("graphics data structure"): add uixx objects
* doc/interpreter/gui.txi("UI Elements"): add "uimenu" function reference
* doc/module.mk: add rules to build uixx properties texi files.
* graphics.in.h: make uixx "__object__" property (Octave internal) hidden so that it does not appear in the documentation.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Fri, 09 Oct 2015 16:25:27 +0200 |
parents | 4197fc428c7d |
children |
rev | line source |
---|---|
5164 | 1 /* |
2 | |
19898
4197fc428c7d
maint: Update copyright notices for 2015.
John W. Eaton <jwe@octave.org>
parents:
18833
diff
changeset
|
3 Copyright (C) 2004-2015 David Bateman |
11523 | 4 Copyright (C) 1998-2004 Andy Adler |
7016 | 5 |
6 This file is part of Octave. | |
5164 | 7 |
8 Octave is free software; you can redistribute it and/or modify it | |
9 under the terms of the GNU General Public License as published by the | |
7016 | 10 Free Software Foundation; either version 3 of the License, or (at your |
11 option) any later version. | |
5164 | 12 |
13 Octave is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
7016 | 19 along with Octave; see the file COPYING. If not, see |
20 <http://www.gnu.org/licenses/>. | |
5164 | 21 |
22 */ | |
23 | |
24 #ifdef HAVE_CONFIG_H | |
25 #include <config.h> | |
26 #endif | |
27 | |
28 #include "gripes.h" | |
29 #include "oct-obj.h" | |
30 #include "ov.h" | |
31 #include "ov-typeinfo.h" | |
32 #include "ov-bool-mat.h" | |
33 #include "ov-scalar.h" | |
34 #include "ops.h" | |
35 | |
36 #include "ov-re-sparse.h" | |
37 #include "ov-bool-sparse.h" | |
38 | |
39 // unary sparse bool matrix ops. | |
40 | |
41 DEFUNOP_OP (not, sparse_bool_matrix, !) | |
42 | |
43 DEFUNOP (uplus, sparse_bool_matrix) | |
44 { | |
45 CAST_UNOP_ARG (const octave_sparse_bool_matrix&); | |
46 return octave_value (v.sparse_matrix_value ()); | |
47 } | |
48 | |
49 DEFUNOP (uminus, sparse_bool_matrix) | |
50 { | |
51 CAST_UNOP_ARG (const octave_sparse_bool_matrix&); | |
18833
6113e0c6920b
maint: Clean up extra spaces before/after parentheses.
Rik <rik@octave.org>
parents:
17787
diff
changeset
|
52 return octave_value (- v.sparse_matrix_value ()); |
5164 | 53 } |
54 | |
55 DEFUNOP (transpose, sparse_bool_matrix) | |
56 { | |
57 CAST_UNOP_ARG (const octave_sparse_bool_matrix&); | |
14846
460a3c6d8bf1
maint: Use Octave coding convention for cuddled parenthis in function calls with empty argument lists.
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
58 return octave_value (v.sparse_bool_matrix_value ().transpose ()); |
5164 | 59 } |
60 | |
61 // sparse bool matrix by sparse bool matrix ops. | |
62 | |
63 DEFBINOP_FN (eq, sparse_bool_matrix, sparse_bool_matrix, mx_el_eq) | |
64 DEFBINOP_FN (ne, sparse_bool_matrix, sparse_bool_matrix, mx_el_ne) | |
65 DEFBINOP_FN (el_and, sparse_bool_matrix, sparse_bool_matrix, mx_el_and) | |
66 DEFBINOP_FN (el_or, sparse_bool_matrix, sparse_bool_matrix, mx_el_or) | |
67 | |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
68 DEFNDCATOP_FN (sbm_sbm, sparse_bool_matrix, sparse_bool_matrix, |
9931
fb6b6fcafa62
untabify files in src/OPERATORS directory
John W. Eaton <jwe@octave.org>
parents:
7228
diff
changeset
|
69 sparse_bool_matrix, sparse_bool_matrix, concat) |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
70 DEFNDCATOP_FN (sbm_sm, sparse_bool_matrix, sparse_matrix, sparse_matrix, |
9931
fb6b6fcafa62
untabify files in src/OPERATORS directory
John W. Eaton <jwe@octave.org>
parents:
7228
diff
changeset
|
71 sparse_matrix, concat) |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
72 DEFNDCATOP_FN (sm_sbm, sparse_matrix, sparse_bool_matrix, sparse_matrix, |
9931
fb6b6fcafa62
untabify files in src/OPERATORS directory
John W. Eaton <jwe@octave.org>
parents:
7228
diff
changeset
|
73 sparse_matrix, concat) |
5164 | 74 |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
75 DEFASSIGNOP_FN (assign, sparse_bool_matrix, sparse_bool_matrix, |
9931
fb6b6fcafa62
untabify files in src/OPERATORS directory
John W. Eaton <jwe@octave.org>
parents:
7228
diff
changeset
|
76 assign) |
5164 | 77 |
7004 | 78 CONVDECL (bool_matrix_to_double_matrix) |
79 { | |
80 CAST_CONV_ARG (const octave_sparse_bool_matrix&); | |
81 | |
17787
175b392e91fe
Use GNU style coding conventions for code in libinterp/
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
82 return new octave_sparse_matrix (SparseMatrix |
175b392e91fe
Use GNU style coding conventions for code in libinterp/
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
83 (v.sparse_bool_matrix_value ())); |
7004 | 84 } |
85 | |
5164 | 86 void |
87 install_sbm_sbm_ops (void) | |
88 { | |
89 INSTALL_UNOP (op_not, octave_sparse_bool_matrix, not); | |
90 INSTALL_UNOP (op_uplus, octave_sparse_bool_matrix, uplus); | |
91 INSTALL_UNOP (op_uminus, octave_sparse_bool_matrix, uminus); | |
92 INSTALL_UNOP (op_transpose, octave_sparse_bool_matrix, transpose); | |
93 INSTALL_UNOP (op_hermitian, octave_sparse_bool_matrix, transpose); | |
94 | |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
95 INSTALL_BINOP (op_eq, octave_sparse_bool_matrix, |
9931
fb6b6fcafa62
untabify files in src/OPERATORS directory
John W. Eaton <jwe@octave.org>
parents:
7228
diff
changeset
|
96 octave_sparse_bool_matrix, eq); |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
97 INSTALL_BINOP (op_ne, octave_sparse_bool_matrix, |
9931
fb6b6fcafa62
untabify files in src/OPERATORS directory
John W. Eaton <jwe@octave.org>
parents:
7228
diff
changeset
|
98 octave_sparse_bool_matrix, ne); |
5164 | 99 |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
100 INSTALL_BINOP (op_el_and, octave_sparse_bool_matrix, |
9931
fb6b6fcafa62
untabify files in src/OPERATORS directory
John W. Eaton <jwe@octave.org>
parents:
7228
diff
changeset
|
101 octave_sparse_bool_matrix, el_and); |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
102 INSTALL_BINOP (op_el_or, octave_sparse_bool_matrix, |
9931
fb6b6fcafa62
untabify files in src/OPERATORS directory
John W. Eaton <jwe@octave.org>
parents:
7228
diff
changeset
|
103 octave_sparse_bool_matrix, el_or); |
5164 | 104 |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
105 INSTALL_CATOP (octave_sparse_bool_matrix, octave_sparse_bool_matrix, |
9931
fb6b6fcafa62
untabify files in src/OPERATORS directory
John W. Eaton <jwe@octave.org>
parents:
7228
diff
changeset
|
106 sbm_sbm); |
5164 | 107 INSTALL_CATOP (octave_sparse_bool_matrix, octave_sparse_matrix, sbm_sm); |
108 INSTALL_CATOP (octave_sparse_matrix, octave_sparse_bool_matrix, sm_sbm); | |
109 | |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
110 INSTALL_ASSIGNOP (op_asn_eq, octave_sparse_bool_matrix, |
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
111 octave_sparse_bool_matrix, assign); |
7004 | 112 |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
113 INSTALL_CONVOP (octave_sparse_bool_matrix, octave_sparse_matrix, |
9931
fb6b6fcafa62
untabify files in src/OPERATORS directory
John W. Eaton <jwe@octave.org>
parents:
7228
diff
changeset
|
114 bool_matrix_to_double_matrix); |
5164 | 115 } |