26 #if defined (HAVE_CONFIG_H)
72 (default_numeric_demotion_function,
110 if (idx0.is_colon ()) left =
false;
111 if (idx1.is_colon ()) right =
false;
125 catch (octave::index_exception& ie)
128 ie.set_pos_if_unset (2, k+1);
254 os.write (
reinterpret_cast<char *
> (&
r), 4);
255 os.write (
reinterpret_cast<char *
> (&c), 4);
261 if (
m.too_large_for_float ())
263 warning (
"save: some values too large to save as floats --");
264 warning (
"save: saving as doubles instead");
271 double max_val, min_val;
272 if (
m.all_integers (max_val, min_val))
276 const double *mtmp =
m.data ();
288 if (! (is.read (
reinterpret_cast<char *
> (&
r), 4)
289 && is.read (
reinterpret_cast<char *
> (&c), 4)
290 && is.read (
reinterpret_cast<char *
> (&tmp), 1)))
299 double *re =
m.fortran_vec ();
312 octave_diag_matrix::chk_valid_scalar (
const octave_value& val,
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
ColumnVector extract_diag(octave_idx_type k=0) const
bool is_multiple_of_identity(T val) const
uint64NDArray uint64_array_value() const
int16NDArray int16_array_value() const
Matrix matrix_value(bool=false) const
int32NDArray int32_array_value() const
uint8NDArray uint8_array_value() const
uint16NDArray uint16_array_value() const
octave_value to_dense() const
octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)
int8NDArray int8_array_value() const
uint32NDArray uint32_array_value() const
int64NDArray int64_array_value() const
octave::refcount< octave_idx_type > m_count
FloatComplexDiagMatrix float_complex_diag_matrix_value(bool=false) const
octave_value as_uint32() const
octave_value as_int16() const
octave_value as_int64() const
type_conv_info numeric_conversion_function() const
octave_value as_uint64() const
octave_value as_int8() const
octave_value map(unary_mapper_t umap) const
octave_value as_int32() const
DiagMatrix diag_matrix_value(bool=false) const
octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)
octave_value as_single() const
ComplexDiagMatrix complex_diag_matrix_value(bool=false) const
FloatDiagMatrix float_diag_matrix_value(bool=false) const
octave_value as_double() const
octave_base_value * try_narrowing_conversion()
type_conv_info numeric_demotion_function() const
octave_value as_uint16() const
bool save_binary(std::ostream &os, bool save_as_floats)
octave_value as_uint8() const
bool load_binary(std::istream &is, bool swap, octave::mach_info::float_format fmt)
static int static_type_id()
static int static_type_id()
octave_idx_type length() const
bool is_undefined() const
bool is_real_scalar() const
octave_value map(octave_base_value::unary_mapper_t umap) const
double double_value(bool frc_str_conv=false) const
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,...)
octave::idx_vector idx_vector
Complex rc_sqrt(double x)
F77_RET_T const F77_DBLE * x
save_type get_save_type(double, double)
std::complex< double > Complex
#define DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA(t, n, c)