GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
pr-output.cc File Reference
#include <cmath>
#include <iomanip>
#include <limits>
#include <list>
#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 "mach-info.h"
#include "oct-cmplx.h"
#include "oct-string.h"
#include "quit.h"
#include "Cell.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "interpreter.h"
#include "ovl.h"
#include "oct-stream.h"
#include "octave-preserve-stream-state.h"
#include "pager.h"
#include "pr-flt-fmt.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.

Macros

#define INSTANTIATE_ABS(T)    template T abs (T)
 
#define MAKE_INT_MATRIX_FORMAT(TYPE)
 
#define MAKE_INT_SCALAR_FORMAT(TYPE)
 
#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 int16_t abs (int16_t)
 
template int32_t abs (int32_t)
 
template int64_t abs (int64_t)
 
template int8_t abs (int8_t)
 
template<>
uint16_t abs (uint16_t x)
 
template<>
uint32_t abs (uint32_t x)
 
template<>
uint64_t abs (uint64_t x)
 
template<>
uint8_t abs (uint8_t x)
 
octave_value_list Fdisp (const octave_value_list &args, int nargout)
 
octave_value_list Fdisplay (octave::interpreter &interp, const octave_value_list &args, int)
 
octave_value_list Ffdisp (octave::interpreter &interp, const octave_value_list &args, int)
 
octave_value_list Ffixed_point_format (const octave_value_list &args, int nargout)
 
octave_value_list Fformat (const octave_value_list &args, int nargout)
 
octave_value_list Fprint_empty_dimensions (const octave_value_list &args, int nargout)
 
octave_value_list Frats (const octave_value_list &args, int)
 
octave_value_list Fsplit_long_rows (const octave_value_list &args, int nargout)
 
template<typename T >
float_display_format make_complex_scalar_format (const std::complex< T > &c)
 
template<>
float_display_format make_format (const boolNDArray &)
 
template<>
float_display_format make_format (const ComplexMatrix &cm)
 
template<>
float_display_format make_format (const double &d)
 
template<>
float_display_format make_format (const float &f)
 
template<>
float_display_format make_format (const FloatComplexMatrix &cm)
 
template<>
float_display_format make_format (const FloatMatrix &m)
 
template<>
float_display_format make_format (const intNDArray< octave_int16 > &nda)
 
template<>
float_display_format make_format (const intNDArray< octave_int32 > &nda)
 
template<>
float_display_format make_format (const intNDArray< octave_int64 > &nda)
 
template<>
float_display_format make_format (const intNDArray< octave_int8 > &nda)
 
template<>
float_display_format make_format (const intNDArray< octave_uint16 > &nda)
 
template<>
float_display_format make_format (const intNDArray< octave_uint32 > &nda)
 
template<>
float_display_format make_format (const intNDArray< octave_uint64 > &nda)
 
template<>
float_display_format make_format (const intNDArray< octave_uint8 > &nda)
 
template<>
float_display_format make_format (const Matrix &m)
 
template<>
float_display_format make_format (const octave::range< double > &r)
 
template<>
float_display_format make_format (const octave_int< int16_t > &val)
 
template<>
float_display_format make_format (const octave_int< int32_t > &val)
 
template<>
float_display_format make_format (const octave_int< int64_t > &val)
 
template<>
float_display_format make_format (const octave_int< int8_t > &val)
 
template<>
float_display_format make_format (const octave_int< uint16_t > &val)
 
template<>
float_display_format make_format (const octave_int< uint32_t > &val)
 
template<>
float_display_format make_format (const octave_int< uint64_t > &val)
 
template<>
float_display_format make_format (const octave_int< uint8_t > &val)
 
template<>
float_display_format make_format (const std::complex< double > &c)
 
template<>
float_display_format make_format (const std::complex< float > &fc)
 
template<typename T >
float_display_format make_scalar_format (const T &val)
 
void octave_print_internal (std::ostream &, const Cell &, bool, int, bool)
 
void octave_print_internal (std::ostream &, const float_display_format &, char, bool)
 
void octave_print_internal (std::ostream &, const octave_value &, bool)
 
void octave_print_internal (std::ostream &os, bool d, bool pr_as_read_syntax)
 
void octave_print_internal (std::ostream &os, const Array< std::string > &nda, bool pr_as_read_syntax, int)
 
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 ComplexDiagMatrix &cm, bool pr_as_read_syntax, int extra_indent)
 
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 ComplexNDArray &nda, 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 float_display_format &fmt, bool d, bool pr_as_read_syntax)
 
