26 #if ! defined (octave_pr_flt_fmt_h)
27 #define octave_pr_flt_fmt_h 1
29 #include "octave-config.h"
53 : m_fw (
w), m_ex (0), m_prec (p), m_fmt (
f), m_up (0), m_sp (0) { }
56 : m_fw (
w), m_ex (e), m_prec (p), m_fmt (
f), m_up (0), m_sp (0) { }
66 m_fmt = std::ios::scientific;
72 m_fmt = std::ios::fixed;
84 m_up = std::ios::uppercase;
115 m_sp = (tz ? std::ios::showpoint : 0);
121 return static_cast<std::ios::fmtflags
> (m_fmt | m_up | m_sp);
131 return m_fmt == std::ios::scientific;
136 return m_fmt == std::ios::fixed;
146 return m_up == std::ios::uppercase;
171 return m_sp == std::ios::showpoint;
174 template <
typename T>
178 template <
typename T>
182 template <
typename T>
216 : m_scale (
scale), m_real_fmt (real_fmt), m_imag_fmt (imag_fmt)
221 : m_scale (1.0), m_real_fmt (real_fmt), m_imag_fmt (imag_fmt)
238 m_real_fmt.precision (prec);
239 m_imag_fmt.precision (prec);
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)
int output_precision(void)
void set_output_prec(int prec)