23 #if ! defined (octave_ov_complex_h) 24 #define octave_ov_complex_h 1 26 #include "octave-config.h" 74 type_conv_info numeric_demotion_function (
void)
const;
79 bool resize_ok =
false);
99 bool isfloat (
void)
const {
return true; }
101 double double_value (
bool =
false)
const;
103 float float_value (
bool =
false)
const;
106 {
return double_value (frc_str_conv); }
109 {
return float_value (frc_str_conv); }
111 Matrix matrix_value (
bool =
false)
const;
113 FloatMatrix float_matrix_value (
bool =
false)
const;
127 Complex complex_value (
bool =
false)
const;
168 bool save_ascii (std::ostream&
os);
170 bool load_ascii (std::istream&
is);
174 bool load_binary (std::istream&
is,
bool swap,
190 mxArray * as_mxArray (
void)
const;
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)
SparseComplexMatrix sparse_complex_matrix_value(bool=false) const
bool iscomplex(void) const
nd group nd example oindent but is performed more efficiently If only and it is a scalar
octave_base_value * empty_clone(void) const
void warn_logical_conversion(void)
octave::mach_info::float_format flt_fmt
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance c
float float_scalar_value(bool frc_str_conv=false) const
void err_nan_to_logical_conversion(void)
double scalar_value(bool frc_str_conv=false) const
bool bool_value(bool warn=false) const
static double as_double(time_t sec, long usec)
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
octave_value any(int=0) const
nd deftypefn *std::string name
octave_complex(const Complex &c)
octave_complex(const octave_complex &c)
Array< octave_value > array_value(void) const
bool is_complex_scalar(void) const
octave_base_value * clone(void) const
octave_complex octave_complex_scalar
SparseMatrix sparse_matrix_value(bool=false) const
void resize(octave_idx_type n, const octave_value &rfv=octave_value())
std::complex< float > FloatComplex
builtin_type_t builtin_type(void) const
std::complex< double > Complex
write the output to stdout if nargout is
Vector representing the dimensions (size) of an Array.
boolNDArray bool_array_value(bool warn=false) 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
bool is_double_type(void) const