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 c
& __doapl (c
*, ccr
);
36 template c
& __doaml (c
*, ccr
);
37 template c
& __doami (c
*, ccr
);
38 template c
& __doadv (c
*, ccr
);
42 template c
operator+ (ccr
, ccr
);
45 template c
operator+ (ccr
, f
);
48 template c
operator+ (f
, ccr
);
51 template c
operator- (ccr
, ccr
);
54 template c
operator- (ccr
, f
);
57 template c
operator- (f
, ccr
);
60 template c
operator* (ccr
, ccr
);
63 template c
operator* (ccr
, f
);
66 template c
operator* (f
, ccr
);
69 template c
operator/ (ccr
, ccr
);
72 template c
operator/ (ccr
, f
);
75 template c
operator/ (f
, ccr
);
78 template c
operator+ (ccr
);
81 template c
operator- (ccr
);
84 template bool operator== (ccr
, ccr
);
87 template bool operator== (ccr
, f
);
90 template bool operator== (f
, ccr
);
93 template bool operator!= (ccr
, ccr
);
96 template bool operator!= (ccr
, f
);
99 template bool operator!= (f
, ccr
);
102 template f
abs (ccr
);
105 template f
arg (ccr
);
108 template c
polar (f
, f
);
111 template c
conj (ccr
);
114 template f
norm (ccr
);
117 template c
cos (ccr
);
120 template c
cosh (ccr
);
123 template c
exp (ccr
);
126 template c
log (ccr
);
129 template c
pow (ccr
, ccr
);
132 template c
pow (ccr
, f
);
135 template c
pow (ccr
, int);
138 template c
pow (f
, ccr
);
141 template c
sin (ccr
);
144 template c
sinh (ccr
);
147 template c
sqrt (ccr
);
150 template istream
& operator>> (istream
&, complex<f
>&);
153 template ostream
& operator<< (ostream
&, const complex<f
>&);