26 #if ! defined (octave_ov_cx_mat_h)
27 #define octave_ov_cx_mat_h 1
29 #include "octave-config.h"
91 type_conv_info numeric_demotion_function (
void)
const;
105 double double_value (
bool =
false)
const;
107 float float_value (
bool =
false)
const;
110 {
return double_value (frc_str_conv); }
113 {
return float_value (frc_str_conv); }
117 Matrix matrix_value (
bool =
false)
const;
119 FloatMatrix float_matrix_value (
bool =
false)
const;
121 Complex complex_value (
bool =
false)
const;
133 boolNDArray bool_array_value (
bool warn =
false)
const;
135 charNDArray char_array_value (
bool frc_str_conv =
false)
const;
154 bool save_ascii (std::ostream& os);
156 bool load_ascii (std::istream& is);
158 bool save_binary (std::ostream& os,
bool save_as_floats);
160 bool load_binary (std::istream& is,
bool swap,
172 return os.
write (matrix_value (
true), block_size, output_type,
176 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
178 mxArray * as_mxArray (
void)
const;
N Dimensional Array with copy-on-write semantics.
octave_idx_type write(const octave_value &data, octave_idx_type block_size, oct_data_conv::data_type output_type, octave_idx_type skip, mach_info::float_format flt_fmt)
octave_complex_matrix(const ComplexMatrix &m, const MatrixType &t)
octave_complex_matrix(const ComplexRowVector &v)
int write(octave::stream &os, int block_size, oct_data_conv::data_type output_type, int skip, octave::mach_info::float_format flt_fmt) const
octave_base_value * clone(void) const
octave_complex_matrix(void)
ComplexNDArray complex_array_value(bool=false) const
octave_complex_matrix(const ComplexDiagMatrix &d)
octave_complex_matrix(const ComplexMatrix &m)
octave_complex_matrix(const octave_complex_matrix &cm)
octave_complex_matrix(const Array< Complex > &m)
bool iscomplex(void) const
octave_base_value * empty_clone(void) const
bool is_complex_matrix(void) const
float float_scalar_value(bool frc_str_conv=false) const
octave_complex_matrix(const ComplexColumnVector &v)
~octave_complex_matrix(void)=default
bool is_double_type(void) const
double scalar_value(bool frc_str_conv=false) const
octave_complex_matrix(const ComplexNDArray &m)
builtin_type_t builtin_type(void) const
Array< octave_value > array_value(void) const
F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
std::complex< double > Complex
std::complex< float > FloatComplex
static double as_double(time_t sec, long usec)
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA