annotate src/arith-ops.h @ 1179:f070efd56c3d

[project @ 1995-03-23 21:45:33 by jwe]
author jwe
date Thu, 23 Mar 1995 21:45:33 +0000
parents dfe01093f657
children 611d403c7f3d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
526
a01a9db8ab69 [project @ 1994-07-20 18:46:24 by jwe]
jwe
parents: 383
diff changeset
1 // arith-ops.h -*- C++ -*-
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
2 /*
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
3
1009
dfe01093f657 [project @ 1995-01-04 04:05:12 by jwe]
jwe
parents: 578
diff changeset
4 Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
5
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
6 This file is part of Octave.
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
7
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
8 Octave is free software; you can redistribute it and/or modify it
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
9 under the terms of the GNU General Public License as published by the
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
10 Free Software Foundation; either version 2, or (at your option) any
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
11 later version.
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
12
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
13 Octave is distributed in the hope that it will be useful, but WITHOUT
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
16 for more details.
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
17
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
19 along with Octave; see the file COPYING. If not, write to the Free
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
20 Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
21
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
22 */
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
23
383
0b52c68ec81f [project @ 1994-03-09 21:19:44 by jwe]
jwe
parents: 240
diff changeset
24 #if !defined (octave_arith_ops_h)
0b52c68ec81f [project @ 1994-03-09 21:19:44 by jwe]
jwe
parents: 240
diff changeset
25 #define octave_arith_ops_h 1
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
26
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
27 #include "tree-expr.h"
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
28
164
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
29 class Complex;
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
30 class Matrix;
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
31 class ComplexMatrix;
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
32 class tree_constant;
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
33
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
34 extern tree_constant do_unary_op (double d, tree_expression::type t);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
35
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
36 extern tree_constant do_unary_op (const Matrix& a, tree_expression::type t);
164
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
37
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
38 extern tree_constant do_unary_op (const Complex& c, tree_expression::type t);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
39
164
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
40 extern tree_constant do_unary_op (const ComplexMatrix& a,
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
41 tree_expression::type t);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
42
164
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
43 extern tree_constant do_binary_op (double a, double b,
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
44 tree_expression::type t);
164
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
45
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
46 extern tree_constant do_binary_op (double a, const Matrix& b,
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
47 tree_expression::type t);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
48
164
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
49 extern tree_constant do_binary_op (double a, const Complex& b,
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
50 tree_expression::type t);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
51
164
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
52 extern tree_constant do_binary_op (double a, const ComplexMatrix& b,
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
53 tree_expression::type t);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
54
164
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
55 extern tree_constant do_binary_op (const Matrix& a, double b,
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
56 tree_expression::type t);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
57
164
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
58 extern tree_constant do_binary_op (const Matrix& a, const Matrix& b,
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
59 tree_expression::type t);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
60
164
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
61 extern tree_constant do_binary_op (const Matrix& a, const Complex& b,
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
62 tree_expression::type t);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
63
164
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
64 extern tree_constant do_binary_op (const Matrix& a, const ComplexMatrix& b,
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
65 tree_expression::type t);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
66
164
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
67 extern tree_constant do_binary_op (const Complex& a, double b,
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
68 tree_expression::type t);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
69
164
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
70 extern tree_constant do_binary_op (const Complex& a, const Matrix& b,
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
71 tree_expression::type t);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
72
164
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
73 extern tree_constant do_binary_op (const Complex& a, const Complex& b,
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
74 tree_expression::type t);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
75
164
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
76 extern tree_constant do_binary_op (const Complex& a, const ComplexMatrix& b,
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
77 tree_expression::type t);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
78
164
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
79 extern tree_constant do_binary_op (const ComplexMatrix& a, double b,
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
80 tree_expression::type t);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
81
164
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
82 extern tree_constant do_binary_op (const ComplexMatrix& a, const Matrix& b,
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
83 tree_expression::type t);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
84
164
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
85 extern tree_constant do_binary_op (const ComplexMatrix& a, const Complex& b,
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
86 tree_expression::type t);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
87
164
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
88 extern tree_constant do_binary_op (const ComplexMatrix& a,
e2c950dd96d2 [project @ 1993-10-18 19:32:00 by jwe]
jwe
parents: 1
diff changeset
89 const ComplexMatrix& b,
578
d169be9237fb [project @ 1994-08-03 20:06:54 by jwe]
jwe
parents: 526
diff changeset
90 tree_expression::type t);
1
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
91
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
92 #endif
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
93
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
94 /*
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
95 ;;; Local Variables: ***
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
96 ;;; mode: C++ ***
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
97 ;;; page-delimiter: "^/\\*" ***
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
98 ;;; End: ***
78fd87e624cb [project @ 1993-08-08 01:13:40 by jwe]
jwe
parents:
diff changeset
99 */