23 #if !defined (octave_ov_float_h)
24 #define octave_ov_float_h 1
78 bool resize_ok =
false);
96 int8_array_value (
void)
const
100 int16_array_value (
void)
const
104 int32_array_value (
void)
const
108 int64_array_value (
void)
const
112 uint8_array_value (
void)
const
116 uint16_array_value (
void)
const
120 uint32_array_value (
void)
const
124 uint64_array_value (
void)
const
127 #define DEFINE_INT_SCALAR_VALUE(TYPE) \
129 TYPE ## _scalar_value (void) const \
130 { return octave_ ## TYPE (scalar); }
141 #undef DEFINE_INT_SCALAR_VALUE
143 double double_value (
bool =
false)
const
144 {
return static_cast<double> (
scalar); }
148 double scalar_value (
bool =
false)
const
149 {
return static_cast<double> (
scalar); }
191 char_array_value (
bool =
false)
const
194 retval(0) =
static_cast<char> (
scalar);
198 bool bool_value (
bool warn =
false)
const
220 octave_value convert_to_str_internal (
bool pad,
bool force,
char type)
const;
226 bool save_ascii (std::ostream& os);
228 bool load_ascii (std::istream& is);
230 bool save_binary (std::ostream& os,
bool& save_as_floats);
232 bool load_binary (std::istream& is,
bool swap,
235 #if defined (HAVE_HDF5)
236 bool save_hdf5 (hid_t loc_id,
const char *name,
bool save_as_floats);
238 bool load_hdf5 (hid_t loc_id,
const char *name);
245 return os.
write (array_value (), block_size, output_type,
249 mxArray *as_mxArray (
void)
const;
253 bool fast_elem_insert_self (
void *where,
builtin_type_t btyp)
const;