56 "float complex scalar",
"single");
94 if (! force_conversion)
96 "complex scalar",
"real scalar");
108 if (! force_conversion)
110 "complex scalar",
"real scalar");
122 if (! force_conversion)
124 "complex scalar",
"real matrix");
136 if (! force_conversion)
138 "complex scalar",
"real matrix");
150 if (! force_conversion)
152 "complex scalar",
"real matrix");
164 if (! force_conversion)
166 "complex scalar",
"real matrix");
255 scalar = octave_read_value<FloatComplex> (is);
259 error (
"load: failed to load complex scalar constant");
270 char tmp =
static_cast<char> (
LS_FLOAT);
271 os.write (reinterpret_cast<char *> (&tmp), 1);
273 os.write (reinterpret_cast<char *> (&ctmp), 8);
283 if (! is.read (reinterpret_cast<char *> (&tmp), 1))
287 read_floats (is, reinterpret_cast<float *> (&ctmp),
288 static_cast<save_type> (tmp), 2, swap, fmt);
296 #if defined (HAVE_HDF5)
303 hid_t space_hid = -1, type_hid = -1, data_hid = -1;
306 space_hid = H5Screate_simple (0, dimens, 0);
313 H5Sclose (space_hid);
317 data_hid = H5Dcreate (loc_id, name, type_hid, space_hid,
318 H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
320 data_hid = H5Dcreate (loc_id, name, type_hid, space_hid, H5P_DEFAULT);
324 H5Sclose (space_hid);
330 retval = H5Dwrite (data_hid, type_hid, H5S_ALL, H5S_ALL, H5P_DEFAULT,
335 H5Sclose (space_hid);
345 hid_t data_hid = H5Dopen (loc_id, name, H5P_DEFAULT);
347 hid_t data_hid = H5Dopen (loc_id, name);
349 hid_t type_hid = H5Dget_type (data_hid);
355 H5Tclose (complex_type);
360 hid_t space_id = H5Dget_space (data_hid);
361 hsize_t rank = H5Sget_simple_extent_ndims (space_id);
365 H5Tclose (complex_type);
373 if (H5Dread (data_hid, complex_type, H5S_ALL, H5S_ALL, H5P_DEFAULT,
380 H5Tclose (complex_type);
394 float *pr =
static_cast<float *
> (retval->
get_data ());
408 #define SCALAR_MAPPER(UMAP, FCN) \
409 case umap_ ## UMAP: \
410 return octave_value (FCN (scalar))