3937
|
1 /* |
|
2 |
|
3 Copyright (C) 2001 Cai Jianming |
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
20 |
|
21 */ |
|
22 |
|
23 #ifdef HAVE_CONFIG_H |
|
24 #include <config.h> |
|
25 #endif |
|
26 |
|
27 #include "gripes.h" |
4055
|
28 #include "oct-obj.h" |
3937
|
29 #include "ov.h" |
|
30 #include "ov-bool.h" |
|
31 #include "ov-bool-mat.h" |
4915
|
32 #include "ov-scalar.h" |
|
33 #include "ov-re-mat.h" |
3937
|
34 #include "ov-typeinfo.h" |
|
35 #include "ops.h" |
|
36 #include "xdiv.h" |
|
37 #include "xpow.h" |
|
38 |
|
39 // bool matrix by bool ops. |
|
40 |
4669
|
41 DEFNDBINOP_FN (el_and, bool_matrix, bool, bool_array, bool, mx_el_and) |
|
42 DEFNDBINOP_FN (el_or, bool_matrix, bool, bool_array, bool, mx_el_or) |
|
43 |
4964
|
44 DEFNDCATOP_FN (bm_b, bool_matrix, bool, bool_array, bool_array, concat) |
4915
|
45 DEFNDCATOP_FN (bm_s, bool_matrix, scalar, array, array, concat) |
|
46 DEFNDCATOP_FN (m_b, matrix, bool, array, array, concat) |
|
47 |
4686
|
48 DEFNDASSIGNOP_FN (assign, bool_matrix, bool, bool_array, assign) |
3937
|
49 |
|
50 void |
|
51 install_bm_b_ops (void) |
|
52 { |
4669
|
53 INSTALL_BINOP (op_el_and, octave_bool_matrix, octave_bool, el_and); |
|
54 INSTALL_BINOP (op_el_or, octave_bool_matrix, octave_bool, el_or); |
|
55 |
4915
|
56 INSTALL_CATOP (octave_bool_matrix, octave_bool, bm_b); |
|
57 INSTALL_CATOP (octave_bool_matrix, octave_scalar, bm_s); |
|
58 INSTALL_CATOP (octave_matrix, octave_bool, m_b); |
|
59 |
3937
|
60 INSTALL_ASSIGNOP (op_asn_eq, octave_bool_matrix, octave_bool, assign); |
|
61 } |
|
62 |
|
63 /* |
|
64 ;;; Local Variables: *** |
|
65 ;;; mode: C++ *** |
|
66 ;;; End: *** |
|
67 */ |