void octave_print_internal (std::ostream &os, const float_display_format &fmt, const Complex &c, bool pr_as_read_syntax)
 
void octave_print_internal (std::ostream &os, const float_display_format &fmt, const FloatComplex &c, bool pr_as_read_syntax)
 
void octave_print_internal (std::ostream &os, const float_display_format &fmt, const octave_int< int16_t > &val, bool dummy)
 
void octave_print_internal (std::ostream &os, const float_display_format &fmt, const octave_int< int32_t > &val, bool dummy)
 
void octave_print_internal (std::ostream &os, const float_display_format &fmt, const octave_int< int64_t > &val, bool dummy)
 
void octave_print_internal (std::ostream &os, const float_display_format &fmt, const octave_int< int8_t > &val, bool dummy)
 
void octave_print_internal (std::ostream &os, const float_display_format &fmt, const octave_int< uint16_t > &val, bool dummy)
 
void octave_print_internal (std::ostream &os, const float_display_format &fmt, const octave_int< uint32_t > &val, bool dummy)
 
void octave_print_internal (std::ostream &os, const float_display_format &fmt, const octave_int< uint64_t > &val, bool dummy)
 
void octave_print_internal (std::ostream &os, const float_display_format &fmt, const octave_int< uint8_t > &val, bool dummy)
 
void octave_print_internal (std::ostream &os, const float_display_format &fmt, double d, bool pr_as_read_syntax)
 
void octave_print_internal (std::ostream &os, const float_display_format &fmt, float d, bool pr_as_read_syntax)
 
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 FloatComplexMatrix &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 FloatDiagMatrix &m, bool pr_as_read_syntax, int extra_indent)
 
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 FloatNDArray &nda, bool pr_as_read_syntax, int extra_indent)
 
void octave_print_internal (std::ostream &os, const intNDArray< octave_int16 > &nda, bool pr_as_read_syntax, int extra_indent)
 
void octave_print_internal (std::ostream &os, const intNDArray< octave_int32 > &nda, bool pr_as_read_syntax, int extra_indent)
 
void octave_print_internal (std::ostream &os, const intNDArray< octave_int64 > &nda, bool pr_as_read_syntax, int extra_indent)
 
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 &os, const intNDArray< octave_uint16 > &nda, bool pr_as_read_syntax, int extra_indent)
 
void octave_print_internal (std::ostream &os, const intNDArray< octave_uint32 > &nda, bool pr_as_read_syntax, int extra_indent)
 
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 &os, const intNDArray< octave_uint8 > &nda, bool pr_as_read_syntax, int extra_indent)
 
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 NDArray &nda, bool pr_as_read_syntax, int extra_indent)
 
void octave_print_internal (std::ostream &os, const octave::range< double > &r, 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 std::string &s, bool pr_as_read_syntax, int extra_indent)
 
template<typename T >
void octave_print_internal_template (std::ostream &os, const float_display_format &fmt, const octave_int< T > &val, bool)
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const pr_engineering_float< T > &pef)
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const pr_formatted_float< T > &pff)
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const pr_rational_float< T > &prf)
 
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_int8 &, 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)
 
template void pr_int (std::ostream &, const octave_uint8 &, int)
 
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)
 

Variables

bool Vcompact_format = false
 
bool Vprint_empty_dimensions = true
 

Macro Definition Documentation

◆ INSTANTIATE_ABS

#define INSTANTIATE_ABS (   T)     template T abs (T)

Definition at line 1682 of file pr-output.cc.

◆ MAKE_INT_MATRIX_FORMAT

#define MAKE_INT_MATRIX_FORMAT (   TYPE)
Value:
template <> \
{ \
bool isneg = false; \
int digits = 0; \
for (octave_idx_type i = 0; i < nda.numel (); i++) \
{ \
int new_digits \
= static_cast<int> \
(std::floor (log10 (double (abs (nda(i).value ()))) + 1)); \
\
if (new_digits > digits) \
digits = new_digits; \
\
if (! isneg) \
isneg = (abs (nda(i).value ()) != nda(i).value ()); \
} \
\
return float_display_format (float_format (digits + isneg, 0, 0)); \
}
std::complex< T > floor(const std::complex< T > &x)
Definition: lo-mappers.h:130
for(octave_idx_type i=0;i< n;i++) ac+
Definition: mx-inlines.cc:764
template int8_t abs(int8_t)
float_display_format make_format(const double &d)
Definition: pr-output.cc:525

