23 #if !defined (octave_ov_scalar_h)
24 #define octave_ov_scalar_h 1
74 bool resize_ok =
false);
76 type_conv_info numeric_demotion_function (
void)
const;
125 #define DEFINE_INT_SCALAR_VALUE(TYPE) \
127 TYPE ## _scalar_value (void) const \
128 { return octave_ ## TYPE (scalar); }
139 #undef DEFINE_INT_SCALAR_VALUE
144 {
return static_cast<float> (
scalar); }
149 {
return static_cast<float> (
scalar); }
192 retval(0) =
static_cast<char> (
scalar);
218 octave_value convert_to_str_internal (
bool pad,
bool force,
char type)
const;
224 bool save_ascii (std::ostream& os);
226 bool load_ascii (std::istream& is);
228 bool save_binary (std::ostream& os,
bool& save_as_floats);
230 bool load_binary (std::istream& is,
bool swap,
233 bool save_hdf5 (
octave_hdf5_id loc_id,
const char *name,
bool save_as_floats);
241 return os.
write (array_value (), block_size, output_type,
245 mxArray *as_mxArray (
void)
const;
249 bool fast_elem_insert_self (
void *where,
builtin_type_t btyp)
const;
Matrix matrix_value(bool=false) const
intNDArray< octave_int64 > int64NDArray
bool is_double_type(void) const
ComplexNDArray complex_array_value(bool=false) const
Complex complex_value(bool=false) const
builtin_type_t builtin_type(void) const
double scalar_value(bool=false) const
idx_vector index_vector(bool=false) const
#define DEFINE_INT_SCALAR_VALUE(TYPE)
intNDArray< octave_uint32 > uint32NDArray
intNDArray< octave_uint8 > uint8NDArray
intNDArray< octave_uint16 > uint16NDArray
int16NDArray int16_array_value(void) const
boolNDArray bool_array_value(bool warn=false) const
octave_base_value * clone(void) const
SparseComplexMatrix sparse_complex_matrix_value(bool=false) const
uint16NDArray uint16_array_value(void) const
int32NDArray int32_array_value(void) const
charNDArray char_array_value(bool=false) const
uint64NDArray uint64_array_value(void) const
float float_value(bool=false) const
SparseMatrix sparse_matrix_value(bool=false) const
FloatComplexNDArray float_complex_array_value(bool=false) const
intNDArray< octave_int16 > int16NDArray
uint32NDArray uint32_array_value(void) const
F77_RET_T const double const double double * d
octave_scalar(const octave_scalar &s)
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
bool bool_value(bool warn=false) const
intNDArray< octave_int8 > int8NDArray
void gripe_nan_to_logical_conversion(void)
FloatComplex float_complex_value(bool=false) const
FloatNDArray float_array_value(bool=false) const
int8NDArray int8_array_value(void) const
double double_value(bool=false) const
intNDArray< octave_int32 > int32NDArray
void gripe_logical_conversion(void)
FloatComplexMatrix float_complex_matrix_value(bool=false) const
octave_value any(int=0) const
uint8NDArray uint8_array_value(void) const
octave_idx_type write(const octave_value &data, octave_idx_type block_size, oct_data_conv::data_type output_type, octave_idx_type skip, oct_mach_info::float_format flt_fmt)
bool is_real_type(void) const
bool is_float_type(void) const
bool is_real_scalar(void) const
std::complex< float > FloatComplex
std::complex< double > Complex
int64NDArray int64_array_value(void) const
FloatMatrix float_matrix_value(bool=false) const
NDArray array_value(bool=false) const
int write(octave_stream &os, int block_size, oct_data_conv::data_type output_type, int skip, oct_mach_info::float_format flt_fmt) const
float float_scalar_value(bool=false) const
octave_base_value * empty_clone(void) const
ComplexMatrix complex_matrix_value(bool=false) const
static bool scalar(const dim_vector &dims)
intNDArray< octave_uint64 > uint64NDArray