26 #if ! defined (octave_ov_float_h)
27 #define octave_ov_float_h 1
29 #include "octave-config.h"
80 bool resize_ok =
false);
91 bool isreal (
void)
const {
return true; }
95 bool isfloat (
void)
const {
return true; }
129 #define DEFINE_INT_SCALAR_VALUE(TYPE) \
131 TYPE ## _scalar_value (void) const \
133 return octave_ ## TYPE (scalar); \
145 #undef DEFINE_INT_SCALAR_VALUE
148 {
return static_cast<double> (
scalar); }
153 {
return static_cast<double> (
scalar); }
242 octave_value convert_to_str_internal (
bool pad,
bool force,
char type)
const;
248 bool save_ascii (std::ostream& os);
250 bool load_ascii (std::istream& is);
252 bool save_binary (std::ostream& os,
bool save_as_floats);
254 bool load_binary (std::istream& is,
bool swap,
269 mxArray * as_mxArray (
void)
const;
273 bool fast_elem_insert_self (
void *where,
builtin_type_t btyp)
const;
Vector representing the dimensions (size) of an Array.
octave_idx_type write(const octave_value &data, octave_idx_type block_size, oct_data_conv::data_type output_type, octave_idx_type skip, mach_info::float_format flt_fmt)
float float_scalar_value(bool=false) const
octave_float_scalar(void)
SparseComplexMatrix sparse_complex_matrix_value(bool=false) const
NDArray array_value(bool=false) const
uint64NDArray uint64_array_value(void) const
int8NDArray int8_array_value(void) const
uint16NDArray uint16_array_value(void) const
charNDArray char_array_value(bool=false) const
idx_vector index_vector(bool=false) const
int16NDArray int16_array_value(void) const
octave_base_value * clone(void) const
bool is_real_scalar(void) const
FloatComplexNDArray float_complex_array_value(bool=false) const
octave_float_scalar(const octave_float_scalar &s)
octave_base_value * empty_clone(void) const
octave_float_scalar(float d)
FloatNDArray float_array_value(bool=false) const
int write(octave::stream &os, int block_size, oct_data_conv::data_type output_type, int skip, octave::mach_info::float_format flt_fmt) const
float float_value(bool=false) const
uint32NDArray uint32_array_value(void) const
int32NDArray int32_array_value(void) const
int64NDArray int64_array_value(void) const
uint8NDArray uint8_array_value(void) const
~octave_float_scalar(void)=default
FloatComplexMatrix float_complex_matrix_value(bool=false) const
double double_value(bool=false) const
boolNDArray bool_array_value(bool warn=false) const
FloatMatrix float_matrix_value(bool=false) const
FloatComplex float_complex_value(bool=false) const
builtin_type_t builtin_type(void) const
double scalar_value(bool=false) const
bool bool_value(bool warn=false) const
bool is_single_type(void) const
octave_value any(int=0) const
Complex complex_value(bool=false) const
ComplexNDArray complex_array_value(bool=false) const
SparseMatrix sparse_matrix_value(bool=false) const
ComplexMatrix complex_matrix_value(bool=false) const
Matrix matrix_value(bool=false) const
void resize(octave_idx_type n, const octave_value &rfv=octave_value())
Array< octave_value > array_value(void) const
void warn_logical_conversion(void)
intNDArray< octave_int16 > int16NDArray
intNDArray< octave_int32 > int32NDArray
intNDArray< octave_int64 > int64NDArray
intNDArray< octave_int8 > int8NDArray
F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
void err_nan_to_logical_conversion(void)
std::complex< double > Complex
std::complex< float > FloatComplex
static double as_double(time_t sec, long usec)
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
#define DEFINE_INT_SCALAR_VALUE(TYPE)
static bool scalar(const dim_vector &dims)
octave_value::octave_value(const Array< char > &chm, char type) return retval
intNDArray< octave_uint16 > uint16NDArray
intNDArray< octave_uint32 > uint32NDArray
intNDArray< octave_uint64 > uint64NDArray
intNDArray< octave_uint8 > uint8NDArray