1 // Instantiation file for the -*- C++ -*- complex number classes.
2 // Copyright (C) 1994 Free Software Foundation
11 typedef long double f
;
14 #if defined (MAIN) && defined (__GNUG__)
16 #pragma implementation "fcomplex"
19 #pragma implementation "dcomplex"
22 #pragma implementation "ldcomplex"
27 #define _G_NO_EXTERN_TEMPLATES
29 #include <std/complext.cc>
35 template class complex<f
>;
36 template c
& __doapl (c
*, ccr
);
37 template c
& __doaml (c
*, ccr
);
38 template c
& __doami (c
*, ccr
);
39 template c
& __doadv (c
*, ccr
);
43 template c
operator+ (ccr
, ccr
);
46 template c
operator+ (ccr
, f
);
49 template c
operator+ (f
, ccr
);
52 template c
operator- (ccr
, ccr
);
55 template c
operator- (ccr
, f
);
58 template c
operator- (f
, ccr
);
61 template c
operator* (ccr
, ccr
);
64 template c
operator* (ccr
, f
);
67 template c
operator* (f
, ccr
);
70 template c
operator/ (ccr
, ccr
);
73 template c
operator/ (ccr
, f
);
76 template c
operator/ (f
, ccr
);
79 template c
operator+ (ccr
);
82 template c
operator- (ccr
);
85 template bool operator== (ccr
, ccr
);
88 template bool operator== (ccr
, f
);
91 template bool operator== (f
, ccr
);
94 template bool operator!= (ccr
, ccr
);
97 template bool operator!= (ccr
, f
);
100 template bool operator!= (f
, ccr
);
103 template f
abs (ccr
);
106 template f
arg (ccr
);
109 template c
polar (f
, f
);
112 template c
conj (ccr
);
115 template f
norm (ccr
);
118 template c
cos (ccr
);
121 template c
cosh (ccr
);
124 template c
exp (ccr
);
127 template c
log (ccr
);
130 template c
pow (ccr
, ccr
);
133 template c
pow (ccr
, f
);
136 template c
pow (ccr
, int);
139 template c
pow (f
, ccr
);
142 template c
sin (ccr
);
145 template c
sinh (ccr
);
148 template c
sqrt (ccr
);
151 template istream
& operator>> (istream
&, complex<f
>&);
154 template ostream
& operator<< (ostream
&, complex<f
>);