00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include "barray.cpp"
00027
00028 namespace PLib {
00029
00030 ostream&
00031 BasicArray<Complex>::print(ostream& os) const{
00032 const int iend = size();
00033
00034 for (int i = 0; i < iend; )
00035 {
00036 os << real(x[i]) << "+" << imag(x[i]) << "i" ;
00037 if ( (++i % wdth) == 0 )
00038 os << '\n';
00039 else
00040 os << " ";
00041 }
00042 os << '\n' ;
00043
00044 return os;
00045 }
00046
00047 #ifdef NO_IMPLICIT_TEMPLATES
00048 template class BasicArray<Complex> ;
00049 template void resizeBasicArray<Complex>(BasicArray<Complex>&,int) ;
00050 template int operator!=(const BasicArray<Complex>&,const BasicArray<Complex>&);
00051 template int operator==(const BasicArray<Complex>&,const BasicArray<Complex>&);
00052 template istream& operator>>(istream& is, BasicArray<Complex>& ary);
00053 template ostream& operator<<(ostream& os, const BasicArray<Complex>& ary);
00054
00055 #endif
00056
00057 }
00058
00059 #ifdef NO_IMPLICIT_TEMPLATES
00060 template double std::abs<double>(const std::complex<double> &);
00061 template Complex std::conj<double>(const Complex&);
00062 #endif
00063