14 #ifndef __INCLUDED_SCOPIRA_BASEKIT_COMPLEX_H__ 15 #define __INCLUDED_SCOPIRA_BASEKIT_COMPLEX_H__ 17 #include <scopira/basekit/narray.h> 19 template <
class T,
class ELE>
21 const std::complex<ELE> &el)
23 return o <<
'(' << el.real() <<
',' << el.imag() <<
')';
27 inline void scopira::basekit::print_element<std::complex<float> >(
scopira::tool::oflow_i &o, std::complex<float> el)
29 flow_printf(o,
" (%8.2f,%8.2f)", el.real(), el.imag());
33 inline void scopira::basekit::print_element<std::complex<double> >(
scopira::tool::oflow_i &o, std::complex<double> el)
35 flow_printf(o,
" (%8.2f,%8.2f)", el.real(), el.imag());