23 #if !defined (octave_ov_float_h)
24 #define octave_ov_float_h 1
77 bool resize_ok =
false);
126 #define DEFINE_INT_SCALAR_VALUE(TYPE) \
128 TYPE ## _scalar_value (void) const \
129 { return octave_ ## TYPE (scalar); }
140 #undef DEFINE_INT_SCALAR_VALUE
143 {
return static_cast<double> (
scalar); }
148 {
return static_cast<double> (
scalar); }
193 retval(0) =
static_cast<char> (
scalar);
219 octave_value convert_to_str_internal (
bool pad,
bool force,
char type)
const;
225 bool save_ascii (std::ostream& os);
227 bool load_ascii (std::istream& is);
229 bool save_binary (std::ostream& os,
bool& save_as_floats);
231 bool load_binary (std::istream& is,
bool swap,
234 bool save_hdf5 (
octave_hdf5_id loc_id,
const char *name,
bool save_as_floats);
242 return os.
write (array_value (), block_size, output_type,
246 mxArray *as_mxArray (
void)
const;
250 bool fast_elem_insert_self (
void *where,
builtin_type_t btyp)
const;
bool is_float_type(void) const
int64NDArray int64_array_value(void) const
FloatNDArray float_array_value(bool=false) const
int8NDArray int8_array_value(void) const
uint8NDArray uint8_array_value(void) const
intNDArray< octave_int64 > int64NDArray
boolNDArray bool_array_value(bool warn=false) const
SparseMatrix sparse_matrix_value(bool=false) const
intNDArray< octave_uint32 > uint32NDArray
Complex complex_value(bool=false) const
intNDArray< octave_uint8 > uint8NDArray
intNDArray< octave_uint16 > uint16NDArray
bool is_real_type(void) const
octave_float_scalar(float d)
~octave_float_scalar(void)
bool is_single_type(void) const
int32NDArray int32_array_value(void) const
FloatMatrix float_matrix_value(bool=false) const
float float_value(bool=false) const
intNDArray< octave_int16 > int16NDArray
uint64NDArray uint64_array_value(void) const
builtin_type_t builtin_type(void) const
F77_RET_T const double const double double * d
ComplexNDArray complex_array_value(bool=false) const
octave_base_value * empty_clone(void) const
ComplexMatrix complex_matrix_value(bool=false) const
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
bool is_real_scalar(void) const
SparseComplexMatrix sparse_complex_matrix_value(bool=false) const
intNDArray< octave_int8 > int8NDArray
octave_base_value * clone(void) const
bool bool_value(bool warn=false) const
void gripe_nan_to_logical_conversion(void)
Matrix matrix_value(bool=false) const
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
FloatComplexNDArray float_complex_array_value(bool=false) const
#define DEFINE_INT_SCALAR_VALUE(TYPE)
idx_vector index_vector(bool=false) const
float float_scalar_value(bool=false) const
intNDArray< octave_int32 > int32NDArray
void gripe_logical_conversion(void)
FloatComplexMatrix float_complex_matrix_value(bool=false) const
uint16NDArray uint16_array_value(void) const
FloatComplex float_complex_value(bool=false) 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, oct_mach_info::float_format flt_fmt)
int16NDArray int16_array_value(void) const
octave_value any(int=0) const
std::complex< float > FloatComplex
std::complex< double > Complex
charNDArray char_array_value(bool=false) const
double double_value(bool=false) const
octave_float_scalar(const octave_float_scalar &s)
NDArray array_value(bool=false) const
octave_float_scalar(void)
double scalar_value(bool=false) const
static bool scalar(const dim_vector &dims)
uint32NDArray uint32_array_value(void) const
intNDArray< octave_uint64 > uint64NDArray