26 #if ! defined (octave_pr_flt_fmt_h)
27 #define octave_pr_flt_fmt_h 1
29 #include "octave-config.h"
54 : m_fw (
w), m_ex (0), m_prec (p), m_fmt (
f), m_up (0), m_sp (0) { }
57 : m_fw (
w), m_ex (e), m_prec (p), m_fmt (
f), m_up (0), m_sp (0) { }
67 m_fmt = std::ios::scientific;
73 m_fmt = std::ios::fixed;
85 m_up = std::ios::uppercase;
116 m_sp = (tz ? std::ios::showpoint : 0);
122 return static_cast<std::ios::fmtflags
> (m_fmt | m_up | m_sp);
132 return m_fmt == std::ios::scientific;
137 return m_fmt == std::ios::fixed;
147 return m_up == std::ios::uppercase;
172 return m_sp == std::ios::showpoint;
175 template <
typename T>
179 template <
typename T>
183 template <
typename T>
218 : m_scale (
scale), m_real_fmt (real_fmt), m_imag_fmt (imag_fmt)
223 : m_scale (1.0), m_real_fmt (real_fmt), m_imag_fmt (imag_fmt)
240 m_real_fmt.precision (prec);
241 m_imag_fmt.precision (prec);
246 double m_scale = 1.0;
template OCTAVE_API std::ostream & operator<<(std::ostream &, const Array< bool > &)
void scale(Matrix &m, double x, double y, double z)
F77_RET_T const F77_DBLE const F77_DBLE * f
std::complex< double > w(std::complex< double > z, double relerr=0)
OCTINTERP_API void set_output_prec(int prec)
OCTINTERP_API int output_precision(void)