GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <cfloat>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include "Array-util.h"
#include "CMatrix.h"
#include "Range.h"
#include "cmd-edit.h"
#include "dMatrix.h"
#include "lo-mappers.h"
#include "lo-math.h"
#include "mach-info.h"
#include "oct-cmplx.h"
#include "quit.h"
#include "str-vec.h"
#include "Cell.h"
#include "defun.h"
#include "error.h"
#include "gripes.h"
#include "oct-obj.h"
#include "oct-stream.h"
#include "pager.h"
#include "pr-output.h"
#include "sysdep.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
Go to the source code of this file.
Classes | |
union | equiv |
class | float_format |
class | octave_print_conv< T > |
class | octave_print_conv< octave_int8 > |
class | octave_print_conv< octave_uint8 > |
class | pr_engineering_float |
class | pr_formatted_float |
class | pr_rational_float |
Macros | |
#define | INSTANTIATE_ABS(T) template /* static */ T abs (T) |
#define | PRINT_CHAR_BITS(os, c) |
#define | PRINT_CHAR_BITS_SWAPPED(os, c) |
#define | PRINT_CONV(T1, T2) |
#define | PRINT_INT_ARRAY_INTERNAL(TYPE) |
#define | PRINT_INT_SCALAR_INTERNAL(TYPE) |
#define | SPECIALIZE_UABS(T) |
Functions | |
template<class T > | |
T | abs (T x) |
template signed char | abs (signed char) |
template short | abs (short) |
template int | abs (int) |
template long | abs (long) |
template<> | |
unsigned char | abs (unsigned char x) |
template<> | |
unsigned short | abs (unsigned short x) |
template<> | |
unsigned int | abs (unsigned int x) |
template<> | |
unsigned long | abs (unsigned long x) |
template<> | |
unsigned long long | abs (unsigned long long x) |
static int | calc_scale_exp (const int &x) |
static int | current_output_max_field_width (void) |
static int | current_output_precision (void) |
static int | engineering_exponent (const double &x) |
OCTAVE_EXPORT octave_value_list | F__compactformat__ (const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | F__formatstring__ (const octave_value_list &, int) |
OCTAVE_EXPORT octave_value_list | Fdisp (const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Ffdisp (const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Ffixed_point_format (const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Fformat (const octave_value_list &args, int) |
static std::string | format_string ("short") |
OCTAVE_EXPORT octave_value_list | Foutput_max_field_width (const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Foutput_precision (const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Fprint_empty_dimensions (const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Frats (const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Fsplit_long_rows (const octave_value_list &args, int nargout) |
static void | init_format_state (void) |
static int | num_digits (const double &x) |
void | octave_print_internal (std::ostream &, char, bool) |
void | octave_print_internal (std::ostream &os, double d, bool pr_as_read_syntax) |
void | octave_print_internal (std::ostream &os, const Matrix &m, bool pr_as_read_syntax, int extra_indent) |
void | octave_print_internal (std::ostream &os, const DiagMatrix &m, bool pr_as_read_syntax, int extra_indent) |
void | octave_print_internal (std::ostream &os, const NDArray &nda, bool pr_as_read_syntax, int extra_indent) |
void | octave_print_internal (std::ostream &os, const Complex &c, bool pr_as_read_syntax) |
void | octave_print_internal (std::ostream &os, const ComplexMatrix &cm, bool pr_as_read_syntax, int extra_indent) |
void | octave_print_internal (std::ostream &os, const ComplexDiagMatrix &cm, bool pr_as_read_syntax, int extra_indent) |
void | octave_print_internal (std::ostream &os, const PermMatrix &m, bool pr_as_read_syntax, int extra_indent) |
void | octave_print_internal (std::ostream &os, const ComplexNDArray &nda, bool pr_as_read_syntax, int extra_indent) |
void | octave_print_internal (std::ostream &os, bool d, bool pr_as_read_syntax) |
void | octave_print_internal (std::ostream &os, float d, bool pr_as_read_syntax) |
void | octave_print_internal (std::ostream &os, const FloatMatrix &m, bool pr_as_read_syntax, int extra_indent) |
void | octave_print_internal (std::ostream &os, const FloatDiagMatrix &m, bool pr_as_read_syntax, int extra_indent) |
void | octave_print_internal (std::ostream &os, const FloatNDArray &nda, bool pr_as_read_syntax, int extra_indent) |
void | octave_print_internal (std::ostream &os, const FloatComplex &c, bool pr_as_read_syntax) |
void | octave_print_internal (std::ostream &os, const FloatComplexMatrix &cm, bool pr_as_read_syntax, int extra_indent) |
void | octave_print_internal (std::ostream &os, const FloatComplexDiagMatrix &cm, bool pr_as_read_syntax, int extra_indent) |
void | octave_print_internal (std::ostream &os, const FloatComplexNDArray &nda, bool pr_as_read_syntax, int extra_indent) |
void | octave_print_internal (std::ostream &os, const Range &r, bool pr_as_read_syntax, int extra_indent) |
void | octave_print_internal (std::ostream &os, const boolMatrix &bm, bool pr_as_read_syntax, int extra_indent) |
void | octave_print_internal (std::ostream &os, const boolNDArray &nda, bool pr_as_read_syntax, int extra_indent) |
void | octave_print_internal (std::ostream &os, const charMatrix &chm, bool pr_as_read_syntax, int, bool pr_as_string) |
void | octave_print_internal (std::ostream &os, const charNDArray &nda, bool pr_as_read_syntax, int extra_indent, bool pr_as_string) |
void | octave_print_internal (std::ostream &os, const std::string &s, bool pr_as_read_syntax, int extra_indent) |
void | octave_print_internal (std::ostream &os, const Array< std::string > &nda, bool pr_as_read_syntax, int) |
OCTINTERP_API void | octave_print_internal (std::ostream &os, const octave_int< int8_t > &val, bool dummy) |
OCTINTERP_API void | octave_print_internal (std::ostream &os, const octave_int< uint8_t > &val, bool dummy) |
OCTINTERP_API void | octave_print_internal (std::ostream &os, const octave_int< int16_t > &val, bool dummy) |
OCTINTERP_API void | octave_print_internal (std::ostream &os, const octave_int< uint16_t > &val, bool dummy) |
OCTINTERP_API void | octave_print_internal (std::ostream &os, const octave_int< int32_t > &val, bool dummy) |
OCTINTERP_API void | octave_print_internal (std::ostream &os, const octave_int< uint32_t > &val, bool dummy) |
OCTINTERP_API void | octave_print_internal (std::ostream &os, const octave_int< int64_t > &val, bool dummy) |
OCTINTERP_API void | octave_print_internal (std::ostream &os, const octave_int< uint64_t > &val, bool dummy) |
OCTINTERP_API void | octave_print_internal (std::ostream &os, const intNDArray< octave_int8 > &nda, bool pr_as_read_syntax, int extra_indent) |
OCTINTERP_API void | octave_print_internal (std::ostream &os, const intNDArray< octave_uint8 > &nda, bool pr_as_read_syntax, int extra_indent) |
OCTINTERP_API void | octave_print_internal (std::ostream &os, const intNDArray< octave_int16 > &nda, bool pr_as_read_syntax, int extra_indent) |
OCTINTERP_API void | octave_print_internal (std::ostream &os, const intNDArray< octave_uint16 > &nda, bool pr_as_read_syntax, int extra_indent) |
OCTINTERP_API void | octave_print_internal (std::ostream &os, const intNDArray< octave_int32 > &nda, bool pr_as_read_syntax, int extra_indent) |
OCTINTERP_API void | octave_print_internal (std::ostream &os, const intNDArray< octave_uint32 > &nda, bool pr_as_read_syntax, int extra_indent) |
OCTINTERP_API void | octave_print_internal (std::ostream &os, const intNDArray< octave_int64 > &nda, bool pr_as_read_syntax, int extra_indent) |
OCTINTERP_API void | octave_print_internal (std::ostream &os, const intNDArray< octave_uint64 > &nda, bool pr_as_read_syntax, int extra_indent) |
void | octave_print_internal (std::ostream &, const Cell &, bool, int, bool) |
void | octave_print_internal (std::ostream &, const octave_value &, bool) |
template<class T > | |
void | octave_print_internal_template (std::ostream &os, const octave_int< T > &val, bool) |
template<class T > | |
void | octave_print_internal_template (std::ostream &os, const intNDArray< T > &nda, bool pr_as_read_syntax, int extra_indent) |
std::ostream & | operator<< (std::ostream &os, const pr_engineering_float &pef) |
std::ostream & | operator<< (std::ostream &os, const pr_formatted_float &pff) |
std::ostream & | operator<< (std::ostream &os, const pr_rational_float &prf) |
static void | pr_any_float (const float_format *fmt, std::ostream &os, double d, int fw=0) |
static void | pr_col_num_header (std::ostream &os, octave_idx_type total_width, int max_width, octave_idx_type lim, octave_idx_type col, int extra_indent) |
static void | pr_complex (std::ostream &os, const Complex &c, int r_fw=0, int i_fw=0, double scale=1.0) |
static void | pr_float (std::ostream &os, double d, int fw=0, double scale=1.0) |
static void | pr_imag_float (std::ostream &os, double d, int fw=0) |
template<class T > | |
void | pr_int (std::ostream &os, const T &d, int fw=0) |
template void | pr_int (std::ostream &, const octave_int8 &, int) |
template void | pr_int (std::ostream &, const octave_int16 &, int) |
template void | pr_int (std::ostream &, const octave_int32 &, int) |
template void | pr_int (std::ostream &, const octave_int64 &, int) |
template void | pr_int (std::ostream &, const octave_uint8 &, int) |
template void | pr_int (std::ostream &, const octave_uint16 &, int) |
template void | pr_int (std::ostream &, const octave_uint32 &, int) |
template void | pr_int (std::ostream &, const octave_uint64 &, int) |
static double | pr_max_internal (const Matrix &m) |
static double | pr_min_internal (const Matrix &m) |
template<class T > | |
void | pr_plus_format (std::ostream &os, const T &val) |
template<> | |
void | pr_plus_format (std::ostream &os, const Complex &c) |
static void | pr_scale_header (std::ostream &os, double scale) |
static void | print_empty_matrix (std::ostream &os, octave_idx_type nr, octave_idx_type nc, bool pr_as_read_syntax) |
static void | print_empty_nd_array (std::ostream &os, const dim_vector &dims, bool pr_as_read_syntax) |
template<typename NDA_T , typename ELT_T , typename MAT_T > | |
void | print_nd_array (std::ostream &os, const NDA_T &nda, bool pr_as_read_syntax) |
static std::string | rational_approx (double val, int len) |
static void | set_complex_format (int x_max, int x_min, int r_x, bool inf_or_nan, int int_only, int &r_fw, int &i_fw) |
static void | set_complex_matrix_format (int x_max, int x_min, int r_x_max, int r_x_min, bool inf_or_nan, int int_or_inf_or_nan, int &r_fw, int &i_fw) |
static void | set_format (double d, int &fw) |
static void | set_format (double d) |
static void | set_format (const Matrix &m, int &fw, double &scale) |
static void | set_format (const Matrix &m) |
static void | set_format (const Complex &c, int &r_fw, int &i_fw) |
static void | set_format (const Complex &c) |
static void | set_format (const ComplexMatrix &cm, int &r_fw, int &i_fw, double &scale) |
static void | set_format (const ComplexMatrix &cm) |
static void | set_format (const Range &r, int &fw, double &scale) |
static void | set_format (const Range &r) |
static void | set_format_style (int argc, const string_vector &argv) |
static void | set_output_prec_and_fw (int prec, int fw) |
static void | set_range_format (int x_max, int x_min, int all_ints, int &fw) |
static void | set_real_format (int digits, bool inf_or_nan, bool int_only, int &fw) |
static void | set_real_matrix_format (int x_max, int x_min, bool inf_or_nan, int int_or_inf_or_nan, int &fw) |
Variables | |
static bool | bank_format = false |
static int | bit_format = 0 |
static float_format * | curr_imag_fmt = 0 |
static float_format * | curr_real_fmt = 0 |
static bool | free_format = false |
static int | hex_format = 0 |
static bool | plus_format = false |
static std::string | plus_format_chars = "+- " |
static bool | print_big_e = false |
static bool | print_e = false |
static bool | print_eng = false |
static bool | print_g = false |
static bool | rat_format = false |
static int | rat_string_len = -1 |
bool | Vcompact_format = false |
static bool | Vfixed_point_format = false |
static int | Voutput_max_field_width = 10 |
static int | Voutput_precision = 5 |
bool | Vprint_empty_dimensions = true |
static bool | Vsplit_long_rows = true |
#define INSTANTIATE_ABS | ( | T | ) | template /* static */ T abs (T) |
Definition at line 3067 of file pr-output.cc.
#define PRINT_CHAR_BITS | ( | os, | |
c | |||
) |
Definition at line 1416 of file pr-output.cc.
Referenced by pr_any_float(), and pr_int().
#define PRINT_CHAR_BITS_SWAPPED | ( | os, | |
c | |||
) |
Definition at line 1434 of file pr-output.cc.
Referenced by pr_any_float(), and pr_int().
#define PRINT_CONV | ( | T1, | |
T2 | |||
) |
Definition at line 2977 of file pr-output.cc.
#define PRINT_INT_ARRAY_INTERNAL | ( | TYPE | ) |
Definition at line 3377 of file pr-output.cc.
#define PRINT_INT_SCALAR_INTERNAL | ( | TYPE | ) |
Definition at line 3132 of file pr-output.cc.
#define SPECIALIZE_UABS | ( | T | ) |
Definition at line 3076 of file pr-output.cc.
|
inline |
Definition at line 3062 of file pr-output.cc.
References x.
Referenced by SparseComplexMatrix::abs(), norm_accumulator_p< R >::accum(), norm_accumulator_mp< R >::accum(), norm_accumulator_2< R >::accum(), norm_accumulator_1< R >::accum(), norm_accumulator_inf< R >::accum(), norm_accumulator_minf< R >::accum(), alngam(), alnrel(), asinh(), atanh(), biry(), SparseComplexMatrix::bsolve(), cacon(), cairy(), casyi(), cbesh(), cbesi(), cbesj(), cbesy(), cbiry(), cbknu(), cbrt(), cbrtf(), cbuni(), cbunk(), ComplexMatrix::column_max(), FloatComplexMatrix::column_max(), ComplexMatrix::column_min(), FloatComplexMatrix::column_min(), csevl(), cuchk(), cunhj(), cuni1(), cuni2(), cunik(), cunk1(), cunk2(), cuoik(), d9gmit(), d9lgic(), d9lgit(), dasinh(), datanh(), dcnstr(), dcsevl(), ddaini(), ddajac(), ddanrm(), ddaspk(), ddasrt(), ddassl(), ddastp(), ddawts(), ddstp(), ddwnrm(), derf(), derfc(), dgamit(), dgamlm(), dgamma(), dgamr(), dheqr(), Sparse< T >::diag(), Array< T >::diag(), SparseComplexMatrix::dinverse(), dlngam(), dlnrel(), dmatd(), dpchim(), SparseComplexMatrix::dsolve(), dspigm(), EigsComplexNonSymmetricFunc(), EigsRealNonSymmetricFunc(), EigsRealSymmetricFunc(), elem_dual_p(), erf(), erfc(), exchqz(), expm1(), extended_gcd(), gamit(), gamlim(), gamln(), gamma(), gamr(), genmul(), axes::properties::get_axis_limits(), higham_subp(), ichol_t(), ignbin(), ignpoi(), ilu_crout(), ilu_tp(), initds(), inits(), install_mappers_fcns(), jcobi(), SparseComplexMatrix::ltsolve(), LuAminusSigmaB(), magform(), octave_sparse_complex_matrix::map(), octave_sparse_matrix::map(), octave_float_complex_matrix::map(), octave_complex_matrix::map(), octave_float_complex::map(), octave_complex::map(), octave_float_matrix::map(), octave_matrix::map(), octave_scalar::map(), octave_float_scalar::map(), ComplexRowVector::max(), FloatComplexRowVector::max(), SparseComplexMatrix::max(), ComplexColumnVector::max(), FloatComplexColumnVector::max(), ComplexRowVector::min(), FloatComplexRowVector::min(), SparseComplexMatrix::min(), ComplexColumnVector::min(), FloatComplexColumnVector::min(), min(), null(), octave_print_internal_template(), pchim(), DiagMatrix::pseudo_inverse(), FloatDiagMatrix::pseudo_inverse(), ComplexDiagMatrix::pseudo_inverse(), FloatComplexDiagMatrix::pseudo_inverse(), qagie(), qagpe(), qelg(), qk15i(), qk21(), qp(), r9gmit(), r9lgic(), r9lgit(), ComplexDiagMatrix::rcond(), FloatComplexDiagMatrix::rcond(), ComplexMatrix::row_max(), FloatComplexMatrix::row_max(), ComplexMatrix::row_min(), FloatComplexMatrix::row_min(), TerminalView::scrollImage(), select_dig(), sewset(), sexchqz(), sgamma(), signum(), simple_gcd(), sintdy(), slsode(), sprepj(), ssolsy(), sstode(), SparseComplexMatrix::tinverse(), axes::properties::update_axes_layout(), axes::properties::update_camera(), figure::properties::update_papersize(), axes::properties::update_ticklength(), SparseComplexMatrix::utsolve(), xabs(), xclange(), xermsg(), xgammainc(), xlog2(), xmax(), xmin(), xmod(), xrem(), xsetf(), xsgammainc(), xzlange(), zbesi(), zbesj(), and zbesy().
template signed char abs | ( | signed | char | ) |
template short abs | ( | short | ) |
template long long abs | ( | long | ) |
Definition at line 3084 of file pr-output.cc.
|
inline |
Definition at line 3085 of file pr-output.cc.
Definition at line 3086 of file pr-output.cc.
|
inline |
Definition at line 3087 of file pr-output.cc.
|
inline |
Definition at line 3088 of file pr-output.cc.
Definition at line 214 of file pr-output.cc.
Referenced by set_format().
|
static |
Definition at line 125 of file pr-output.cc.
References Voutput_max_field_width.
|
static |
Definition at line 131 of file pr-output.cc.
References Voutput_precision.
Definition at line 235 of file pr-output.cc.
Referenced by pr_engineering_float::exponent(), and num_digits().
OCTAVE_EXPORT octave_value_list F__compactformat__ | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 4085 of file pr-output.cc.
References SET_INTERNAL_VARIABLE.
Referenced by root_figure::properties::get_formatspacing(), and root_figure::properties::set_formatspacing().
OCTAVE_EXPORT octave_value_list F__formatstring__ | ( | const octave_value_list & | , |
int | |||
) |
Definition at line 4094 of file pr-output.cc.
References format_string(), and ovl().
Referenced by root_figure::properties::get_format().
OCTAVE_EXPORT octave_value_list Fdisp | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 3512 of file pr-output.cc.
References arg(), octave_value::is_dq_string(), octave_value_list::length(), octave_stdout, octave_value(), octave_value::print(), and print_usage().
OCTAVE_EXPORT octave_value_list Ffdisp | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3556 of file pr-output.cc.
References arg(), error(), error_state, octave_stream_list::get_file_number(), octave_value_list::length(), octave_stream_list::lookup(), octave_stream::output_stream(), octave_value::print(), and print_usage().
OCTAVE_EXPORT octave_value_list Ffixed_point_format | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 4135 of file pr-output.cc.
References SET_INTERNAL_VARIABLE.
Referenced by maximum_braindamage().
OCTAVE_EXPORT octave_value_list Fformat | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4064 of file pr-output.cc.
References error_state, octave_value_list::length(), and set_format_style().
Referenced by root_figure::properties::set_format().
|
static |
Referenced by F__formatstring__(), and set_format_style().
OCTAVE_EXPORT octave_value_list Foutput_max_field_width | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 4221 of file pr-output.cc.
References max(), and SET_INTERNAL_VARIABLE_WITH_LIMITS.
OCTAVE_EXPORT octave_value_list Foutput_precision | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 4239 of file pr-output.cc.
References max(), and SET_INTERNAL_VARIABLE_WITH_LIMITS.
OCTAVE_EXPORT octave_value_list Fprint_empty_dimensions | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 4165 of file pr-output.cc.
References SET_INTERNAL_VARIABLE.
Referenced by maximum_braindamage().
OCTAVE_EXPORT octave_value_list Frats | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 3426 of file pr-output.cc.
References arg(), error(), error_state, octave_value::is_numeric_type(), octave_value::length(), octave_value::print(), print_usage(), action_container::protect_var(), and rat_format.
OCTAVE_EXPORT octave_value_list Fsplit_long_rows | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 4204 of file pr-output.cc.
References SET_INTERNAL_VARIABLE.
|
static |
Definition at line 3614 of file pr-output.cc.
References bank_format, free_format, plus_format, print_big_e, print_e, print_eng, print_g, rat_format, and Vcompact_format.
Referenced by set_format_style().
Definition at line 253 of file pr-output.cc.
References engineering_exponent(), floor(), and print_eng.
Referenced by set_format().
Definition at line 1715 of file pr-output.cc.
References panic_impossible.
Referenced by Fqz(), octave_print_internal(), print_DASPK_options(), print_DASRT_options(), print_DASSL_options(), print_LSODE_options(), octave_base_int_matrix< T >::print_raw(), octave_fcn_inline::print_raw(), octave_base_scalar< ST >::print_raw(), octave_char_matrix_str::print_raw(), octave_char_matrix::print_raw(), octave_base_sparse< T >::print_raw(), octave_fcn_handle::print_raw(), octave_float_complex_matrix::print_raw(), octave_complex_matrix::print_raw(), octave_float_matrix::print_raw(), octave_base_diag< DMT, MT >::print_raw(), octave_perm_matrix::print_raw(), octave_bool_matrix::print_raw(), octave_matrix::print_raw(), octave_range::print_raw(), octave_base_scalar< ST >::short_disp(), and octave_base_matrix< MT >::short_disp().
Definition at line 1721 of file pr-output.cc.
References d, free_format, plus_format, pr_float(), pr_plus_format(), and set_format().
void octave_print_internal | ( | std::ostream & | os, |
const Matrix & | m, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 1739 of file pr-output.cc.
References Array< T >::columns(), free_format, plus_format, pr_col_num_header(), pr_float(), pr_plus_format(), pr_scale_header(), print_empty_matrix(), Array< T >::rows(), scale(), set_format(), command_editor::terminal_cols(), and Vsplit_long_rows.
void octave_print_internal | ( | std::ostream & | os, |
const DiagMatrix & | m, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 1875 of file pr-output.cc.
References DiagArray2< T >::columns(), MDiagArray2< T >::diag(), free_format, plus_format, pr_col_num_header(), pr_float(), pr_plus_format(), pr_scale_header(), print_empty_matrix(), DiagArray2< T >::rows(), scale(), set_format(), command_editor::terminal_cols(), Vcompact_format, and Vsplit_long_rows.
void octave_print_internal | ( | std::ostream & | os, |
const NDArray & | nda, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2099 of file pr-output.cc.
References Array< T >::ndims(), and octave_print_internal().
Definition at line 2137 of file pr-output.cc.
References free_format, plus_format, pr_complex(), pr_plus_format(), and set_format().
void octave_print_internal | ( | std::ostream & | os, |
const ComplexMatrix & | cm, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2155 of file pr-output.cc.
References bank_format, bit_format, Array< T >::columns(), free_format, plus_format, pr_col_num_header(), pr_complex(), pr_plus_format(), pr_scale_header(), print_empty_matrix(), rat_format, Array< T >::rows(), scale(), set_format(), command_editor::terminal_cols(), and Vsplit_long_rows.
void octave_print_internal | ( | std::ostream & | os, |
const ComplexDiagMatrix & | cm, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2293 of file pr-output.cc.
References bank_format, bit_format, DiagArray2< T >::columns(), MDiagArray2< T >::diag(), free_format, plus_format, pr_col_num_header(), pr_complex(), pr_plus_format(), pr_scale_header(), print_empty_matrix(), rat_format, DiagArray2< T >::rows(), scale(), set_format(), command_editor::terminal_cols(), Vcompact_format, and Vsplit_long_rows.
void octave_print_internal | ( | std::ostream & | os, |
const PermMatrix & | m, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2442 of file pr-output.cc.
References PermMatrix::col_perm_vec(), PermMatrix::columns(), free_format, plus_format, pr_col_num_header(), pr_plus_format(), print_empty_matrix(), PermMatrix::rows(), command_editor::terminal_cols(), Vcompact_format, and Vsplit_long_rows.
void octave_print_internal | ( | std::ostream & | os, |
const ComplexNDArray & | nda, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2576 of file pr-output.cc.
References Array< T >::ndims(), and octave_print_internal().
Definition at line 2595 of file pr-output.cc.
References octave_print_internal().
Definition at line 2603 of file pr-output.cc.
References octave_print_internal().
void octave_print_internal | ( | std::ostream & | os, |
const FloatMatrix & | m, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2609 of file pr-output.cc.
References octave_print_internal().
void octave_print_internal | ( | std::ostream & | os, |
const FloatDiagMatrix & | m, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2616 of file pr-output.cc.
References octave_print_internal().
void octave_print_internal | ( | std::ostream & | os, |
const FloatNDArray & | nda, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2623 of file pr-output.cc.
References octave_print_internal().
void octave_print_internal | ( | std::ostream & | os, |
const FloatComplex & | c, | ||
bool | pr_as_read_syntax | ||
) |
Definition at line 2630 of file pr-output.cc.
References octave_print_internal().
void octave_print_internal | ( | std::ostream & | os, |
const FloatComplexMatrix & | cm, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2637 of file pr-output.cc.
References octave_print_internal().
void octave_print_internal | ( | std::ostream & | os, |
const FloatComplexDiagMatrix & | cm, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2645 of file pr-output.cc.
References octave_print_internal().
void octave_print_internal | ( | std::ostream & | os, |
const FloatComplexNDArray & | nda, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2653 of file pr-output.cc.
References octave_print_internal().
void octave_print_internal | ( | std::ostream & | os, |
const Range & | r, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2661 of file pr-output.cc.
References Range::base(), free_format, Range::inc(), Range::limit(), Range::nelem(), plus_format, pr_col_num_header(), pr_float(), pr_plus_format(), pr_scale_header(), scale(), set_format(), command_editor::terminal_cols(), and Vsplit_long_rows.
void octave_print_internal | ( | std::ostream & | os, |
const boolMatrix & | bm, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2776 of file pr-output.cc.
References octave_print_internal().
void octave_print_internal | ( | std::ostream & | os, |
const boolNDArray & | nda, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2785 of file pr-output.cc.
References Array< T >::ndims(), octave_print_internal(), and print_nd_array().
void octave_print_internal | ( | std::ostream & | os, |
const charMatrix & | chm, | ||
bool | pr_as_read_syntax, | ||
int | , | ||
bool | pr_as_string | ||
) |
Definition at line 2805 of file pr-output.cc.
References charMatrix::row_as_string(), Array< T >::rows(), and undo_string_escapes().
void octave_print_internal | ( | std::ostream & | os, |
const charNDArray & | nda, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent, | ||
bool | pr_as_string | ||
) |
Definition at line 2852 of file pr-output.cc.
References Array< T >::ndims(), and octave_print_internal().
void octave_print_internal | ( | std::ostream & | os, |
const std::string & | s, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2872 of file pr-output.cc.
References octave_print_internal().
void octave_print_internal | ( | std::ostream & | os, |
const Array< std::string > & | nda, | ||
bool | pr_as_read_syntax, | ||
int | |||
) |
Definition at line 2881 of file pr-output.cc.
References Array< T >::dims(), increment_index(), Array< T >::index(), Array< T >::is_empty(), Array< T >::length(), Array< T >::ndims(), print_empty_nd_array(), ra_idx, and Vcompact_format.
OCTINTERP_API void octave_print_internal | ( | std::ostream & | os, |
const octave_int< int8_t > & | val, | ||
bool | dummy | ||
) |
Definition at line 3139 of file pr-output.cc.
OCTINTERP_API void octave_print_internal | ( | std::ostream & | os, |
const octave_int< uint8_t > & | val, | ||
bool | dummy | ||
) |
Definition at line 3140 of file pr-output.cc.
OCTINTERP_API void octave_print_internal | ( | std::ostream & | os, |
const octave_int< int16_t > & | val, | ||
bool | dummy | ||
) |
Definition at line 3141 of file pr-output.cc.
OCTINTERP_API void octave_print_internal | ( | std::ostream & | os, |
const octave_int< uint16_t > & | val, | ||
bool | dummy | ||
) |
Definition at line 3142 of file pr-output.cc.
OCTINTERP_API void octave_print_internal | ( | std::ostream & | os, |
const octave_int< int32_t > & | val, | ||
bool | dummy | ||
) |
Definition at line 3143 of file pr-output.cc.
OCTINTERP_API void octave_print_internal | ( | std::ostream & | os, |
const octave_int< uint32_t > & | val, | ||
bool | dummy | ||
) |
Definition at line 3144 of file pr-output.cc.
OCTINTERP_API void octave_print_internal | ( | std::ostream & | os, |
const octave_int< int64_t > & | val, | ||
bool | dummy | ||
) |
Definition at line 3145 of file pr-output.cc.
OCTINTERP_API void octave_print_internal | ( | std::ostream & | os, |
const octave_int< uint64_t > & | val, | ||
bool | dummy | ||
) |
Definition at line 3146 of file pr-output.cc.
OCTINTERP_API void octave_print_internal | ( | std::ostream & | os, |
const intNDArray< octave_int8 > & | nda, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 3385 of file pr-output.cc.
OCTINTERP_API void octave_print_internal | ( | std::ostream & | os, |
const intNDArray< octave_uint8 > & | nda, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 3386 of file pr-output.cc.
OCTINTERP_API void octave_print_internal | ( | std::ostream & | os, |
const intNDArray< octave_int16 > & | nda, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 3387 of file pr-output.cc.
OCTINTERP_API void octave_print_internal | ( | std::ostream & | os, |
const intNDArray< octave_uint16 > & | nda, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 3388 of file pr-output.cc.
OCTINTERP_API void octave_print_internal | ( | std::ostream & | os, |
const intNDArray< octave_int32 > & | nda, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 3389 of file pr-output.cc.
OCTINTERP_API void octave_print_internal | ( | std::ostream & | os, |
const intNDArray< octave_uint32 > & | nda, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 3390 of file pr-output.cc.
OCTINTERP_API void octave_print_internal | ( | std::ostream & | os, |
const intNDArray< octave_int64 > & | nda, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 3391 of file pr-output.cc.
OCTINTERP_API void octave_print_internal | ( | std::ostream & | os, |
const intNDArray< octave_uint64 > & | nda, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 3392 of file pr-output.cc.
Definition at line 3395 of file pr-output.cc.
References panic_impossible.
void octave_print_internal | ( | std::ostream & | , |
const octave_value & | , | ||
bool | |||
) |
Definition at line 3401 of file pr-output.cc.
References panic_impossible.
void octave_print_internal_template | ( | std::ostream & | os, |
const octave_int< T > & | val, | ||
bool | |||
) |
Definition at line 3116 of file pr-output.cc.
References free_format, plus_format, pr_int(), and pr_plus_format().
Referenced by octave_print_internal_template().
|
inline |
Definition at line 3150 of file pr-output.cc.
References abs(), bank_format, floor(), free_format, increment_index(), dim_vector::numel(), octave_print_internal_template(), plus_format, pr_col_num_header(), pr_int(), pr_plus_format(), print_empty_nd_array(), ra_idx, rat_format, command_editor::terminal_cols(), Vcompact_format, and Vsplit_long_rows.
std::ostream& operator<< | ( | std::ostream & | os, |
const pr_engineering_float & | pef | ||
) |
Definition at line 284 of file pr-output.cc.
References float_format::ex, pr_engineering_float::exponent(), pr_engineering_float::f, float_format::fmt, float_format::fw, pr_engineering_float::mantissa(), float_format::prec, float_format::sp, and float_format::up.
std::ostream& operator<< | ( | std::ostream & | os, |
const pr_formatted_float & | pff | ||
) |
Definition at line 327 of file pr-output.cc.
References pr_formatted_float::f, float_format::fmt, float_format::fw, float_format::prec, float_format::sp, float_format::up, and pr_formatted_float::val.
std::ostream& operator<< | ( | std::ostream & | os, |
const pr_rational_float & | prf | ||
) |
Definition at line 467 of file pr-output.cc.
References pr_rational_float::f, float_format::fmt, float_format::fw, rational_approx(), float_format::sp, float_format::up, and pr_rational_float::val.
|
static |
Definition at line 1453 of file pr-output.cc.
References d, equiv::d, oct_mach_info::flt_fmt_ieee_big_endian, equiv::i, oct_mach_info::native_float_format(), octave_is_NA(), PRINT_CHAR_BITS, PRINT_CHAR_BITS_SWAPPED, print_eng, rat_format, xisinf(), and xisnan().
Referenced by pr_float(), and pr_imag_float().
|
static |
Definition at line 1671 of file pr-output.cc.
References Vcompact_format, and Vsplit_long_rows.
Referenced by octave_print_internal(), and octave_print_internal_template().
|
static |
Definition at line 1581 of file pr-output.cc.
References bank_format, lo_ieee_signbit, pr_float(), pr_imag_float(), print_g, scale(), and Vfixed_point_format.
Referenced by octave_print_internal().
Definition at line 1566 of file pr-output.cc.
References pr_any_float(), print_g, scale(), and Vfixed_point_format.
Referenced by octave_print_internal(), and pr_complex().
Definition at line 1575 of file pr-output.cc.
References pr_any_float().
Referenced by pr_complex().
|
inline |
Definition at line 2993 of file pr-output.cc.
References bank_format, PRINT_CHAR_BITS, PRINT_CHAR_BITS_SWAPPED, and oct_mach_info::words_big_endian().
Referenced by octave_print_internal_template().
template void pr_int | ( | std::ostream & | , |
const octave_int8 & | , | ||
int | |||
) |
template void pr_int | ( | std::ostream & | , |
const octave_int16 & | , | ||
int | |||
) |
template void pr_int | ( | std::ostream & | , |
const octave_int32 & | , | ||
int | |||
) |
template void pr_int | ( | std::ostream & | , |
const octave_int64 & | , | ||
int | |||
) |
template void pr_int | ( | std::ostream & | , |
const octave_uint8 & | , | ||
int | |||
) |
template void pr_int | ( | std::ostream & | , |
const octave_uint16 & | , | ||
int | |||
) |
template void pr_int | ( | std::ostream & | , |
const octave_uint32 & | , | ||
int | |||
) |
template void pr_int | ( | std::ostream & | , |
const octave_uint64 & | , | ||
int | |||
) |
Definition at line 496 of file pr-output.cc.
References Array< T >::columns(), max(), Array< T >::rows(), pr_rational_float::val, and xfinite().
Referenced by set_format().
Definition at line 525 of file pr-output.cc.
References Array< T >::columns(), max(), Array< T >::rows(), pr_rational_float::val, and xfinite().
Referenced by set_format().
|
inline |
Definition at line 1704 of file pr-output.cc.
References plus_format_chars.
Referenced by octave_print_internal(), octave_print_internal_template(), and pr_plus_format().
|
inline |
Definition at line 2118 of file pr-output.cc.
References pr_plus_format().
|
static |
Definition at line 1653 of file pr-output.cc.
References left, print_g, Vcompact_format, and Vfixed_point_format.
Referenced by octave_print_internal().
|
static |
Definition at line 1614 of file pr-output.cc.
References Vprint_empty_dimensions.
Referenced by octave_print_internal().
|
static |
Definition at line 1636 of file pr-output.cc.
References dim_vector::any_zero(), dim_vector::str(), and Vprint_empty_dimensions.
Referenced by octave_print_internal(), octave_print_internal_template(), and print_nd_array().
void print_nd_array | ( | std::ostream & | os, |
const NDA_T & | nda, | ||
bool | pr_as_read_syntax | ||
) |
Definition at line 2023 of file pr-output.cc.
References increment_index(), print_empty_nd_array(), octave_value::print_name_tag(), octave_value::print_raw(), octave_value::print_with_name(), and ra_idx.
Referenced by octave_print_internal().
Definition at line 346 of file pr-output.cc.
References d, D_NINT(), max(), min(), xisinf(), xisnan(), and xround().
Referenced by operator<<().
|
static |
Definition at line 839 of file pr-output.cc.
References bank_format, print_big_e, print_e, print_eng, print_g, rat_format, float_format::uppercase(), and Voutput_precision.
Referenced by set_format().
|
static |
Definition at line 1038 of file pr-output.cc.
References bank_format, print_big_e, print_e, print_eng, print_g, rat_format, float_format::uppercase(), Vfixed_point_format, Voutput_max_field_width, and Voutput_precision.
Referenced by set_format().
Definition at line 651 of file pr-output.cc.
References d, D_NINT(), free_format, num_digits(), set_real_format(), xisinf(), and xisnan().
Referenced by octave_print_internal(), root_figure::properties::set(), and set_format().
|
inlinestatic |
Definition at line 671 of file pr-output.cc.
References set_format().
Definition at line 804 of file pr-output.cc.
References Matrix::abs(), NDArray::all_elements_are_int_or_inf_or_nan(), NDArray::any_element_is_inf_or_nan(), calc_scale_exp(), free_format, num_digits(), pow(), pr_max_internal(), pr_min_internal(), and set_real_matrix_format().
|
inlinestatic |
Definition at line 831 of file pr-output.cc.
References scale(), and set_format().
Definition at line 992 of file pr-output.cc.
References D_NINT(), free_format, num_digits(), set_complex_format(), xfinite(), xisinf(), and xisnan().
|
inlinestatic |
Definition at line 1031 of file pr-output.cc.
References set_format().
|
static |
Definition at line 1205 of file pr-output.cc.
References Matrix::abs(), NDArray::all_elements_are_int_or_inf_or_nan(), ComplexNDArray::any_element_is_inf_or_nan(), calc_scale_exp(), free_format, imag(), num_digits(), pow(), pr_max_internal(), pr_min_internal(), real(), and set_complex_matrix_format().
|
inlinestatic |
Definition at line 1248 of file pr-output.cc.
References scale(), and set_format().
Definition at line 1369 of file pr-output.cc.
References Range::all_elements_are_ints(), Range::base(), calc_scale_exp(), free_format, Range::limit(), num_digits(), pow(), and set_range_format().
|
inlinestatic |
Definition at line 1403 of file pr-output.cc.
References scale(), and set_format().
|
static |
Definition at line 3639 of file pr-output.cc.
References string_vector::append(), arg(), bank_format, error(), format_string(), free_format, init_format_state(), plus_format, plus_format_chars, print_big_e, print_e, print_eng, print_g, rat_format, set_output_prec_and_fw(), and Vcompact_format.
Referenced by Fformat().
Definition at line 3630 of file pr-output.cc.
Referenced by set_format_style().
Definition at line 1256 of file pr-output.cc.
References bank_format, print_big_e, print_e, print_eng, print_g, rat_format, float_format::uppercase(), Vfixed_point_format, Voutput_max_field_width, and Voutput_precision.
Referenced by set_format().
Definition at line 556 of file pr-output.cc.
References bank_format, print_big_e, print_e, print_eng, print_g, rat_format, float_format::uppercase(), and Voutput_precision.
Referenced by set_format().
|
static |
Definition at line 678 of file pr-output.cc.
References bank_format, print_big_e, print_e, print_eng, print_g, rat_format, float_format::uppercase(), Vfixed_point_format, Voutput_max_field_width, and Voutput_precision.
Referenced by set_format().
|
static |
Definition at line 97 of file pr-output.cc.
Referenced by init_format_state(), octave_print_internal(), octave_print_internal_template(), pr_complex(), pr_int(), set_complex_format(), set_complex_matrix_format(), set_format_style(), set_range_format(), set_real_format(), and set_real_matrix_format().
|
static |
Definition at line 103 of file pr-output.cc.
Referenced by octave_print_internal().
|
static |
Definition at line 493 of file pr-output.cc.
|
static |
Definition at line 490 of file pr-output.cc.
|
static |
Definition at line 82 of file pr-output.cc.
Referenced by init_format_state(), octave_print_internal(), octave_print_internal_template(), set_format(), and set_format_style().
|
static |
Definition at line 100 of file pr-output.cc.
|
static |
Definition at line 85 of file pr-output.cc.
Referenced by init_format_state(), octave_print_internal(), octave_print_internal_template(), and set_format_style().
|
static |
Definition at line 88 of file pr-output.cc.
Referenced by pr_plus_format(), and set_format_style().
|
static |
Definition at line 115 of file pr-output.cc.
Referenced by init_format_state(), set_complex_format(), set_complex_matrix_format(), set_format_style(), set_range_format(), set_real_format(), and set_real_matrix_format().
|
static |
Definition at line 109 of file pr-output.cc.
Referenced by init_format_state(), set_complex_format(), set_complex_matrix_format(), set_format_style(), set_range_format(), set_real_format(), and set_real_matrix_format().
|
static |
Definition at line 118 of file pr-output.cc.
Referenced by calc_scale_exp(), init_format_state(), num_digits(), pr_any_float(), set_complex_format(), set_complex_matrix_format(), set_format_style(), set_range_format(), set_real_format(), and set_real_matrix_format().
|
static |
Definition at line 112 of file pr-output.cc.
Referenced by init_format_state(), pr_complex(), pr_float(), pr_scale_header(), set_complex_format(), set_complex_matrix_format(), set_format_style(), set_range_format(), set_real_format(), and set_real_matrix_format().
|
static |
Definition at line 91 of file pr-output.cc.
Referenced by Frats(), init_format_state(), octave_print_internal(), octave_print_internal_template(), pr_any_float(), set_complex_format(), set_complex_matrix_format(), set_format_style(), set_range_format(), set_real_format(), and set_real_matrix_format().
|
static |
Definition at line 94 of file pr-output.cc.
bool Vcompact_format = false |
Definition at line 106 of file pr-output.cc.
Referenced by init_format_state(), octave_print_internal(), octave_print_internal_template(), pr_col_num_header(), pr_scale_header(), octave_class::print_name_tag(), octave_range::print_name_tag(), octave_base_value::print_name_tag(), octave_scalar_struct::print_raw(), octave_base_value::print_with_name(), and set_format_style().
|
static |
Definition at line 63 of file pr-output.cc.
Referenced by pr_complex(), pr_float(), pr_scale_header(), set_complex_matrix_format(), set_range_format(), and set_real_matrix_format().
|
static |
Definition at line 67 of file pr-output.cc.
Referenced by current_output_max_field_width(), set_complex_matrix_format(), set_range_format(), and set_real_matrix_format().
|
static |
Definition at line 71 of file pr-output.cc.
Referenced by current_output_precision(), set_complex_format(), set_complex_matrix_format(), set_range_format(), set_real_format(), and set_real_matrix_format().
bool Vprint_empty_dimensions = true |
Definition at line 75 of file pr-output.cc.
Referenced by print_empty_matrix(), print_empty_nd_array(), and octave_cell::print_raw().
|
static |
Definition at line 79 of file pr-output.cc.
Referenced by octave_print_internal(), octave_print_internal_template(), and pr_col_num_header().