GNU Octave
4.2.1
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 "errwarn.h"
#include "ovl.h"
#include "oct-stream.h"
#include "octave-preserve-stream-state.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<typename 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 | Ffdisp (const octave_value_list &args, int) fdisp(stdout |
OCTAVE_EXPORT octave_value_list | Fformat (const octave_value_list &args, int) the variable is changed locally for the function and any subroutines it calls.The original variable value is restored when exiting the function.@seealso |
end deftypefn *OCTAVE_EXPORT octave_value_list | Fprint_empty_dimensions (const octave_value_list &args, int nargout) amp |
OCTAVE_EXPORT octave_value_list | Frats (const octave_value_list &args, int) an asterisk(*) padded with spaces will be returned instead.eealso |
nd deftypefn * | if (nargin< 1||nargin > 2) print_usage() |
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<typename T > | |
void | octave_print_internal_template (std::ostream &os, const octave_int< T > &val, bool) |
template<typename 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<typename 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<typename 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_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) |
For the expression xample | zeros (3, 0) nd example oindent will print xample ans |
Variables | |
octave_value | arg = args(0) |
static bool | bank_format = false |
static int | bit_format = 0 |
static float_format * | curr_imag_fmt = 0 |
static float_format * | curr_real_fmt = 0 |
For | example |
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 |
if(!arg.is_numeric_type()) error("rats return | retval |
OCTAVE_EXPORT octave_value_list pi | rint |
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 3074 of file pr-output.cc.
#define PRINT_CHAR_BITS | ( | os, | |
c | |||
) |
Definition at line 1423 of file pr-output.cc.
Referenced by pr_any_float(), and pr_int().
#define PRINT_CHAR_BITS_SWAPPED | ( | os, | |
c | |||
) |
Definition at line 1441 of file pr-output.cc.
Referenced by pr_any_float(), and pr_int().
#define PRINT_CONV | ( | T1, | |
T2 | |||
) |
Definition at line 2984 of file pr-output.cc.
#define PRINT_INT_ARRAY_INTERNAL | ( | TYPE | ) |
Definition at line 3384 of file pr-output.cc.
#define PRINT_INT_SCALAR_INTERNAL | ( | TYPE | ) |
Definition at line 3139 of file pr-output.cc.
#define SPECIALIZE_UABS | ( | T | ) |
Definition at line 3083 of file pr-output.cc.
|
inline |
Definition at line 3069 of file pr-output.cc.
References x.
Referenced by octave_print_internal_template(), and rational_approx().
template signed char abs | ( | signed | char | ) |
template short abs | ( | short | ) |
template long long abs | ( | long | ) |
|
inline |
Definition at line 3091 of file pr-output.cc.
|
inline |
Definition at line 3092 of file pr-output.cc.
Definition at line 3093 of file pr-output.cc.
|
inline |
Definition at line 3094 of file pr-output.cc.
|
inline |
Definition at line 3095 of file pr-output.cc.
|
static |
Definition at line 126 of file pr-output.cc.
References Voutput_max_field_width.
|
static |
Definition at line 132 of file pr-output.cc.
References Voutput_precision.
Definition at line 239 of file pr-output.cc.
References octave::math::floor(), and x.
Referenced by pr_engineering_float::exponent(), and num_digits().
OCTAVE_EXPORT octave_value_list Ffdisp | ( | const octave_value_list & | args, |
int | |||
) |
Referenced by install_pr_output_fcns().
OCTAVE_EXPORT octave_value_list Fformat | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 4031 of file pr-output.cc.
References argc, argv, ovl(), and set_format_style().
Referenced by install_pr_output_fcns().
end deftypefn* OCTAVE_EXPORT octave_value_list Fprint_empty_dimensions | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 4065 of file pr-output.cc.
References SET_INTERNAL_VARIABLE.
Referenced by install_pr_output_fcns(), and maximum_braindamage().
OCTAVE_EXPORT octave_value_list Frats | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 3433 of file pr-output.cc.
References nargin, and print_usage().
Referenced by install_pr_output_fcns().
Definition at line 257 of file pr-output.cc.
References engineering_exponent(), and octave::math::floor().
Referenced by set_format().
void octave_print_internal | ( | std::ostream & | , |
char | , | ||
bool | |||
) |
Definition at line 1722 of file pr-output.cc.
References panic_impossible.
Referenced by 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_fcn_handle::print_raw(), octave_base_sparse< T >::print_raw(), octave_char_matrix::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 1728 of file pr-output.cc.
References d, 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 1746 of file pr-output.cc.
References Array< T >::columns(), m, pr_col_num_header(), pr_float(), pr_plus_format(), pr_scale_header(), print_empty_matrix(), Array< T >::rows(), scale(), set_format(), and octave::command_editor::terminal_cols().
void octave_print_internal | ( | std::ostream & | os, |
const DiagMatrix & | m, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 1882 of file pr-output.cc.
References DiagArray2< T >::columns(), MDiagArray2< T >::diag(), m, pr_col_num_header(), pr_float(), pr_plus_format(), pr_scale_header(), print_empty_matrix(), DiagArray2< T >::rows(), scale(), set_format(), and octave::command_editor::terminal_cols().
void octave_print_internal | ( | std::ostream & | os, |
const NDArray & | nda, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2106 of file pr-output.cc.
References Array< T >::ndims(), and octave_print_internal().
Definition at line 2144 of file pr-output.cc.
References c, 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 2162 of file pr-output.cc.
References bit_format, Array< T >::columns(), pr_col_num_header(), pr_complex(), pr_plus_format(), pr_scale_header(), print_empty_matrix(), Array< T >::rows(), scale(), set_format(), and octave::command_editor::terminal_cols().
void octave_print_internal | ( | std::ostream & | os, |
const ComplexDiagMatrix & | cm, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2300 of file pr-output.cc.
References bit_format, DiagArray2< T >::columns(), MDiagArray2< T >::diag(), pr_col_num_header(), pr_complex(), pr_plus_format(), pr_scale_header(), print_empty_matrix(), DiagArray2< T >::rows(), scale(), set_format(), and octave::command_editor::terminal_cols().
void octave_print_internal | ( | std::ostream & | os, |
const PermMatrix & | m, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2449 of file pr-output.cc.
References PermMatrix::col_perm_vec(), PermMatrix::columns(), m, pr_col_num_header(), pr_plus_format(), print_empty_matrix(), PermMatrix::rows(), and octave::command_editor::terminal_cols().
void octave_print_internal | ( | std::ostream & | os, |
const ComplexNDArray & | nda, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2583 of file pr-output.cc.
References Array< T >::ndims(), and octave_print_internal().
Definition at line 2602 of file pr-output.cc.
References octave_print_internal().
void octave_print_internal | ( | std::ostream & | os, |
float | d, | ||
bool | pr_as_read_syntax | ||
) |
Definition at line 2610 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 2616 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 2623 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 2630 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 2637 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 2644 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 2652 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 2660 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 2668 of file pr-output.cc.
References Range::base(), Range::inc(), Range::limit(), Range::numel(), pr_col_num_header(), pr_float(), pr_plus_format(), pr_scale_header(), scale(), set_format(), octave::command_editor::terminal_cols(), and val.
void octave_print_internal | ( | std::ostream & | os, |
const boolMatrix & | bm, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2783 of file pr-output.cc.
References octave_print_internal(), and tmp.
void octave_print_internal | ( | std::ostream & | os, |
const boolNDArray & | nda, | ||
bool | pr_as_read_syntax, | ||
int | extra_indent | ||
) |
Definition at line 2792 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 2812 of file pr-output.cc.
References row, charMatrix::row_as_string(), Array< T >::rows(), string, 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 2859 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 2879 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 2888 of file pr-output.cc.
References dims, Array< T >::dims(), increment_index(), Array< T >::index(), Array< T >::is_empty(), k, m, Array< T >::ndims(), nm, Array< T >::numel(), page, print_empty_nd_array(), ra_idx, and string.
OCTINTERP_API void octave_print_internal | ( | std::ostream & | os, |
const octave_int< int8_t > & | val, | ||
bool | dummy | ||
) |
Definition at line 3146 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 3147 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 3148 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 3149 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 3150 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 3151 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 3152 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 3153 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 3392 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 3393 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 3394 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 3395 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 3396 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 3397 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 3398 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 3399 of file pr-output.cc.
Definition at line 3402 of file pr-output.cc.
References panic_impossible.
void octave_print_internal | ( | std::ostream & | , |
const octave_value & | , | ||
bool | |||
) |
Definition at line 3408 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 3123 of file pr-output.cc.
References pr_int(), and pr_plus_format().
Referenced by octave_print_internal_template().
|
inline |
Definition at line 3157 of file pr-output.cc.
References abs(), dims, octave::math::floor(), increment_index(), k, m, nm, dim_vector::numel(), octave_print_internal_template(), page, pr_col_num_header(), pr_int(), pr_plus_format(), print_empty_nd_array(), ra_idx, string, octave::command_editor::terminal_cols(), and value().
std::ostream& operator<< | ( | std::ostream & | os, |
const pr_engineering_float & | pef | ||
) |
Definition at line 288 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 331 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 471 of file pr-output.cc.
References pr_rational_float::f, float_format::fmt, float_format::fw, rational_approx(), s, float_format::sp, string, float_format::up, and pr_rational_float::val.
|
static |
Definition at line 1460 of file pr-output.cc.
References d, equiv::d, double, flt_fmt, octave::mach_info::flt_fmt_ieee_big_endian, equiv::i, octave::math::is_NA(), octave::math::isinf(), octave::math::isnan(), octave::mach_info::native_float_format(), PRINT_CHAR_BITS, PRINT_CHAR_BITS_SWAPPED, right, s, and tmp.
Referenced by pr_float(), and pr_imag_float().
|
static |
Definition at line 1678 of file pr-output.cc.
Referenced by octave_print_internal(), and octave_print_internal_template().
|
static |
Definition at line 1588 of file pr-output.cc.
References c, lo_ieee_signbit, pr_float(), pr_imag_float(), scale(), and tmp.
Referenced by octave_print_internal().
Definition at line 1573 of file pr-output.cc.
References pr_any_float(), and scale().
Referenced by octave_print_internal(), and pr_complex().
Definition at line 1582 of file pr-output.cc.
References pr_any_float().
Referenced by pr_complex().
|
inline |
Definition at line 3000 of file pr-output.cc.
References PRINT_CHAR_BITS, PRINT_CHAR_BITS_SWAPPED, right, sz, and octave::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 500 of file pr-output.cc.
References Array< T >::columns(), octave::math::finite(), m, max(), result, Array< T >::rows(), and val.
Referenced by set_format().
Definition at line 529 of file pr-output.cc.
References Array< T >::columns(), octave::math::finite(), m, max(), result, Array< T >::rows(), and val.
Referenced by set_format().
|
inline |
Definition at line 1711 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 2125 of file pr-output.cc.
References c, and pr_plus_format().
|
static |
Definition at line 1660 of file pr-output.cc.
References left.
Referenced by octave_print_internal().
|
static |
Definition at line 1621 of file pr-output.cc.
Referenced by octave_print_internal().
|
static |
Definition at line 1643 of file pr-output.cc.
References dim_vector::any_zero(), and dim_vector::str().
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 2030 of file pr-output.cc.
References dims, increment_index(), k, m, nm, page, print_empty_nd_array(), octave_value::print_name_tag(), octave_value::print_raw(), octave_value::print_with_name(), ra_idx, and string.
Referenced by octave_print_internal().
|
inlinestatic |
Definition at line 350 of file pr-output.cc.
References abs(), d, octave::math::isinf(), octave::math::isnan(), m, max(), min(), octave::math::round(), s, string, and octave::math::x_nint().
Referenced by operator<<().
|
static |
Definition at line 843 of file pr-output.cc.
References double, print_g, float_format::uppercase(), and Voutput_precision.
Referenced by set_format().
|
static |
Definition at line 1045 of file pr-output.cc.
References double, float_format::uppercase(), Voutput_max_field_width, and Voutput_precision.
Referenced by set_format().
Definition at line 655 of file pr-output.cc.
References d, octave::math::isinf(), octave::math::isnan(), num_digits(), set_real_format(), and octave::math::x_nint().
Referenced by octave_print_internal(), and set_format().
|
inlinestatic |
Definition at line 675 of file pr-output.cc.
References set_format().
Definition at line 808 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(), num_digits(), pow(), pr_max_internal(), pr_min_internal(), and set_real_matrix_format().
|
inlinestatic |
Definition at line 835 of file pr-output.cc.
References scale(), and set_format().
Definition at line 996 of file pr-output.cc.
References octave::math::finite(), octave::math::isinf(), octave::math::isnan(), num_digits(), set_complex_format(), and octave::math::x_nint().
|
inlinestatic |
Definition at line 1038 of file pr-output.cc.
References set_format().
|
static |
Definition at line 1212 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(), imag(), num_digits(), pow(), pr_max_internal(), pr_min_internal(), real(), and set_complex_matrix_format().
|
inlinestatic |
Definition at line 1255 of file pr-output.cc.
References scale(), and set_format().
Definition at line 1376 of file pr-output.cc.
References Range::all_elements_are_ints(), Range::base(), calc_scale_exp(), Range::limit(), num_digits(), pow(), set_range_format(), and tmp.
|
inlinestatic |
Definition at line 1410 of file pr-output.cc.
References scale(), and set_format().
|
static |
Definition at line 3621 of file pr-output.cc.
References string_vector::append(), arg, error(), plus_format_chars, and string.
Referenced by Fformat().
Definition at line 1263 of file pr-output.cc.
References double, float_format::uppercase(), Voutput_max_field_width, and Voutput_precision.
Referenced by set_format().
Definition at line 560 of file pr-output.cc.
References double, print_eng, float_format::uppercase(), and Voutput_precision.
Referenced by set_format().
|
static |
Definition at line 682 of file pr-output.cc.
References double, float_format::uppercase(), Voutput_max_field_width, and Voutput_precision.
Referenced by set_format().
For the expression xample zeros | ( | 3 | , |
0 | |||
) |
octave_value arg = args(0) |
Definition at line 3440 of file pr-output.cc.
Referenced by jit_function::call(), file_editor::call_custom_editor(), file_editor::check_conflict_save(), file_editor_tab::check_file_modified(), file_editor_tab::check_valid_codec(), file_editor_tab::check_valid_identifier(), jit_convert_llvm::convert_loop(), HTMLDecoder::decodeLine(), main_window::display_release_notes(), jit_instruction::do_construct_ssa(), do_fft(), do_fft2(), do_fftn(), octave_qt_link::do_file_dialog(), do_history(), do_minmax_body(), do_minmax_red_op(), do_minmax_red_op< boolNDArray >(), do_minmax_red_op< charNDArray >(), do_printf_string(), octave_qt_link::do_prompt_new_edit_file(), do_sqrtm(), do_trilu(), F__dump_symtab_info__(), F__fieldnames__(), Fangle(), Fdet(), Fdiary(), Fhess(), file_editor_tab::file_has_changed(), Finv(), Fmore(), Fnproc(), Fschur(), Fsqrtm(), Fsvd(), Gchol(), get_dispatch_type(), get_mapper_fun_options(), Gqr(), Gsymrcm(), octave::gui_application::gui_running(), handle_message(), QTerminal::handleCustomContextMenuRequested(), initial_page::initial_page(), octave::interpreter::interactive(), octave::command_editor::interrupt(), jit_function_info::jit_function_info(), main(), 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(), file_editor::mru_menu_update(), workspace_view::notice_settings(), parser::open_file(), HTMLDecoder::openSpan(), parse_dbfunction_params(), annotation_dialog::prompt_for_color(), jit_typeinfo::register_generic(), jit_infer::release_dead_phi(), jit_infer::release_temp(), find_dialog::replace_all(), file_editor::request_open_file(), file_editor_tab::save_file(), set_format_style(), octave_dock_widget::set_style(), shortcut_manager::shortcut_dialog_finished(), jit_infer::simplify_phi(), sparse(), sparse_ascending_compare< Complex >(), sparse_descending_compare< Complex >(), color_picker::update_button(), QtHandles::Figure::updateStatusBar(), Vt102Emulation::updateTitle(), jit_convert_llvm::visit(), octave::tree_evaluator::visit_simple_for_command(), webinfo::webinfo(), and Vt102Emulation::XtermHack().
Definition at line 98 of file pr-output.cc.
|
static |
Definition at line 104 of file pr-output.cc.
Referenced by octave_print_internal().
|
static |
Definition at line 497 of file pr-output.cc.
|
static |
Definition at line 494 of file pr-output.cc.
For example |
Definition at line 4065 of file pr-output.cc.
Definition at line 83 of file pr-output.cc.
|
static |
Definition at line 101 of file pr-output.cc.
Definition at line 86 of file pr-output.cc.
|
static |
Definition at line 89 of file pr-output.cc.
Referenced by pr_plus_format(), and set_format_style().
Definition at line 116 of file pr-output.cc.
Definition at line 110 of file pr-output.cc.
Definition at line 119 of file pr-output.cc.
Referenced by set_real_format().
Definition at line 113 of file pr-output.cc.
Referenced by set_complex_format().
Definition at line 92 of file pr-output.cc.
|
static |
Definition at line 95 of file pr-output.cc.
Definition at line 3442 of file pr-output.cc.
OCTAVE_EXPORT octave_value_list pi rint |
Definition at line 3547 of file pr-output.cc.
Definition at line 107 of file pr-output.cc.
Referenced by octave_class::print_name_tag(), octave_range::print_name_tag(), octave_base_value::print_name_tag(), octave_scalar_struct::print_raw(), and octave_base_value::print_with_name().
Definition at line 64 of file pr-output.cc.
|
static |
Definition at line 68 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 72 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 76 of file pr-output.cc.
Referenced by octave_cell::print_raw().
|
static |
Definition at line 80 of file pr-output.cc.