comparison src/OPERATORS/op-b-bm.cc @ 4669:334a27c8f453

[project @ 2003-11-26 07:02:42 by jwe]
author jwe
date Wed, 26 Nov 2003 07:02:42 +0000
parents
children c638c144d4da
comparison
equal deleted inserted replaced
4668:7849788ca4bd 4669:334a27c8f453
1 /*
2
3 Copyright (C) 2003 John W. Eaton
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 #if defined (__GNUG__) && defined (USE_PRAGMA_INTERFACE_IMPLEMENTATION)
24 #pragma implementation
25 #endif
26
27 #ifdef HAVE_CONFIG_H
28 #include <config.h>
29 #endif
30
31 #include "gripes.h"
32 #include "oct-obj.h"
33 #include "ov.h"
34 #include "ov-bool.h"
35 #include "ov-bool-mat.h"
36 #include "ov-typeinfo.h"
37 #include "ops.h"
38 #include "xdiv.h"
39 #include "xpow.h"
40
41 // bool matrix by bool ops.
42
43 DEFNDBINOP_FN (el_and, bool, bool_matrix, bool, bool_array, mx_el_and)
44 DEFNDBINOP_FN (el_or, bool, bool_matrix, bool, bool_array, mx_el_or)
45
46 void
47 install_b_bm_ops (void)
48 {
49 INSTALL_BINOP (op_el_and, octave_bool, octave_bool_matrix, el_and);
50 INSTALL_BINOP (op_el_or, octave_bool, octave_bool_matrix, el_or);
51 }
52
53 /*
54 ;;; Local Variables: ***
55 ;;; mode: C++ ***
56 ;;; End: ***
57 */