GNU Octave
3.8.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 | 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) |
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 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) |
void | octave_print_internal (std::ostream &, const Cell &, bool, int, bool) |
void | octave_print_internal (std::ostream &, const octave_value &, bool pr_as_read_syntax) |
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) |
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 3056 of file pr-output.cc.
#define PRINT_CHAR_BITS | ( | os, | |
c | |||
) |
Definition at line 1403 of file pr-output.cc.
Referenced by pr_any_float(), and pr_int().
#define PRINT_CHAR_BITS_SWAPPED | ( | os, | |
c | |||
) |
Definition at line 1421 of file pr-output.cc.
Referenced by pr_any_float(), and pr_int().
#define PRINT_CONV | ( | T1, | |
T2 | |||
) |
Definition at line 2966 of file pr-output.cc.
#define PRINT_INT_ARRAY_INTERNAL | ( | TYPE | ) |
Definition at line 3366 of file pr-output.cc.
#define PRINT_INT_SCALAR_INTERNAL | ( | TYPE | ) |
Definition at line 3121 of file pr-output.cc.
#define SPECIALIZE_UABS | ( | T | ) |
|
inline |
Definition at line 3051 of file pr-output.cc.
References x.
Referenced by 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(), 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(), dlngam(), dlnrel(), dmatd(), dpchim(), 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(), ignbin(), ignpoi(), 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(), SparseComplexMatrix::max(), FloatComplexRowVector::max(), ComplexColumnVector::max(), FloatComplexColumnVector::max(), ComplexRowVector::min(), FloatComplexRowVector::min(), SparseComplexMatrix::min(), ComplexColumnVector::min(), FloatComplexColumnVector::min(), min(), nan_ascending_compare(), nan_descending_compare(), null(), octave_print_internal_template(), pchim(), qagie(), qagpe(), qelg(), qk15i(), qk21(), qp(), r9gmit(), r9lgic(), r9lgit(), 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 3073 of file pr-output.cc.
|
inline |
Definition at line 3074 of file pr-output.cc.
Definition at line 3075 of file pr-output.cc.
|
inline |
Definition at line 3076 of file pr-output.cc.
|
inline |
Definition at line 3077 of file pr-output.cc.
Definition at line 214 of file pr-output.cc.
Referenced by set_format().
Definition at line 125 of file pr-output.cc.
References Voutput_max_field_width.
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 Fdisp | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 3496 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 3537 of file pr-output.cc.
References error(), error_state, octave_stream_list::get_file_number(), octave_value_list::length(), octave_stream_list::lookup(), octave_stream::output_stream(), and print_usage().
OCTAVE_EXPORT octave_value_list Ffixed_point_format | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 4010 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 3960 of file pr-output.cc.
References error_state, octave_value_list::length(), and set_format_style().
OCTAVE_EXPORT octave_value_list Foutput_max_field_width | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 4094 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 4112 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 4039 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 3412 of file pr-output.cc.
References arg(), error(), error_state, octave_value::is_numeric_type(), octave_value::length(), 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 4077 of file pr-output.cc.
References SET_INTERNAL_VARIABLE.
Definition at line 3593 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 1702 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 1708 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 1726 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 1862 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 2086 of file pr-output.cc.
References NDArray::matrix_value(), Array< T >::ndims(), and octave_print_internal().
OCTINTERP_API void octave_print_internal | ( | std::ostream & | os, |
const Complex & | c, | ||
bool | pr_as_read_syntax | ||
) |
Definition at line 2124 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 2142 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 2280 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 2429 of file pr-output.cc.
References PermMatrix::columns(), free_format, PermMatrix::is_col_perm(), plus_format, pr_col_num_header(), pr_plus_format(), print_empty_matrix(), PermMatrix::pvec(), 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 2565 of file pr-output.cc.
References ComplexNDArray::matrix_value(), Array< T >::ndims(), and octave_print_internal().
Definition at line 2584 of file pr-output.cc.
References octave_print_internal().
Definition at line 2592 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 2598 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 2605 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 2612 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 2626 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 2634 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 2642 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 2650 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 2765 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 2774 of file pr-output.cc.
References boolNDArray::matrix_value(), 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 2794 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 2841 of file pr-output.cc.
References charNDArray::matrix_value(), 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 2861 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 2870 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(), and Vcompact_format.
OCTINTERP_API void octave_print_internal | ( | std::ostream & | os, |
const octave_int< int8_t > & | val, | ||
bool | dummy | ||
) |
Definition at line 3128 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 3129 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 3130 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 3131 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 3132 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 3133 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 3134 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 3135 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 3374 of file pr-output.cc.
Definition at line 3384 of file pr-output.cc.
References panic_impossible.
void octave_print_internal | ( | std::ostream & | , |
const octave_value & | , | ||
bool | pr_as_read_syntax | ||
) |
Definition at line 3390 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 3105 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 3139 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(), 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 452 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 1440 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 1658 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 1568 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 1553 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 1562 of file pr-output.cc.
References pr_any_float().
Referenced by pr_complex().
Definition at line 2982 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 | |||
) |
Definition at line 481 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 510 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 1691 of file pr-output.cc.
References plus_format_chars.
Referenced by octave_print_internal(), octave_print_internal_template(), and pr_plus_format().
Definition at line 2105 of file pr-output.cc.
References pr_plus_format().
Definition at line 1640 of file pr-output.cc.
References left, print_g, Vcompact_format, and Vfixed_point_format.
Referenced by octave_print_internal().
|
static |
Definition at line 1601 of file pr-output.cc.
References Vprint_empty_dimensions.
Referenced by octave_print_internal().
|
static |
Definition at line 1623 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 2010 of file pr-output.cc.
References increment_index(), print_empty_nd_array(), octave_value::print_name_tag(), octave_value::print_raw(), and octave_value::print_with_name().
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 826 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 1025 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 638 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().
Definition at line 658 of file pr-output.cc.
References set_format().
Definition at line 791 of file pr-output.cc.
References Matrix::abs(), Matrix::all_elements_are_int_or_inf_or_nan(), Matrix::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().
Definition at line 818 of file pr-output.cc.
References scale(), and set_format().
Definition at line 979 of file pr-output.cc.
References D_NINT(), free_format, num_digits(), set_complex_format(), xfinite(), xisinf(), and xisnan().
Definition at line 1018 of file pr-output.cc.
References set_format().
|
static |
Definition at line 1192 of file pr-output.cc.
References Matrix::abs(), Matrix::all_elements_are_int_or_inf_or_nan(), ComplexMatrix::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 1235 of file pr-output.cc.
References scale(), and set_format().
Definition at line 1356 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().
Definition at line 1390 of file pr-output.cc.
References scale(), and set_format().
|
static |
Definition at line 3616 of file pr-output.cc.
References arg(), bank_format, error(), 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 3609 of file pr-output.cc.
Referenced by set_format_style().
Definition at line 1243 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 541 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 665 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 478 of file pr-output.cc.
|
static |
Definition at line 475 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().