26 #if defined (HAVE_CONFIG_H)
44 "complex diagonal matrix",
"double");
109 if (! force_conversion)
123 if (! force_conversion)
188 os.write (
reinterpret_cast<char *
> (&
r), 4);
189 os.write (
reinterpret_cast<char *
> (&c), 4);
195 if (
m.too_large_for_float ())
197 warning (
"save: some values too large to save as floats --");
198 warning (
"save: saving as doubles instead");
205 double max_val, min_val;
206 if (
m.all_integers (max_val, min_val))
211 write_doubles (os,
reinterpret_cast<const double *
> (mtmp), st,
223 if (! (is.read (
reinterpret_cast<char *
> (&
r), 4)
224 && is.read (
reinterpret_cast<char *
> (&c), 4)
225 && is.read (
reinterpret_cast<char *
> (&tmp), 1)))
ComplexColumnVector conj(const ComplexColumnVector &a)
void swap_bytes< 4 >(void *ptr)
Array< U, A > map(F fcn) const
Apply function fcn to each element of the Array<T, Alloc>.
DiagMatrix abs(void) const
ComplexColumnVector extract_diag(octave_idx_type k=0) const
OCTAVE_API bool all_elements_are_real(void) const
octave_idx_type nelem(void) const
octave_idx_type length(void) const
octave_idx_type cols(void) const
octave_idx_type columns(void) const
octave_idx_type rows(void) const
OCTINTERP_API ComplexMatrix complex_matrix_value(bool=false) const
OCTINTERP_API octave_value to_dense(void) const
ComplexDiagMatrix m_matrix
virtual octave_base_value * try_narrowing_conversion(void)
OCTINTERP_API type_conv_info numeric_demotion_function(void) const
OCTINTERP_API octave_value as_single(void) const
OCTINTERP_API DiagMatrix diag_matrix_value(bool=false) const
OCTINTERP_API ComplexDiagMatrix complex_diag_matrix_value(bool=false) const
OCTINTERP_API FloatComplexDiagMatrix float_complex_diag_matrix_value(bool=false) const
OCTINTERP_API bool load_binary(std::istream &is, bool swap, octave::mach_info::float_format fmt)
OCTINTERP_API FloatDiagMatrix float_diag_matrix_value(bool=false) const
std::string type_name(void) const
OCTINTERP_API type_conv_info numeric_conversion_function(void) const
OCTINTERP_API octave_value as_double(void) const
OCTINTERP_API octave_value map(unary_mapper_t umap) const
OCTINTERP_API bool save_binary(std::ostream &os, bool save_as_floats)
OCTINTERP_API bool chk_valid_scalar(const octave_value &, Complex &) const
OCTINTERP_API octave_base_value * try_narrowing_conversion(void)
static int static_type_id(void)
static int static_type_id(void)
Complex complex_value(bool frc_str_conv=false) const
octave_value map(octave_base_value::unary_mapper_t umap) const
bool is_real_scalar(void) const
bool is_complex_scalar(void) const
ColumnVector real(const ComplexColumnVector &a)
ColumnVector imag(const ComplexColumnVector &a)
void read_doubles(std::istream &is, double *data, save_type type, octave_idx_type len, bool swap, octave::mach_info::float_format fmt)
void write_doubles(std::ostream &os, const double *data, save_type type, octave_idx_type len)
void warning(const char *fmt,...)
void warn_implicit_conversion(const char *id, const char *from, const char *to)
F77_RET_T const F77_DBLE * x
save_type get_save_type(double, double)
class OCTAVE_API ComplexMatrix
class OCTAVE_API FloatComplexDiagMatrix
std::complex< double > Complex
#define DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA(t, n, c)
static octave_base_value * default_numeric_conversion_function(const octave_base_value &a)
static octave_base_value * default_numeric_demotion_function(const octave_base_value &a)