Definition at line 1703 of file pr-output.cc.

◆ MAKE_INT_SCALAR_FORMAT

#define MAKE_INT_SCALAR_FORMAT (   TYPE)
Value:
template <> \
{ \
bool isneg = false; \
int digits \
= static_cast<int> \
(std::floor (log10 (double (abs (val.value ()))) + 1)); \
\
isneg = (abs (val.value ()) != val.value ()); \
\
return float_display_format (float_format (digits + isneg, 0, 0)); \
}

Definition at line 1736 of file pr-output.cc.

◆ PRINT_CHAR_BITS

#define PRINT_CHAR_BITS (   os,
 
)
Value:
do \
{ \
unsigned char ctmp = c; \
char stmp[9]; \
stmp[0] = (ctmp & 0x80) ? '1' : '0'; \
stmp[1] = (ctmp & 0x40) ? '1' : '0'; \
stmp[2] = (ctmp & 0x20) ? '1' : '0'; \
stmp[3] = (ctmp & 0x10) ? '1' : '0'; \
stmp[4] = (ctmp & 0x08) ? '1' : '0'; \
stmp[5] = (ctmp & 0x04) ? '1' : '0'; \
stmp[6] = (ctmp & 0x02) ? '1' : '0'; \
stmp[7] = (ctmp & 0x01) ? '1' : '0'; \
stmp[8] = '\0'; \
os << stmp; \
} \
while (0)

Definition at line 1355 of file pr-output.cc.

◆ PRINT_CHAR_BITS_SWAPPED

#define PRINT_CHAR_BITS_SWAPPED (   os,
 
)
Value:
do \
{ \
unsigned char ctmp = c; \
char stmp[9]; \
stmp[0] = (ctmp & 0x01) ? '1' : '0'; \
stmp[1] = (ctmp & 0x02) ? '1' : '0'; \
stmp[2] = (ctmp & 0x04) ? '1' : '0'; \
stmp[3] = (ctmp & 0x08) ? '1' : '0'; \
stmp[4] = (ctmp & 0x10) ? '1' : '0'; \
stmp[5] = (ctmp & 0x20) ? '1' : '0'; \
stmp[6] = (ctmp & 0x40) ? '1' : '0'; \
stmp[7] = (ctmp & 0x80) ? '1' : '0'; \
stmp[8] = '\0'; \
os << stmp; \
} \
while (0)

Definition at line 1373 of file pr-output.cc.

◆ PRINT_CONV

#define PRINT_CONV (   T1,
  T2 
)
Value:
template <> \
class \
octave_print_conv<T1> \
{ \
public: \
typedef T2 print_conv_type; \
}

Definition at line 2794 of file pr-output.cc.

◆ PRINT_INT_ARRAY_INTERNAL

#define PRINT_INT_ARRAY_INTERNAL (   TYPE)
Value:
OCTINTERP_API void \
octave_print_internal (std::ostream& os, const intNDArray<TYPE>& nda, \
bool pr_as_read_syntax, int extra_indent) \
{ \
octave_print_internal_template (os, nda, pr_as_read_syntax, extra_indent); \
}
void octave_print_internal(std::ostream &os, const float_display_format &fmt, bool d, bool pr_as_read_syntax)
Definition: pr-output.cc:1761

Definition at line 3169 of file pr-output.cc.

◆ PRINT_INT_SCALAR_INTERNAL

#define PRINT_INT_SCALAR_INTERNAL (   TYPE)
Value:
octave_print_internal (std::ostream& os, \
const float_display_format& fmt, \
const octave_int<TYPE>& val, bool dummy) \
{ \
octave_print_internal_template (os, fmt, val, dummy); \
}

Definition at line 2920 of file pr-output.cc.

◆ SPECIALIZE_UABS

#define SPECIALIZE_UABS (   T)
Value:
template <> \
inline T \
abs (T x) \
{ \
return x; \
}
F77_RET_T const F77_DBLE * x

Definition at line 1690 of file pr-output.cc.

Function Documentation

◆ abs() [1/8]

template int16_t abs ( int16_t  )

◆ abs() [2/8]

template int32_t abs ( int32_t  )

◆ abs() [3/8]

template int64_t abs ( int64_t  )

◆ abs() [4/8]

