Mercurial > hg > octave-nkf
comparison liboctave/CmplxDET.h @ 457:3d4b4f0fa5ba
[project @ 1994-06-06 00:33:33 by jwe]
Initial revision
author | jwe |
---|---|
date | Mon, 06 Jun 1994 00:33:51 +0000 |
parents | |
children | 2ca256b77602 |
comparison
equal
deleted
inserted
replaced
456:a1b3aae0fbc3 | 457:3d4b4f0fa5ba |
---|---|
1 // -*- C++ -*- | |
2 /* | |
3 | |
4 Copyright (C) 1992, 1993, 1994 John W. Eaton | |
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 | |
24 #if !defined (octave_ComplexDET_h) | |
25 #define octave_ComplexDET_h 1 | |
26 | |
27 #if defined (__GNUG__) | |
28 #pragma interface | |
29 #endif | |
30 | |
31 class ostream; | |
32 | |
33 #include <Complex.h> | |
34 | |
35 extern "C++" { | |
36 | |
37 class ComplexDET | |
38 { | |
39 public: | |
40 | |
41 ComplexDET (void); | |
42 | |
43 ComplexDET (const ComplexDET& a); | |
44 | |
45 ComplexDET& operator = (const ComplexDET& a); | |
46 | |
47 int value_will_overflow (void) const; | |
48 int value_will_underflow (void) const; | |
49 Complex coefficient (void) const; | |
50 int exponent (void) const; | |
51 Complex value (void) const; | |
52 | |
53 friend ostream& operator << (ostream& os, const ComplexDET& a); | |
54 | |
55 private: | |
56 | |
57 ComplexDET (const Complex *d); | |
58 | |
59 Complex det [2]; | |
60 }; | |
61 | |
62 inline ComplexDET::ComplexDET (void) | |
63 { | |
64 } | |
65 | |
66 inline ComplexDET::ComplexDET (const ComplexDET& a) | |
67 { | |
68 det[0] = a.det[0]; | |
69 det[1] = a.det[1]; | |
70 } | |
71 | |
72 inline ComplexDET& ComplexDET::operator = (const ComplexDET& a) | |
73 { | |
74 det[0] = a.det[0]; | |
75 det[1] = a.det[1]; | |
76 return *this; | |
77 } | |
78 | |
79 inline ComplexDET::ComplexDET (const Complex *d) | |
80 { | |
81 det[0] = d[0]; | |
82 det[1] = d[1]; | |
83 } | |
84 | |
85 } // extern "C++" | |
86 | |
87 #endif | |
88 | |
89 /* | |
90 ;;; Local Variables: *** | |
91 ;;; mode: C++ *** | |
92 ;;; page-delimiter: "^/\\*" *** | |
93 ;;; End: *** | |
94 */ |