1 // I/O of complex numbers.
3 #ifndef _CL_COMPLEX_IO_H
4 #define _CL_COMPLEX_IO_H
6 #include "cln/number_io.h"
7 #include "cln/complex.h"
13 extern const cl_N read_complex (const cl_read_flags& flags, const char * string, const char * string_limit, const char * * end_of_parse);
14 extern const cl_N read_complex (std::istream& stream, const cl_read_flags& flags);
16 inline std::istream& operator>> (std::istream& stream, cl_N& result)
18 extern cl_read_flags cl_N_read_flags;
19 result = read_complex(stream,cl_N_read_flags);
26 // Gibt eine komplexe Zahl aus.
27 // print_complex(stream,z);
30 extern void print_complex (std::ostream& stream, const cl_print_flags& flags, const cl_N& z);
31 extern void print_complex (std::ostream& stream, const cl_print_number_flags& flags, const cl_N& z);
33 inline void fprint (std::ostream& stream, const cl_N& x)
35 extern cl_print_flags default_print_flags;
36 print_complex(stream,default_print_flags,x);
39 CL_DEFINE_PRINT_OPERATOR(cl_N)
43 #endif /* _CL_COMPLEX_IO_H */