23 #if defined (HAVE_CONFIG_H)
60 "float complex scalar",
"single");
97 if (! force_conversion)
99 "complex scalar",
"real scalar");
107 if (! force_conversion)
109 "complex scalar",
"real scalar");
119 if (! force_conversion)
121 "complex scalar",
"real matrix");
133 if (! force_conversion)
135 "complex scalar",
"real matrix");
147 if (! force_conversion)
149 "complex scalar",
"real matrix");
161 if (! force_conversion)
163 "complex scalar",
"real matrix");
264 scalar = octave_read_value<FloatComplex> (
is);
267 error (
"load: failed to load complex scalar constant");
276 os.write (reinterpret_cast<char *> (&tmp), 1);
278 os.write (reinterpret_cast<char *> (&ctmp), 8);
288 if (! is.read (reinterpret_cast<char *> (&tmp), 1))
292 read_floats (is, reinterpret_cast<float *> (&ctmp),
293 static_cast<save_type> (tmp), 2, swap, fmt);
308 #if defined (HAVE_HDF5)
311 hid_t space_hid, type_hid, data_hid;
312 space_hid = type_hid = data_hid = -1;
314 space_hid = H5Screate_simple (0, dimens, 0);
321 H5Sclose (space_hid);
324 #if defined (HAVE_HDF5_18)
325 data_hid = H5Dcreate (loc_id, name, type_hid, space_hid,
332 H5Sclose (space_hid);
343 H5Sclose (space_hid);
346 octave_unused_parameter (loc_id);
347 octave_unused_parameter (name);
360 #if defined (HAVE_HDF5)
362 #if defined (HAVE_HDF5_18)
365 hid_t data_hid = H5Dopen (loc_id, name);
367 hid_t type_hid = H5Dget_type (data_hid);
373 H5Tclose (complex_type);
378 hid_t space_id = H5Dget_space (data_hid);
379 hsize_t rank = H5Sget_simple_extent_ndims (space_id);
383 H5Tclose (complex_type);
399 H5Tclose (complex_type);
404 octave_unused_parameter (loc_id);
405 octave_unused_parameter (name);
418 float *pr =
static_cast<float *
> (retval->
get_data ());
432 #define SCALAR_MAPPER(UMAP, FCN) \
433 case umap_ ## UMAP: \
434 return octave_value (FCN (scalar))
octave_base_value * try_narrowing_conversion(void)
ComplexNDArray complex_array_value(bool=false) const
octave_value as_single(void) const
bool load_binary(std::istream &is, bool swap, octave::mach_info::float_format fmt)
ComplexMatrix complex_matrix_value(bool=false) const
float float_value(bool=false) const
#define SCALAR_MAPPER(UMAP, FCN)
std::complex< double > erfi(std::complex< double > z, double relerr=0)
const octave_hdf5_id octave_H5S_ALL
OCTAVE_EXPORT octave_value_list or N dimensional array whose elements are all equal to the base of natural logarithms The constant ex $e satisfies the equation log(e)
void error(const char *fmt,...)
void * get_data(void) const
#define DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA(t, n, c)
NDArray array_value(bool=false) const
Complex acos(const Complex &x)
void read_floats(std::istream &is, float *data, save_type type, octave_idx_type len, bool swap, octave::mach_info::float_format fmt)
Complex asin(const Complex &x)
octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)
Complex complex_value(bool=false) const
octave_idx_type numel(int n=0) const
Number of elements that a matrix with this dimensions would have.
octave_value diag(octave_idx_type m, octave_idx_type n) const
void warn_load(const char *type) const
ComplexColumnVector conj(const ComplexColumnVector &a)
Complex atan(const Complex &x)
Matrix matrix_value(bool=false) const
bool load_ascii(std::istream &is)
nd deftypefn *octave_map m
bool hdf5_types_compatible(octave_hdf5_id t1, octave_hdf5_id t2)
FloatComplexMatrix float_complex_matrix_value(bool=false) const
octave_value resize(const dim_vector &dv, bool fill=false) const
std::complex< double > erfcx(std::complex< double > z, double relerr=0)
bool load_hdf5(octave_hdf5_id loc_id, const char *name)
bool save_ascii(std::ostream &os)
FloatMatrix float_matrix_value(bool=false) const
the sparsity preserving column transformation such that that defines the pivoting threshold can be given in which case it defines the c
FloatComplexNDArray float_complex_array_value(bool=false) const
void warn_save(const char *type) const
double double_value(bool=false) const
FloatComplex float_complex_value(bool=false) const
octave_value map(unary_mapper_t umap) const
void * get_imag_data(void) const
OCTAVE_EXPORT octave_value_list return the value of the option it must match the dimension of the state and the relative tolerance must also be a vector of the same length tem it must match the dimension of the state and the absolute tolerance must also be a vector of the same length The local error test applied at each integration step is xample roup abs(local error in x(i))<
void warn_implicit_conversion(const char *id, const char *from, const char *to)
virtual octave_value map(unary_mapper_t) const
octave_value as_double(void) const
ColumnVector imag(const ComplexColumnVector &a)
const octave_hdf5_id octave_H5P_DEFAULT
std::complex< float > FloatComplex
bool save_binary(std::ostream &os, bool &save_as_floats)
std::complex< double > Complex
FloatNDArray float_array_value(bool=false) const
void octave_write_float_complex(std::ostream &os, const FloatComplex &c)
ColumnVector real(const ComplexColumnVector &a)
write the output to stdout if nargout is
Vector representing the dimensions (size) of an Array.
octave_hdf5_id hdf5_make_complex_type(octave_hdf5_id num_type)
bool save_hdf5(octave_hdf5_id loc_id, const char *name, bool save_as_floats)
mxArray * as_mxArray(void) const
std::complex< double > erfc(std::complex< double > z, double relerr=0)
octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)