26 #if defined (HAVE_CONFIG_H)
43 "float complex diagonal matrix",
"single");
89 if (! force_conversion)
103 if (! force_conversion)
168 os.write (
reinterpret_cast<char *
> (&
r), 4);
169 os.write (
reinterpret_cast<char *
> (&c), 4);
175 float max_val, min_val;
176 if (
m.all_integers (max_val, min_val))
181 write_floats (os,
reinterpret_cast<const float *
> (mtmp), st, 2 *
m.numel ());
192 if (! (is.read (
reinterpret_cast<char *
> (&
r), 4)
193 && is.read (
reinterpret_cast<char *
> (&c), 4)
194 && is.read (
reinterpret_cast<char *
> (&tmp), 1)))
217 octave_float_complex_diag_matrix::chk_valid_scalar (
const octave_value& val,
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>.
octave_idx_type nelem() const
octave_idx_type rows() const
octave_idx_type length() const
octave_idx_type columns() const
octave_idx_type cols() const
FloatDiagMatrix abs() const
FloatComplexColumnVector extract_diag(octave_idx_type k=0) const
bool all_elements_are_real() const
FloatComplexMatrix float_complex_matrix_value(bool=false) const
octave_value to_dense() const
FloatComplexDiagMatrix m_matrix
virtual octave_base_value * try_narrowing_conversion()
ComplexDiagMatrix complex_diag_matrix_value(bool=false) const
FloatComplexDiagMatrix float_complex_diag_matrix_value(bool=false) const
std::string type_name() const
octave_value map(unary_mapper_t umap) const
DiagMatrix diag_matrix_value(bool=false) const
octave_value as_single() const
bool save_binary(std::ostream &os, bool save_as_floats)
FloatDiagMatrix float_diag_matrix_value(bool=false) const
octave_base_value * try_narrowing_conversion()
type_conv_info numeric_conversion_function() const
octave_value as_double() const
bool load_binary(std::istream &is, bool swap, octave::mach_info::float_format fmt)
static int static_type_id()
bool is_real_scalar() const
bool is_complex_scalar() const
FloatComplex float_complex_value(bool frc_str_conv=false) const
octave_value map(octave_base_value::unary_mapper_t umap) const
ColumnVector real(const ComplexColumnVector &a)
ColumnVector imag(const ComplexColumnVector &a)
void write_floats(std::ostream &os, const float *data, save_type type, octave_idx_type len)
void read_floats(std::istream &is, float *data, save_type type, octave_idx_type len, bool swap, octave::mach_info::float_format 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)
std::complex< float > FloatComplex
#define DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA(t, n, c)