template int8_t abs ( int8_t  )

◆ abs() [5/8]

template<>
uint16_t abs ( uint16_t  x)
inline

Definition at line 1699 of file pr-output.cc.

◆ abs() [6/8]

template<>
uint32_t abs ( uint32_t  x)
inline

Definition at line 1700 of file pr-output.cc.

◆ abs() [7/8]

template<>
uint64_t abs ( uint64_t  x)
inline

Definition at line 1701 of file pr-output.cc.

◆ abs() [8/8]

template<>
uint8_t abs ( uint8_t  x)
inline

Definition at line 1698 of file pr-output.cc.

◆ Fdisp()

octave_value_list Fdisp ( const octave_value_list args,
int  nargout 
)

◆ Fdisplay()

octave_value_list Fdisplay ( octave::interpreter &  interp,
const octave_value_list args,
int   
)

◆ Ffdisp()

octave_value_list Ffdisp ( octave::interpreter &  interp,
const octave_value_list args,
int   
)

◆ Ffixed_point_format()

octave_value_list Ffixed_point_format ( const octave_value_list args,
int  nargout 
)

Definition at line 4153 of file pr-output.cc.

References octave::set_internal_variable().

◆ Fformat()

octave_value_list Fformat ( const octave_value_list args,
int  nargout 
)

Definition at line 4026 of file pr-output.cc.

References min().

◆ Fprint_empty_dimensions()

octave_value_list Fprint_empty_dimensions ( const octave_value_list args,
int  nargout 
)

Definition at line 4184 of file pr-output.cc.

References octave::set_internal_variable(), and Vprint_empty_dimensions.

◆ Frats()

◆ Fsplit_long_rows()

octave_value_list Fsplit_long_rows ( const octave_value_list args,
int  nargout 
)

Definition at line 4224 of file pr-output.cc.

References octave::set_internal_variable().

◆ make_complex_scalar_format()

template<typename T >
float_display_format make_complex_scalar_format ( const std::complex< T > &  c)

Definition at line 891 of file pr-output.cc.

Referenced by make_format().

◆ make_format() [1/26]

template<>
float_display_format make_format ( const boolNDArray nda)

Definition at line 1183 of file pr-output.cc.

◆ make_format() [2/26]

template<>
float_display_format make_format ( const ComplexMatrix cm)

Definition at line 1169 of file pr-output.cc.

◆ make_format() [3/26]

◆ make_format() [4/26]

template<>
float_display_format make_format ( const float &  f)

Definition at line 532 of file pr-output.cc.

References f, and make_scalar_format().

◆ make_format() [5/26]

template<>
float_display_format make_format ( const FloatComplexMatrix cm)

Definition at line 1176 of file pr-output.cc.

◆ make_format() [6/26]

template<>
float_display_format make_format ( const FloatMatrix m)

Definition at line 716 of file pr-output.cc.

◆ make_format() [7/26]

template<>
float_display_format make_format ( const intNDArray< octave_int16 > &  nda)

Definition at line 1729 of file pr-output.cc.

◆ make_format() [8/26]

template<>
float_display_format make_format ( const intNDArray< octave_int32 > &  nda)

Definition at line 1731 of file pr-output.cc.

◆ make_format() [9/26]

template<>
float_display_format make_format ( const intNDArray< octave_int64 > &  nda)

Definition at line 1733 of file pr-output.cc.

◆ make_format() [10/26]

template<>
float_display_format make_format ( const intNDArray< octave_int8 > &  nda)

Definition at line 1727 of file pr-output.cc.

◆ make_format() [11/26]

template<>
float_display_format make_format ( const intNDArray< octave_uint16 > &  nda)

Definition at line 1730 of file pr-output.cc.

◆ make_format() [12/26]

template<>
float_display_format make_format ( const intNDArray< octave_uint32 > &  nda)

Definition at line 1732 of file pr-output.cc.

◆ make_format() [13/26]

template<>
float_display_format make_format ( const intNDArray< octave_uint64 > &  nda)

Definition at line 1734 of file pr-output.cc.

◆ make_format() [14/26]

template<>
float_display_format make_format ( const intNDArray< octave_uint8 > &  nda)

Definition at line 1728 of file pr-output.cc.

◆ make_format() [15/26]

template<>
float_display_format make_format ( const Matrix m)

Definition at line 709 of file pr-output.cc.

◆ make_format() [16/26]

