526
|
1 // arith-ops.h -*- C++ -*- |
1
|
2 /* |
|
3 |
1009
|
4 Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton |
1
|
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 2, or (at your option) any |
|
11 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, write to the Free |
|
20 Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
|
21 |
|
22 */ |
|
23 |
383
|
24 #if !defined (octave_arith_ops_h) |
|
25 #define octave_arith_ops_h 1 |
1
|
26 |
578
|
27 #include "tree-expr.h" |
1
|
28 |
164
|
29 class Complex; |
|
30 class Matrix; |
|
31 class ComplexMatrix; |
|
32 class tree_constant; |
1
|
33 |
578
|
34 extern tree_constant do_unary_op (double d, tree_expression::type t); |
1
|
35 |
578
|
36 extern tree_constant do_unary_op (const Matrix& a, tree_expression::type t); |
164
|
37 |
578
|
38 extern tree_constant do_unary_op (const Complex& c, tree_expression::type t); |
1
|
39 |
164
|
40 extern tree_constant do_unary_op (const ComplexMatrix& a, |
578
|
41 tree_expression::type t); |
1
|
42 |
164
|
43 extern tree_constant do_binary_op (double a, double b, |
578
|
44 tree_expression::type t); |
164
|
45 |
|
46 extern tree_constant do_binary_op (double a, const Matrix& b, |
578
|
47 tree_expression::type t); |
1
|
48 |
164
|
49 extern tree_constant do_binary_op (double a, const Complex& b, |
578
|
50 tree_expression::type t); |
1
|
51 |
164
|
52 extern tree_constant do_binary_op (double a, const ComplexMatrix& b, |
578
|
53 tree_expression::type t); |
1
|
54 |
164
|
55 extern tree_constant do_binary_op (const Matrix& a, double b, |
578
|
56 tree_expression::type t); |
1
|
57 |
164
|
58 extern tree_constant do_binary_op (const Matrix& a, const Matrix& b, |
578
|
59 tree_expression::type t); |
1
|
60 |
164
|
61 extern tree_constant do_binary_op (const Matrix& a, const Complex& b, |
578
|
62 tree_expression::type t); |
1
|
63 |
164
|
64 extern tree_constant do_binary_op (const Matrix& a, const ComplexMatrix& b, |
578
|
65 tree_expression::type t); |
1
|
66 |
164
|
67 extern tree_constant do_binary_op (const Complex& a, double b, |
578
|
68 tree_expression::type t); |
1
|
69 |
164
|
70 extern tree_constant do_binary_op (const Complex& a, const Matrix& b, |
578
|
71 tree_expression::type t); |
1
|
72 |
164
|
73 extern tree_constant do_binary_op (const Complex& a, const Complex& b, |
578
|
74 tree_expression::type t); |
1
|
75 |
164
|
76 extern tree_constant do_binary_op (const Complex& a, const ComplexMatrix& b, |
578
|
77 tree_expression::type t); |
1
|
78 |
164
|
79 extern tree_constant do_binary_op (const ComplexMatrix& a, double b, |
578
|
80 tree_expression::type t); |
1
|
81 |
164
|
82 extern tree_constant do_binary_op (const ComplexMatrix& a, const Matrix& b, |
578
|
83 tree_expression::type t); |
1
|
84 |
164
|
85 extern tree_constant do_binary_op (const ComplexMatrix& a, const Complex& b, |
578
|
86 tree_expression::type t); |
1
|
87 |
164
|
88 extern tree_constant do_binary_op (const ComplexMatrix& a, |
|
89 const ComplexMatrix& b, |
578
|
90 tree_expression::type t); |
1
|
91 |
|
92 #endif |
|
93 |
|
94 /* |
|
95 ;;; Local Variables: *** |
|
96 ;;; mode: C++ *** |
|
97 ;;; page-delimiter: "^/\\*" *** |
|
98 ;;; End: *** |
|
99 */ |