140 ::warning (
"range error for conversion to character value");
143 retval =
octave_value (std::string (1, static_cast<char> (ival)), type);
164 scalar = octave_read_value<double> (is);
167 error (
"load: failed to load scalar constant");
178 os.write (reinterpret_cast<char *> (&tmp), 1);
180 os.write (reinterpret_cast<char *> (&dtmp), 8);
190 if (! is.read (reinterpret_cast<char *> (&tmp), 1))
194 read_doubles (is, &dtmp, static_cast<save_type> (tmp), 1, swap, fmt);
202 #if defined (HAVE_HDF5)
209 hid_t space_hid = -1, data_hid = -1;
212 space_hid = H5Screate_simple (0, dimens, 0);
213 if (space_hid < 0)
return false;
216 data_hid = H5Dcreate (loc_id, name, H5T_NATIVE_DOUBLE, space_hid,
217 H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
219 data_hid = H5Dcreate (loc_id, name, H5T_NATIVE_DOUBLE, space_hid,
224 H5Sclose (space_hid);
229 retval = H5Dwrite (data_hid, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL,
230 H5P_DEFAULT, &tmp) >= 0;
233 H5Sclose (space_hid);
242 hid_t data_hid = H5Dopen (loc_id, name, H5P_DEFAULT);
244 hid_t data_hid = H5Dopen (loc_id, name);
246 hid_t space_id = H5Dget_space (data_hid);
248 hsize_t rank = H5Sget_simple_extent_ndims (space_id);
257 if (H5Dread (data_hid, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL,
258 H5P_DEFAULT, &dtmp) < 0)
278 double *pr =
static_cast<double *
> (retval->
get_data ());
297 #define SCALAR_MAPPER(UMAP, FCN) \
298 case umap_ ## UMAP: \
299 return octave_value (FCN (scalar))
363 *(
reinterpret_cast<double *
>(where)) =
scalar;