110 s[0] =
static_cast<char> (
scalar);
130 scalar = (octave_read_value<double> (is) != 0.);
134 error (
"load: failed to load scalar constant");
144 char tmp = (
scalar ? 1 : 0);
145 os.write (reinterpret_cast<char *> (&tmp), 1);
155 if (! is.read (reinterpret_cast<char *> (&tmp), 1))
161 #if defined (HAVE_HDF5)
168 hid_t space_hid = -1, data_hid = -1;
171 space_hid = H5Screate_simple (0, dimens, 0);
172 if (space_hid < 0)
return false;
174 data_hid = H5Dcreate (loc_id, name, H5T_NATIVE_DOUBLE, space_hid,
175 H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
177 data_hid = H5Dcreate (loc_id, name, H5T_NATIVE_DOUBLE, space_hid,
182 H5Sclose (space_hid);
187 retval = H5Dwrite (data_hid, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL,
188 H5P_DEFAULT, &tmp) >= 0;
191 H5Sclose (space_hid);
200 hid_t data_hid = H5Dopen (loc_id, name, H5P_DEFAULT);
202 hid_t data_hid = H5Dopen (loc_id, name);
204 hid_t space_id = H5Dget_space (data_hid);
206 hsize_t rank = H5Sget_simple_extent_ndims (space_id);
215 if (H5Dread (data_hid, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL,
216 H5P_DEFAULT, &dtmp) < 0)
236 bool *pr =
static_cast<bool *
> (retval->
get_data ());