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 ()
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,
163 bool save_hdf5 (
octave_hdf5_id loc_id,
const char *name,
bool save_as_floats);
167 int write (octave::stream& os,
int block_size,
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 (
bool interleaved)
const;
N Dimensional Array with copy-on-write semantics.
octave_complex_matrix(const ComplexMatrix &m, const MatrixType &t)
octave_complex_matrix(const ComplexRowVector &v)
octave_base_value * clone() const
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 * empty_clone() const
ComplexNDArray complex_array_value(bool=false) const
bool is_double_type() const
bool is_complex_matrix() 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)
float float_scalar_value(bool frc_str_conv=false) const
octave_complex_matrix(const ComplexColumnVector &v)
~octave_complex_matrix()=default
builtin_type_t builtin_type() const
double scalar_value(bool frc_str_conv=false) const
octave_complex_matrix(const ComplexNDArray &m)
Array< octave_value > array_value() const
F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
std::complex< double > Complex
std::complex< float > FloatComplex
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA