26 #if defined (HAVE_CONFIG_H)
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 ();
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(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
DiagMatrix abs(void) const
ColumnVector extract_diag(octave_idx_type k=0) const
OCTAVE_API bool is_multiple_of_identity(T val) const
int32NDArray int32_array_value(void) const
OCTINTERP_API Matrix matrix_value(bool=false) const
OCTINTERP_API octave_value to_dense(void) const
OCTINTERP_API octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)
uint64NDArray uint64_array_value(void) const
int64NDArray int64_array_value(void) const
int8NDArray int8_array_value(void) const
int16NDArray int16_array_value(void) const
uint32NDArray uint32_array_value(void) const
uint16NDArray uint16_array_value(void) const
uint8NDArray uint8_array_value(void) const
octave::refcount< octave_idx_type > count
octave_value as_uint32(void) const
octave_value as_uint64(void) const
FloatComplexDiagMatrix float_complex_diag_matrix_value(bool=false) const
octave_value as_single(void) const
octave_value as_int32(void) const
octave_base_value * try_narrowing_conversion(void)
octave_value map(unary_mapper_t umap) const
octave_value as_int16(void) const
octave_value as_double(void) const
DiagMatrix diag_matrix_value(bool=false) const
octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)
type_conv_info numeric_conversion_function(void) const
bool chk_valid_scalar(const octave_value &, double &) const
octave_value as_uint8(void) const
type_conv_info numeric_demotion_function(void) const
ComplexDiagMatrix complex_diag_matrix_value(bool=false) const
FloatDiagMatrix float_diag_matrix_value(bool=false) const
octave_value as_uint16(void) const
octave_value as_int64(void) const
bool save_binary(std::ostream &os, bool save_as_floats)
bool load_binary(std::istream &is, bool swap, octave::mach_info::float_format fmt)
octave_value as_int8(void) const
static int static_type_id(void)
static int static_type_id(void)
octave_idx_type length(void) const
octave_value map(octave_base_value::unary_mapper_t umap) const
bool is_real_scalar(void) const
bool is_undefined(void) 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)
class OCTAVE_API ComplexDiagMatrix
class OCTAVE_API FloatDiagMatrix
class OCTAVE_API DiagMatrix
class OCTAVE_API PermMatrix
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)