comparison liboctave/bsxfun-decl.h @ 9747:7bda650b691a

add omitted files from 26abff55f6fe
author Jaroslav Hajek <highegg@gmail.com>
date Tue, 20 Oct 2009 15:45:09 +0200
parents
children c15a5ed0da58
comparison
equal deleted inserted replaced
9746:31a22d48f41f 9747:7bda650b691a
1 /*
2
3 Copyright (C) 2009 Jaroslav Hajek
4 Copyright (C) 2009 VZLU Prague
5
6 This file is part of Octave.
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
10 Free Software Foundation; either version 3 of the License, or (at your
11 option) any later version.
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
19 along with Octave; see the file COPYING. If not, see
20 <http://www.gnu.org/licenses/>.
21
22 */
23
24 #if !defined (octave_bsxfun_decl_h)
25 #define octave_bsxfun_decl_h 1
26
27 #define BSXFUN_OP_DECL(OP, ARRAY, API) \
28 extern API ARRAY bsxfun_ ## OP (const ARRAY&, const ARRAY&);
29
30 #define BSXFUN_REL_DECL(OP, ARRAY, API) \
31 extern API boolNDArray bsxfun_ ## OP (const ARRAY&, const ARRAY&);
32
33 #define BSXFUN_STDOP_DECLS(ARRAY, API) \
34 BSXFUN_OP_DECL (add, ARRAY, API) \
35 BSXFUN_OP_DECL (sub, ARRAY, API) \
36 BSXFUN_OP_DECL (mul, ARRAY, API) \
37 BSXFUN_OP_DECL (div, ARRAY, API) \
38 BSXFUN_OP_DECL (pow, ARRAY, API) \
39 BSXFUN_OP_DECL (min, ARRAY, API) \
40 BSXFUN_OP_DECL (max, ARRAY, API)
41
42 #define BSXFUN_STDREL_DECLS(ARRAY, API) \
43 BSXFUN_REL_DECL (eq, ARRAY, API) \
44 BSXFUN_REL_DECL (ne, ARRAY, API) \
45 BSXFUN_REL_DECL (lt, ARRAY, API) \
46 BSXFUN_REL_DECL (le, ARRAY, API) \
47 BSXFUN_REL_DECL (gt, ARRAY, API) \
48 BSXFUN_REL_DECL (ge, ARRAY, API) \
49
50 #endif