template<>
float_display_format make_format ( const octave::range< double > &  r)

Definition at line 1321 of file pr-output.cc.

◆ make_format() [17/26]

template<>
float_display_format make_format ( const octave_int< int16_t > &  val)

Definition at line 1753 of file pr-output.cc.

◆ make_format() [18/26]

template<>
float_display_format make_format ( const octave_int< int32_t > &  val)

Definition at line 1755 of file pr-output.cc.

◆ make_format() [19/26]

template<>
float_display_format make_format ( const octave_int< int64_t > &  val)

Definition at line 1757 of file pr-output.cc.

◆ make_format() [20/26]

template<>
float_display_format make_format ( const octave_int< int8_t > &  val)

Definition at line 1751 of file pr-output.cc.

◆ make_format() [21/26]

template<>
float_display_format make_format ( const octave_int< uint16_t > &  val)

Definition at line 1754 of file pr-output.cc.

◆ make_format() [22/26]

template<>
float_display_format make_format ( const octave_int< uint32_t > &  val)

Definition at line 1756 of file pr-output.cc.

◆ make_format() [23/26]

template<>
float_display_format make_format ( const octave_int< uint64_t > &  val)

Definition at line 1758 of file pr-output.cc.

◆ make_format() [24/26]

template<>
float_display_format make_format ( const octave_int< uint8_t > &  val)

Definition at line 1752 of file pr-output.cc.

◆ make_format() [25/26]

template<>
float_display_format make_format ( const std::complex< double > &  c)

Definition at line 930 of file pr-output.cc.

References make_complex_scalar_format().

◆ make_format() [26/26]

template<>
float_display_format make_format ( const std::complex< float > &  fc)

Definition at line 937 of file pr-output.cc.

References make_complex_scalar_format().

◆ make_scalar_format()

template<typename T >
float_display_format make_scalar_format ( const T &  val)

Definition at line 507 of file pr-output.cc.

Referenced by make_format().

◆ octave_print_internal() [1/45]

void octave_print_internal ( std::ostream &  os,
const Cell cell,
bool  pr_as_read_syntax,
int  extra_indent,
bool  pr_as_string 
)

Definition at line 3187 of file pr-output.cc.

References panic_impossible.

◆ octave_print_internal() [2/45]

void octave_print_internal ( std::ostream &  os,
const float_display_format fmt,
char  c,
bool  pr_as_read_syntax 
)

Definition at line 1774 of file pr-output.cc.

References panic_impossible.

◆ octave_print_internal() [3/45]

void octave_print_internal ( std::ostream &  os,
const octave_value ov,
bool  pr_as_read_syntax 
)

Definition at line 3193 of file pr-output.cc.

References panic_impossible.

◆ octave_print_internal() [4/45]

void octave_print_internal ( std::ostream &  os,
bool  d,
bool  pr_as_read_syntax 
)

Definition at line 1768 of file pr-output.cc.

References d, and octave_print_internal().

◆ octave_print_internal() [5/45]

