23 #if !defined (octave_ov_complex_h)
24 #define octave_ov_complex_h 1
74 type_conv_info numeric_demotion_function (
void)
const;
79 bool resize_ok =
false);
84 error (
"attempted to use a complex scalar as an index\n"
85 " (forgot to initialize i or j?)");
106 double double_value (
bool =
false)
const;
108 float float_value (
bool =
false)
const;
111 {
return double_value (frc_str_conv); }
114 {
return float_value (frc_str_conv); }
116 Matrix matrix_value (
bool =
false)
const;
118 FloatMatrix float_matrix_value (
bool =
false)
const;
120 NDArray array_value (
bool =
false)
const;
132 Complex complex_value (
bool =
false)
const;
170 bool save_ascii (std::ostream& os);
172 bool load_ascii (std::istream& is);
174 bool save_binary (std::ostream& os,
bool& save_as_floats);
176 bool load_binary (std::istream& is,
bool swap,
179 bool save_hdf5 (
octave_hdf5_id loc_id,
const char *name,
bool save_as_floats);
188 return os.
write (array_value (
true), block_size, output_type,
192 mxArray *as_mxArray (
void)
const;
boolNDArray bool_array_value(bool warn=false) const
idx_vector index_vector(bool=false) const
SparseMatrix sparse_matrix_value(bool=false) const
octave_base_value * clone(void) const
bool bool_value(bool warn=false) const
double scalar_value(bool frc_str_conv=false) const
float float_scalar_value(bool frc_str_conv=false) const
void error(const char *fmt,...)
bool is_complex_scalar(void) const
builtin_type_t builtin_type(void) const
SparseComplexMatrix sparse_complex_matrix_value(bool=false) const
octave_value any(int=0) const
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
int write(octave_stream &os, int block_size, oct_data_conv::data_type output_type, int skip, oct_mach_info::float_format flt_fmt) const
octave_complex(const Complex &c)
bool is_complex_type(void) const
void gripe_nan_to_logical_conversion(void)
octave_complex(const octave_complex &c)
bool is_float_type(void) const
bool is_double_type(void) const
octave_base_value * empty_clone(void) const
void gripe_logical_conversion(void)
octave_complex octave_complex_scalar
octave_idx_type write(const octave_value &data, octave_idx_type block_size, oct_data_conv::data_type output_type, octave_idx_type skip, oct_mach_info::float_format flt_fmt)
ColumnVector imag(const ComplexColumnVector &a)
std::complex< float > FloatComplex
std::complex< double > Complex
ColumnVector real(const ComplexColumnVector &a)
static bool scalar(const dim_vector &dims)