26 #if ! defined (octave_ov_flt_complex_h)
27 #define octave_ov_flt_complex_h 1
29 #include "octave-config.h"
81 bool resize_ok =
false);
100 double double_value (
bool =
false)
const;
102 float float_value (
bool =
false)
const;
105 {
return double_value (frc_str_conv); }
108 {
return float_value (frc_str_conv); }
110 Matrix matrix_value (
bool =
false)
const;
112 FloatMatrix float_matrix_value (
bool =
false)
const;
126 Complex complex_value (
bool =
false)
const;
142 if (warn && scalar != 0.0f && scalar != 1.0f)
145 return scalar != 0.0f;
152 if (warn && scalar != 0.0f && scalar != 1.0f)
172 bool save_ascii (std::ostream& os);
174 bool load_ascii (std::istream& is);
176 bool save_binary (std::ostream& os,
bool save_as_floats);
178 bool load_binary (std::istream& is,
bool swap,
181 bool save_hdf5 (
octave_hdf5_id loc_id,
const char *name,
bool save_as_floats);
185 int write (octave::stream& os,
int block_size,
190 return os.write (
array_value (
true), block_size, output_type,
194 mxArray * as_mxArray (
bool interleaved)
const;
Vector representing the dimensions (size) of an Array.
bool is_complex_scalar() const
bool bool_value(bool warn=false) const
SparseMatrix sparse_matrix_value(bool=false) const
double scalar_value(bool frc_str_conv=false) const
builtin_type_t builtin_type() const
octave_float_complex(const octave_float_complex &c)
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_float_complex(const FloatComplex &c)
octave_value any(int=0) const
bool is_single_type() const
octave_base_value * clone() const
SparseComplexMatrix sparse_complex_matrix_value(bool=false) const
boolNDArray bool_array_value(bool warn=false) const
octave_base_value * empty_clone() const
~octave_float_complex()=default
float float_scalar_value(bool frc_str_conv=false) const
void resize(octave_idx_type n, const octave_value &rfv=octave_value())
Array< octave_value > array_value() const
void warn_logical_conversion()
void err_nan_to_logical_conversion()
std::complex< double > Complex
std::complex< float > FloatComplex
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
octave_float_complex octave_float_complex_scalar