void octave_print_internal ( std::ostream &  os,
const Array< std::string > &  nda,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 2699 of file pr-output.cc.

References Array< T, Alloc >::isempty().

◆ octave_print_internal() [6/45]

void octave_print_internal ( std::ostream &  os,
const boolMatrix bm,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 2594 of file pr-output.cc.

References octave_print_internal().

◆ octave_print_internal() [7/45]

void octave_print_internal ( std::ostream &  os,
const boolNDArray nda,
bool  pr_as_read_syntax,
int  extra_indent 
)

◆ octave_print_internal() [8/45]

void octave_print_internal ( std::ostream &  os,
const charMatrix chm,
bool  pr_as_read_syntax,
int  extra_indent,
bool  pr_as_string 
)

◆ octave_print_internal() [9/45]

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 2670 of file pr-output.cc.

References Array< T, Alloc >::ndims(), and octave_print_internal().

◆ octave_print_internal() [10/45]

void octave_print_internal ( std::ostream &  os,
const ComplexDiagMatrix cm,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 2477 of file pr-output.cc.

◆ octave_print_internal() [11/45]

void octave_print_internal ( std::ostream &  os,
const ComplexMatrix cm,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 2463 of file pr-output.cc.

◆ octave_print_internal() [12/45]

void octave_print_internal ( std::ostream &  os,
const ComplexNDArray nda,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 2395 of file pr-output.cc.

References Array< T, Alloc >::ndims(), and octave_print_internal().

◆ octave_print_internal() [13/45]

void octave_print_internal ( std::ostream &  os,
const DiagMatrix m,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 2449 of file pr-output.cc.

◆ octave_print_internal() [14/45]

◆ octave_print_internal() [15/45]

void octave_print_internal ( std::ostream &  os,
const float_display_format fmt,
const Complex c,
bool  pr_as_read_syntax 
)

Definition at line 2247 of file pr-output.cc.

◆ octave_print_internal() [16/45]

void octave_print_internal ( std::ostream &  os,
const float_display_format fmt,
const FloatComplex c,
bool  pr_as_read_syntax 
)

Definition at line 2264 of file pr-output.cc.

◆ octave_print_internal() [17/45]

void octave_print_internal ( std::ostream &  os,
const float_display_format fmt,
const octave_int< int16_t > &  val,
bool  dummy 
)

Definition at line 2931 of file pr-output.cc.

◆ octave_print_internal() [18/45]

void octave_print_internal ( std::ostream &  os,
const float_display_format fmt,
const octave_int< int32_t > &  val,
bool  dummy 
)

Definition at line 2933 of file pr-output.cc.

◆ octave_print_internal() [19/45]

void octave_print_internal ( std::ostream &  os,
const float_display_format fmt,
const octave_int< int64_t > &  val,
bool  dummy 
)

Definition at line 2935 of file pr-output.cc.

◆ octave_print_internal() [20/45]

void octave_print_internal ( std::ostream &  os,
const float_display_format fmt,
const octave_int< int8_t > &  val,
bool  dummy 
)

Definition at line 2929 of file pr-output.cc.

◆ octave_print_internal() [21/45]

void octave_print_internal ( std::ostream &  os,
const float_display_format fmt,
const octave_int< uint16_t > &  val,
bool  dummy 
)

Definition at line 2932 of file pr-output.cc.

◆ octave_print_internal() [22/45]

void octave_print_internal ( std::ostream &  os,
const float_display_format fmt,
const octave_int< uint32_t > &  val,
bool  dummy 
)

Definition at line 2934 of file pr-output.cc.

◆ octave_print_internal() [23/45]

void octave_print_internal ( std::ostream &  os,
const float_display_format fmt,
const octave_int< uint64_t > &  val,
bool  dummy 
)

Definition at line 2936 of file pr-output.cc.

◆ octave_print_internal() [24/45]

void octave_print_internal ( std::ostream &  os,
const float_display_format fmt,
const octave_int< uint8_t > &  val,
bool  dummy 
)

Definition at line 2930 of file pr-output.cc.

◆ octave_print_internal() [25/45]

void octave_print_internal ( std::ostream &  os,
const float_display_format fmt,
double  d,
bool  pr_as_read_syntax 
)

Definition at line 1781 of file pr-output.cc.

References d.

◆ octave_print_internal() [26/45]

void octave_print_internal ( std::ostream &  os,
const float_display_format fmt,
float  d,
bool  pr_as_read_syntax 
)

Definition at line 1798 of file pr-output.cc.

References d.

◆ octave_print_internal() [27/45]

void octave_print_internal ( std::ostream &  os,
const FloatComplexDiagMatrix cm,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 2484 of file pr-output.cc.

◆ octave_print_internal() [28/45]

void octave_print_internal ( std::ostream &  os,
const FloatComplexMatrix cm,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 2470 of file pr-output.cc.

◆ octave_print_internal() [29/45]

void octave_print_internal ( std::ostream &  os,
const FloatComplexNDArray nda,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 2414 of file pr-output.cc.

References Array< T, Alloc >::ndims(), and octave_print_internal().

◆ octave_print_internal() [30/45]

void octave_print_internal ( std::ostream &  os,
const FloatDiagMatrix m,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 2456 of file pr-output.cc.

◆ octave_print_internal() [31/45]

void octave_print_internal ( std::ostream &  os,
const FloatMatrix m,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 2442 of file pr-output.cc.

◆ octave_print_internal() [32/45]

void octave_print_internal ( std::ostream &  os,
const FloatNDArray nda,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 2209 of file pr-output.cc.

References Array< T, Alloc >::ndims(), and octave_print_internal().

◆ octave_print_internal() [33/45]

void octave_print_internal ( std::ostream &  os,
const intNDArray< octave_int16 > &  nda,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 3179 of file pr-output.cc.

◆ octave_print_internal() [34/45]

void octave_print_internal ( std::ostream &  os,
const intNDArray< octave_int32 > &  nda,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 3181 of file pr-output.cc.

◆ octave_print_internal() [35/45]

void octave_print_internal ( std::ostream &  os,
const intNDArray< octave_int64 > &  nda,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 3183 of file pr-output.cc.

◆ octave_print_internal() [36/45]

void octave_print_internal ( std::ostream &  os,
const intNDArray< octave_int8 > &  nda,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 3177 of file pr-output.cc.

◆ octave_print_internal() [37/45]

void octave_print_internal ( std::ostream &  os,
const intNDArray< octave_uint16 > &  nda,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 3180 of file pr-output.cc.

◆ octave_print_internal() [38/45]

void octave_print_internal ( std::ostream &  os,
const intNDArray< octave_uint32 > &  nda,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 3182 of file pr-output.cc.

◆ octave_print_internal() [39/45]

void octave_print_internal ( std::ostream &  os,
const intNDArray< octave_uint64 > &  nda,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 3184 of file pr-output.cc.

◆ octave_print_internal() [40/45]

void octave_print_internal ( std::ostream &  os,
const intNDArray< octave_uint8 > &  nda,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 3178 of file pr-output.cc.

◆ octave_print_internal() [41/45]

void octave_print_internal ( std::ostream &  os,
const Matrix m,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 2435 of file pr-output.cc.

◆ octave_print_internal() [42/45]

void octave_print_internal ( std::ostream &  os,
const NDArray nda,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 2191 of file pr-output.cc.

References Array< T, Alloc >::ndims(), and octave_print_internal().

◆ octave_print_internal() [43/45]

void octave_print_internal ( std::ostream &  os,
const octave::range< double > &  r,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 2491 of file pr-output.cc.

References r.

◆ octave_print_internal() [44/45]

void octave_print_internal ( std::ostream &  os,
const PermMatrix m,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 2281 of file pr-output.cc.

References m.

◆ octave_print_internal() [45/45]

void octave_print_internal ( std::ostream &  os,
const std::string &  s,
bool  pr_as_read_syntax,
int  extra_indent 
)

Definition at line 2690 of file pr-output.cc.

References octave_print_internal().

◆ octave_print_internal_template()

template<typename T >
void octave_print_internal_template ( std::ostream &  os,
const float_display_format fmt,
const octave_int< T > &  val,
bool   
)

Definition at line 2901 of file pr-output.cc.

◆ operator<<() [1/3]

template<typename T >
std::ostream& operator<< ( std::ostream &  os,
const pr_engineering_float< T > &  pef 
)

Definition at line 186 of file pr-output.cc.

◆ operator<<() [2/3]

template<typename T >
std::ostream& operator<< ( std::ostream &  os,
const pr_formatted_float< T > &  pff 
)

Definition at line 227 of file pr-output.cc.

◆ operator<<() [3/3]

template<typename T >
std::ostream& operator<< ( std::ostream &  os,
const pr_rational_float< T > &  prf 
)

Definition at line 248 of file pr-output.cc.

◆ pr_int() [1/8]

template void pr_int ( std::ostream &  ,
const octave_int16 ,
int   
)

◆ pr_int() [2/8]

template void pr_int ( std::ostream &  ,
const octave_int32 ,
int   
)

◆ pr_int() [3/8]

template void pr_int ( std::ostream &  ,
const octave_int64 ,
int   
)

◆ pr_int() [4/8]

template void pr_int ( std::ostream &  ,
const octave_int8 ,
int   
)

◆ pr_int() [5/8]

template void pr_int ( std::ostream &  ,
const octave_uint16 ,
int   
)

◆ pr_int() [6/8]

template void pr_int ( std::ostream &  ,
const octave_uint32 ,
int   
)

◆ pr_int() [7/8]

template void pr_int ( std::ostream &  ,
const octave_uint64 ,
int   
)

◆ pr_int() [8/8]

template void pr_int ( std::ostream &  ,
const octave_uint8 ,
int   
)

◆ print_nd_array()

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 
)

Definition at line 2116 of file pr-output.cc.

Referenced by octave_print_internal().

Variable Documentation

◆ Vcompact_format

◆ Vprint_empty_dimensions

bool Vprint_empty_dimensions = true

Definition at line 71 of file pr-output.cc.

Referenced by Fprint_empty_dimensions(), and octave_cell::print_raw().