56 "complex scalar",
"double");
110 if (! force_conversion)
112 "complex scalar",
"real scalar");
124 if (! force_conversion)
126 "complex scalar",
"real scalar");
138 if (! force_conversion)
140 "complex scalar",
"real matrix");
152 if (! force_conversion)
154 "complex scalar",
"real matrix");
166 if (! force_conversion)
168 "complex scalar",
"real matrix");
180 if (! force_conversion)
182 "complex scalar",
"real matrix");
223 static_cast<FloatComplex> (
scalar));
270 scalar = octave_read_value<Complex> (is);
274 error (
"load: failed to load complex scalar constant");
285 char tmp =
static_cast<char> (
LS_DOUBLE);
286 os.write (reinterpret_cast<char *> (&tmp), 1);
288 os.write (reinterpret_cast<char *> (&ctmp), 16);
298 if (! is.read (reinterpret_cast<char *> (&tmp), 1))
303 static_cast<save_type> (tmp), 2, swap, fmt);
311 #if defined (HAVE_HDF5)
318 hid_t space_hid = -1, type_hid = -1, data_hid = -1;
321 space_hid = H5Screate_simple (0, dimens, 0);
328 H5Sclose (space_hid);
332 data_hid = H5Dcreate (loc_id, name, type_hid, space_hid,
333 H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
335 data_hid = H5Dcreate (loc_id, name, type_hid, space_hid, H5P_DEFAULT);
339 H5Sclose (space_hid);
345 retval = H5Dwrite (data_hid, type_hid, H5S_ALL, H5S_ALL, H5P_DEFAULT,
350 H5Sclose (space_hid);
360 hid_t data_hid = H5Dopen (loc_id, name, H5P_DEFAULT);
362 hid_t data_hid = H5Dopen (loc_id, name);
364 hid_t type_hid = H5Dget_type (data_hid);
370 H5Tclose (complex_type);
375 hid_t space_id = H5Dget_space (data_hid);
376 hsize_t rank = H5Sget_simple_extent_ndims (space_id);
380 H5Tclose (complex_type);
388 if (H5Dread (data_hid, complex_type, H5S_ALL, H5S_ALL, H5P_DEFAULT,
395 H5Tclose (complex_type);
409 double *pr =
static_cast<double *
> (retval->
get_data ());
410 double *pi =
static_cast<double *
> (retval->
get_imag_data ());
423 #define SCALAR_MAPPER(UMAP, FCN) \
424 case umap_ ## UMAP: \
425 return octave_value (FCN (scalar))